file zh_CN.gmo was initially added on branch binutils-2_17-branch.
[binutils.git] / binutils / configure
blob2d8e0cb970cd24a9c501503a2694cc9efb3bd473
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 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-included-gettext use the GNU gettext library included here
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 _ACEOF
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 cd $ac_popdir
975 done
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986 exit 0
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
996 $ $0 $@
998 _ACEOF
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022 _ASUNAME
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030 done
1032 } >&5
1034 cat >&5 <<_ACEOF
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1041 _ACEOF
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1056 for ac_arg
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1089 esac
1090 done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1103 echo
1105 cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 esac;
1126 echo
1128 cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1227 done
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1240 else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1288 done
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_aux_dir=
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1337 done
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1373 build=$ac_cv_build
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1395 host=$ac_cv_host
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1427 NONENONEs,x,x, &&
1428 program_prefix=${target_alias}-
1429 ac_ext=c
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1456 done
1457 done
1461 CC=$ac_cv_prog_CC
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1465 else
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1494 done
1495 done
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1503 else
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1508 CC=$ac_ct_CC
1509 else
1510 CC="$ac_cv_prog_CC"
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1536 done
1537 done
1541 CC=$ac_cv_prog_CC
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1545 else
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1551 if test -z "$ac_cv_prog_CC"; then
1552 ac_ct_CC=$CC
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1574 done
1575 done
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1588 CC=$ac_ct_CC
1589 else
1590 CC="$ac_cv_prog_CC"
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605 ac_prog_rejected=no
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1615 continue
1617 ac_cv_prog_CC="cc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1621 done
1622 done
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1627 shift
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1632 shift
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 CC=$ac_cv_prog_CC
1639 if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1642 else
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1648 if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1650 for ac_prog in cl
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1673 done
1674 done
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$CC" && break
1688 done
1690 if test -z "$CC"; then
1691 ac_ct_CC=$CC
1692 for ac_prog in cl
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1715 done
1716 done
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$ac_ct_CC" && break
1730 done
1732 CC=$ac_ct_CC
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1764 cat >conftest.$ac_ext <<_ACEOF
1765 /* confdefs.h. */
1766 _ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h. */
1772 main ()
1776 return 0;
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1783 # of exeext.
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 # resort.
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 ac_cv_exeext=
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 test -f "$ac_file" || continue
1803 case $ac_file in
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806 conftest.$ac_ext )
1807 # This is the source file.
1809 [ab].out )
1810 # We found the default executable, but exeext='' is most
1811 # certainly right.
1812 break;;
1813 *.* )
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1818 export ac_cv_exeext
1819 break;;
1821 break;;
1822 esac
1823 done
1824 else
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 cross_compiling=no
1853 else
1854 if test "$cross_compiling" = maybe; then
1855 cross_compiling=yes
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 # `rm'.
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895 export ac_cv_exeext
1896 break;;
1897 * ) break;;
1898 esac
1899 done
1900 else
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1914 ac_exeext=$EXEEXT
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1928 main ()
1932 return 0;
1934 _ACEOF
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 case $ac_file in
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945 break;;
1946 esac
1947 done
1948 else
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1964 ac_objext=$OBJEXT
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h. */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1978 main ()
1980 #ifndef __GNUC__
1981 choke me
1982 #endif
1985 return 0;
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 ac_compiler_gnu=yes
2011 else
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2015 ac_compiler_gnu=no
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS=${CFLAGS+set}
2025 ac_save_CFLAGS=$CFLAGS
2026 CFLAGS="-g"
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h. */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2040 main ()
2044 return 0;
2046 _ACEOF
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>conftest.er1
2050 ac_status=$?
2051 grep -v '^ *+' conftest.er1 >conftest.err
2052 rm -f conftest.er1
2053 cat conftest.err >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -z "$ac_c_werror_flag"
2057 || test ! -s conftest.err'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 ac_cv_prog_cc_g=yes
2070 else
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_cv_prog_cc_g=no
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082 elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2084 CFLAGS="-g -O2"
2085 else
2086 CFLAGS="-g"
2088 else
2089 if test "$GCC" = yes; then
2090 CFLAGS="-O2"
2091 else
2092 CFLAGS=
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 ac_cv_prog_cc_stdc=no
2101 ac_save_CC=$CC
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h. */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2108 #include <stdarg.h>
2109 #include <stdio.h>
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2116 char **p;
2117 int i;
2119 return p[i];
2121 static char *f (char * (*g) (char **, int), char **p, ...)
2123 char *s;
2124 va_list v;
2125 va_start (v,p);
2126 s = g (p, va_arg (v,int));
2127 va_end (v);
2128 return s;
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144 int argc;
2145 char **argv;
2147 main ()
2149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 return 0;
2153 _ACEOF
2154 # Don't try gcc -ansi; that turns off useful extensions and
2155 # breaks some systems' header files.
2156 # AIX -qlanglvl=ansi
2157 # Ultrix and OSF/1 -std1
2158 # HP-UX 10.20 and later -Ae
2159 # HP-UX older versions -Aa -D_HPUX_SOURCE
2160 # SVR4 -Xc -D__EXTENSIONS__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187 break
2188 else
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2193 rm -f conftest.err conftest.$ac_objext
2194 done
2195 rm -f conftest.$ac_ext conftest.$ac_objext
2196 CC=$ac_save_CC
2200 case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203 echo "${ECHO_T}none needed" >&6 ;;
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 esac
2210 # Some people use a C++ compiler to compile C. Since we use `exit',
2211 # in C++ we need to declare it. In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #ifndef __cplusplus
2216 choke me
2217 #endif
2218 _ACEOF
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2242 '' \
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2247 'void exit (int);'
2249 cat >conftest.$ac_ext <<_ACEOF
2250 /* confdefs.h. */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2255 $ac_declaration
2256 #include <stdlib.h>
2258 main ()
2260 exit (42);
2262 return 0;
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2268 ac_status=$?
2269 grep -v '^ *+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2288 else
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2292 continue
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2301 $ac_declaration
2303 main ()
2305 exit (42);
2307 return 0;
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 break
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339 done
2340 rm -f conftest*
2341 if test -n "$ac_declaration"; then
2342 echo '#ifdef __cplusplus' >>confdefs.h
2343 echo $ac_declaration >>confdefs.h
2344 echo '#endif' >>confdefs.h
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362 if test "${ac_cv_search_strerror+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 ac_func_search_save_LIBS=$LIBS
2366 ac_cv_search_strerror=no
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h. */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 #ifdef __cplusplus
2376 extern "C"
2377 #endif
2378 /* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380 char strerror ();
2382 main ()
2384 strerror ();
2386 return 0;
2388 _ACEOF
2389 rm -f conftest.$ac_objext conftest$ac_exeext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391 (eval $ac_link) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest$ac_exeext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_search_strerror="none required"
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f conftest.err conftest.$ac_objext \
2418 conftest$ac_exeext conftest.$ac_ext
2419 if test "$ac_cv_search_strerror" = no; then
2420 for ac_lib in cposix; do
2421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2429 /* Override any gcc2 internal prototype to avoid an error. */
2430 #ifdef __cplusplus
2431 extern "C"
2432 #endif
2433 /* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2435 char strerror ();
2437 main ()
2439 strerror ();
2441 return 0;
2443 _ACEOF
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest$ac_exeext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 ac_cv_search_strerror="-l$ac_lib"
2467 break
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2473 rm -f conftest.err conftest.$ac_objext \
2474 conftest$ac_exeext conftest.$ac_ext
2475 done
2477 LIBS=$ac_func_search_save_LIBS
2479 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2480 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2481 if test "$ac_cv_search_strerror" != no; then
2482 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2487 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2488 am__api_version="1.9"
2489 # Find a good install program. We prefer a C program (faster),
2490 # so one script is as good as another. But avoid the broken or
2491 # incompatible versions:
2492 # SysV /etc/install, /usr/sbin/install
2493 # SunOS /usr/etc/install
2494 # IRIX /sbin/install
2495 # AIX /bin/install
2496 # AmigaOS /C/install, which installs bootblocks on floppy discs
2497 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500 # OS/2's system install, which has a completely different semantic
2501 # ./install, which can be erroneously created by make from ./install.sh.
2502 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2503 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2504 if test -z "$INSTALL"; then
2505 if test "${ac_cv_path_install+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514 case $as_dir/ in
2515 ./ | .// | /cC/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2518 /usr/ucb/* ) ;;
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2534 else
2535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 break 3
2539 done
2540 done
2542 esac
2543 done
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2549 else
2550 # As a last resort, use the slow shell script. We don't cache a
2551 # path for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the path is relative.
2554 INSTALL=$ac_install_sh
2557 echo "$as_me:$LINENO: result: $INSTALL" >&5
2558 echo "${ECHO_T}$INSTALL" >&6
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2569 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2570 # Just in case
2571 sleep 1
2572 echo timestamp > conftest.file
2573 # Do `set' in a subshell so we don't clobber the current shell's
2574 # arguments. Must try -L first in case configure is actually a
2575 # symlink; some systems play weird games with the mod time of symlinks
2576 # (eg FreeBSD returns the mod time of the symlink's containing
2577 # directory).
2578 if (
2579 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2580 if test "$*" = "X"; then
2581 # -L didn't work.
2582 set X `ls -t $srcdir/configure conftest.file`
2584 rm -f conftest.file
2585 if test "$*" != "X $srcdir/configure conftest.file" \
2586 && test "$*" != "X conftest.file $srcdir/configure"; then
2588 # If neither matched, then we have a broken ls. This can happen
2589 # if, for instance, CONFIG_SHELL is bash and it inherits a
2590 # broken ls alias from the environment. This has actually
2591 # happened. Such a system could not be considered "sane".
2592 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2593 alias in your environment" >&5
2594 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2595 alias in your environment" >&2;}
2596 { (exit 1); exit 1; }; }
2599 test "$2" = conftest.file
2601 then
2602 # Ok.
2604 else
2605 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2606 Check your system clock" >&5
2607 echo "$as_me: error: newly created file is older than distributed files!
2608 Check your system clock" >&2;}
2609 { (exit 1); exit 1; }; }
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2613 test "$program_prefix" != NONE &&
2614 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2615 # Use a double $ so make ignores it.
2616 test "$program_suffix" != NONE &&
2617 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2618 # Double any \ or $. echo might interpret backslashes.
2619 # By default was `s,x,x', remove it if useless.
2620 cat <<\_ACEOF >conftest.sed
2621 s/[\\$]/&&/g;s/;s,x,x,$//
2622 _ACEOF
2623 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2624 rm conftest.sed
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2629 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2630 # Use eval to expand $SHELL
2631 if eval "$MISSING --run true"; then
2632 am_missing_run="$MISSING --run "
2633 else
2634 am_missing_run=
2635 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2636 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2639 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2640 # We used to keeping the `.' as first argument, in order to
2641 # allow $(mkdir_p) to be used without argument. As in
2642 # $(mkdir_p) $(somedir)
2643 # where $(somedir) is conditionally defined. However this is wrong
2644 # for two reasons:
2645 # 1. if the package is installed by a user who cannot write `.'
2646 # make install will fail,
2647 # 2. the above comment should most certainly read
2648 # $(mkdir_p) $(DESTDIR)$(somedir)
2649 # so it does not work when $(somedir) is undefined and
2650 # $(DESTDIR) is not.
2651 # To support the latter case, we have to write
2652 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2653 # so the `.' trick is pointless.
2654 mkdir_p='mkdir -p --'
2655 else
2656 # On NextStep and OpenStep, the `mkdir' command does not
2657 # recognize any option. It will interpret all options as
2658 # directories to create, and then abort because `.' already
2659 # exists.
2660 for d in ./-p ./--version;
2662 test -d $d && rmdir $d
2663 done
2664 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2665 if test -f "$ac_aux_dir/mkinstalldirs"; then
2666 mkdir_p='$(mkinstalldirs)'
2667 else
2668 mkdir_p='$(install_sh) -d'
2672 for ac_prog in gawk mawk nawk awk
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_AWK+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2700 AWK=$ac_cv_prog_AWK
2701 if test -n "$AWK"; then
2702 echo "$as_me:$LINENO: result: $AWK" >&5
2703 echo "${ECHO_T}$AWK" >&6
2704 else
2705 echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2709 test -n "$AWK" && break
2710 done
2712 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2714 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2715 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 cat >conftest.make <<\_ACEOF
2719 all:
2720 @echo 'ac_maketemp="$(MAKE)"'
2721 _ACEOF
2722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2724 if test -n "$ac_maketemp"; then
2725 eval ac_cv_prog_make_${ac_make}_set=yes
2726 else
2727 eval ac_cv_prog_make_${ac_make}_set=no
2729 rm -f conftest.make
2731 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2732 echo "$as_me:$LINENO: result: yes" >&5
2733 echo "${ECHO_T}yes" >&6
2734 SET_MAKE=
2735 else
2736 echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2738 SET_MAKE="MAKE=${MAKE-make}"
2741 rm -rf .tst 2>/dev/null
2742 mkdir .tst 2>/dev/null
2743 if test -d .tst; then
2744 am__leading_dot=.
2745 else
2746 am__leading_dot=_
2748 rmdir .tst 2>/dev/null
2750 DEPDIR="${am__leading_dot}deps"
2752 ac_config_commands="$ac_config_commands depfiles"
2755 am_make=${MAKE-make}
2756 cat > confinc << 'END'
2757 am__doit:
2758 @echo done
2759 .PHONY: am__doit
2761 # If we don't find an include directive, just comment out the code.
2762 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2763 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2764 am__include="#"
2765 am__quote=
2766 _am_result=none
2767 # First try GNU make style include.
2768 echo "include confinc" > confmf
2769 # We grep out `Entering directory' and `Leaving directory'
2770 # messages which can occur if `w' ends up in MAKEFLAGS.
2771 # In particular we don't look at `^make:' because GNU make might
2772 # be invoked under some other name (usually "gmake"), in which
2773 # case it prints its new name instead of `make'.
2774 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2775 am__include=include
2776 am__quote=
2777 _am_result=GNU
2779 # Now try BSD make style include.
2780 if test "$am__include" = "#"; then
2781 echo '.include "confinc"' > confmf
2782 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2783 am__include=.include
2784 am__quote="\""
2785 _am_result=BSD
2790 echo "$as_me:$LINENO: result: $_am_result" >&5
2791 echo "${ECHO_T}$_am_result" >&6
2792 rm -f confinc confmf
2794 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2795 if test "${enable_dependency_tracking+set}" = set; then
2796 enableval="$enable_dependency_tracking"
2799 if test "x$enable_dependency_tracking" != xno; then
2800 am_depcomp="$ac_aux_dir/depcomp"
2801 AMDEPBACKSLASH='\'
2805 if test "x$enable_dependency_tracking" != xno; then
2806 AMDEP_TRUE=
2807 AMDEP_FALSE='#'
2808 else
2809 AMDEP_TRUE='#'
2810 AMDEP_FALSE=
2815 # test to see if srcdir already configured
2816 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2817 test -f $srcdir/config.status; then
2818 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2819 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2820 { (exit 1); exit 1; }; }
2823 # test whether we have cygpath
2824 if test -z "$CYGPATH_W"; then
2825 if (cygpath --version) >/dev/null 2>/dev/null; then
2826 CYGPATH_W='cygpath -w'
2827 else
2828 CYGPATH_W=echo
2833 # Define the identity of the package.
2834 PACKAGE=binutils
2835 VERSION=${BFD_VERSION}
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE "$PACKAGE"
2840 _ACEOF
2843 cat >>confdefs.h <<_ACEOF
2844 #define VERSION "$VERSION"
2845 _ACEOF
2847 # Some tools Automake needs.
2849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2865 # Installed binaries are usually stripped using `strip' when the user
2866 # run `make install-strip'. However `strip' might not be the right
2867 # tool to use in cross-compilation environments, therefore Automake
2868 # will honor the `STRIP' environment variable to overrule this program.
2869 if test "$cross_compiling" != no; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}strip; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_STRIP+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 if test -n "$STRIP"; then
2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2892 done
2893 done
2897 STRIP=$ac_cv_prog_STRIP
2898 if test -n "$STRIP"; then
2899 echo "$as_me:$LINENO: result: $STRIP" >&5
2900 echo "${ECHO_T}$STRIP" >&6
2901 else
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2907 if test -z "$ac_cv_prog_STRIP"; then
2908 ac_ct_STRIP=$STRIP
2909 # Extract the first word of "strip", so it can be a program name with args.
2910 set dummy strip; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 if test -n "$ac_ct_STRIP"; then
2917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_STRIP="strip"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2930 done
2931 done
2933 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937 if test -n "$ac_ct_STRIP"; then
2938 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2939 echo "${ECHO_T}$ac_ct_STRIP" >&6
2940 else
2941 echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2945 STRIP=$ac_ct_STRIP
2946 else
2947 STRIP="$ac_cv_prog_STRIP"
2951 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2953 # We need awk for the "check" target. The system "awk" is bad on
2954 # some platforms.
2955 # Always define AMTAR for backward compatibility.
2957 AMTAR=${AMTAR-"${am_missing_run}tar"}
2959 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2964 depcc="$CC" am_compiler_list=
2966 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2967 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2968 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2972 # We make a subdir and do the tests there. Otherwise we can end up
2973 # making bogus files that we don't know about and never remove. For
2974 # instance it was reported that on HP-UX the gcc test will end up
2975 # making a dummy file named `D' -- because `-MD' means `put the output
2976 # in D'.
2977 mkdir conftest.dir
2978 # Copy depcomp to subdir because otherwise we won't find it if we're
2979 # using a relative directory.
2980 cp "$am_depcomp" conftest.dir
2981 cd conftest.dir
2982 # We will build objects and dependencies in a subdirectory because
2983 # it helps to detect inapplicable dependency modes. For instance
2984 # both Tru64's cc and ICC support -MD to output dependencies as a
2985 # side effect of compilation, but ICC will put the dependencies in
2986 # the current directory while Tru64 will put them in the object
2987 # directory.
2988 mkdir sub
2990 am_cv_CC_dependencies_compiler_type=none
2991 if test "$am_compiler_list" = ""; then
2992 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2994 for depmode in $am_compiler_list; do
2995 # Setup a source with many dependencies, because some compilers
2996 # like to wrap large dependency lists on column 80 (with \), and
2997 # we should not choose a depcomp mode which is confused by this.
2999 # We need to recreate these files for each test, as the compiler may
3000 # overwrite some of them when testing with obscure command lines.
3001 # This happens at least with the AIX C compiler.
3002 : > sub/conftest.c
3003 for i in 1 2 3 4 5 6; do
3004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3006 # Solaris 8's {/usr,}/bin/sh.
3007 touch sub/conftst$i.h
3008 done
3009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3011 case $depmode in
3012 nosideeffect)
3013 # after this tag, mechanisms are not by side-effect, so they'll
3014 # only be used when explicitly requested
3015 if test "x$enable_dependency_tracking" = xyes; then
3016 continue
3017 else
3018 break
3021 none) break ;;
3022 esac
3023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3024 # mode. It turns out that the SunPro C++ compiler does not properly
3025 # handle `-M -o', and we need to detect this.
3026 if depmode=$depmode \
3027 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3029 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3030 >/dev/null 2>conftest.err &&
3031 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3032 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3033 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3034 # icc doesn't choke on unknown options, it will just issue warnings
3035 # or remarks (even with -Werror). So we grep stderr for any message
3036 # that says an option was ignored or not supported.
3037 # When given -MP, icc 7.0 and 7.1 complain thusly:
3038 # icc: Command line warning: ignoring option '-M'; no argument required
3039 # The diagnosis changed in icc 8.0:
3040 # icc: Command line remark: option '-MP' not supported
3041 if (grep 'ignoring option' conftest.err ||
3042 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3043 am_cv_CC_dependencies_compiler_type=$depmode
3044 break
3047 done
3049 cd ..
3050 rm -rf conftest.dir
3051 else
3052 am_cv_CC_dependencies_compiler_type=none
3056 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3058 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3063 test "x$enable_dependency_tracking" != xno \
3064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3065 am__fastdepCC_TRUE=
3066 am__fastdepCC_FALSE='#'
3067 else
3068 am__fastdepCC_TRUE='#'
3069 am__fastdepCC_FALSE=
3075 # Check whether --enable-shared or --disable-shared was given.
3076 if test "${enable_shared+set}" = set; then
3077 enableval="$enable_shared"
3078 p=${PACKAGE-default}
3079 case $enableval in
3080 yes) enable_shared=yes ;;
3081 no) enable_shared=no ;;
3083 enable_shared=no
3084 # Look at the argument we got. We use all the common list separators.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3086 for pkg in $enableval; do
3087 if test "X$pkg" = "X$p"; then
3088 enable_shared=yes
3090 done
3091 IFS="$ac_save_ifs"
3093 esac
3094 else
3095 enable_shared=yes
3097 # Check whether --enable-static or --disable-static was given.
3098 if test "${enable_static+set}" = set; then
3099 enableval="$enable_static"
3100 p=${PACKAGE-default}
3101 case $enableval in
3102 yes) enable_static=yes ;;
3103 no) enable_static=no ;;
3105 enable_static=no
3106 # Look at the argument we got. We use all the common list separators.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3108 for pkg in $enableval; do
3109 if test "X$pkg" = "X$p"; then
3110 enable_static=yes
3112 done
3113 IFS="$ac_save_ifs"
3115 esac
3116 else
3117 enable_static=yes
3119 # Check whether --enable-fast-install or --disable-fast-install was given.
3120 if test "${enable_fast_install+set}" = set; then
3121 enableval="$enable_fast_install"
3122 p=${PACKAGE-default}
3123 case $enableval in
3124 yes) enable_fast_install=yes ;;
3125 no) enable_fast_install=no ;;
3127 enable_fast_install=no
3128 # Look at the argument we got. We use all the common list separators.
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3130 for pkg in $enableval; do
3131 if test "X$pkg" = "X$p"; then
3132 enable_fast_install=yes
3134 done
3135 IFS="$ac_save_ifs"
3137 esac
3138 else
3139 enable_fast_install=yes
3142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3143 if test "${with_gnu_ld+set}" = set; then
3144 withval="$with_gnu_ld"
3145 test "$withval" = no || with_gnu_ld=yes
3146 else
3147 with_gnu_ld=no
3149 ac_prog=ld
3150 if test "$GCC" = yes; then
3151 # Check if gcc -print-prog-name=ld gives a path.
3152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3153 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3154 case $host in
3155 *-*-mingw*)
3156 # gcc leaves a trailing carriage return which upsets mingw
3157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3160 esac
3161 case $ac_prog in
3162 # Accept absolute paths.
3163 [\\/]* | [A-Za-z]:[\\/]*)
3164 re_direlt='/[^/][^/]*/\.\./'
3165 # Canonicalize the path of ld
3166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3169 done
3170 test -z "$LD" && LD="$ac_prog"
3173 # If it fails, then pretend we aren't using GCC.
3174 ac_prog=ld
3177 # If it is relative, then search for the first ld in PATH.
3178 with_gnu_ld=unknown
3180 esac
3181 elif test "$with_gnu_ld" = yes; then
3182 echo "$as_me:$LINENO: checking for GNU ld" >&5
3183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3184 else
3185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3188 if test "${lt_cv_path_LD+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 if test -z "$LD"; then
3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3193 for ac_dir in $PATH; do
3194 test -z "$ac_dir" && ac_dir=.
3195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3196 lt_cv_path_LD="$ac_dir/$ac_prog"
3197 # Check to see if the program is GNU ld. I'd rather use --version,
3198 # but apparently some GNU ld's only accept -v.
3199 # Break only if it was the GNU/non-GNU ld that we prefer.
3200 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3201 test "$with_gnu_ld" != no && break
3202 else
3203 test "$with_gnu_ld" != yes && break
3206 done
3207 IFS="$ac_save_ifs"
3208 else
3209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3213 LD="$lt_cv_path_LD"
3214 if test -n "$LD"; then
3215 echo "$as_me:$LINENO: result: $LD" >&5
3216 echo "${ECHO_T}$LD" >&6
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3223 { (exit 1); exit 1; }; }
3224 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3230 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3231 lt_cv_prog_gnu_ld=yes
3232 else
3233 lt_cv_prog_gnu_ld=no
3236 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3237 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3238 with_gnu_ld=$lt_cv_prog_gnu_ld
3241 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3242 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3243 if test "${lt_cv_ld_reload_flag+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 lt_cv_ld_reload_flag='-r'
3248 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3249 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3250 reload_flag=$lt_cv_ld_reload_flag
3251 test -n "$reload_flag" && reload_flag=" $reload_flag"
3253 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3255 if test "${lt_cv_path_NM+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 if test -n "$NM"; then
3259 # Let the user override the test.
3260 lt_cv_path_NM="$NM"
3261 else
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3263 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3264 test -z "$ac_dir" && ac_dir=.
3265 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3266 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3267 # Check to see if the nm accepts a BSD-compat flag.
3268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3269 # nm: unknown option "B" ignored
3270 # Tru64's nm complains that /dev/null is an invalid object file
3271 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3272 lt_cv_path_NM="$tmp_nm -B"
3273 break
3274 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3275 lt_cv_path_NM="$tmp_nm -p"
3276 break
3277 else
3278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3279 continue # so that we can try to find one that supports BSD flags
3282 done
3283 IFS="$ac_save_ifs"
3284 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3288 NM="$lt_cv_path_NM"
3289 echo "$as_me:$LINENO: result: $NM" >&5
3290 echo "${ECHO_T}$NM" >&6
3292 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294 LN_S=$as_ln_s
3295 if test "$LN_S" = "ln -s"; then
3296 echo "$as_me:$LINENO: result: yes" >&5
3297 echo "${ECHO_T}yes" >&6
3298 else
3299 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300 echo "${ECHO_T}no, using $LN_S" >&6
3303 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3304 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3305 if test "${lt_cv_deplibs_check_method+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 lt_cv_file_magic_cmd='$MAGIC_CMD'
3309 lt_cv_file_magic_test_file=
3310 lt_cv_deplibs_check_method='unknown'
3311 # Need to set the preceding variable on all platforms that support
3312 # interlibrary dependencies.
3313 # 'none' -- dependencies not supported.
3314 # `unknown' -- same as none, but documents that we really don't know.
3315 # 'pass_all' -- all dependencies passed with no checks.
3316 # 'test_compile' -- check by making test program.
3317 # 'file_magic [regex]' -- check by looking for files in library path
3318 # which responds to the $file_magic_cmd with a given egrep regex.
3319 # If you have `file' or equivalent on your system and you're not sure
3320 # whether `pass_all' will *always* work, you probably want this one.
3322 case $host_os in
3323 aix*)
3324 lt_cv_deplibs_check_method=pass_all
3327 beos*)
3328 lt_cv_deplibs_check_method=pass_all
3331 bsdi4*)
3332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333 lt_cv_file_magic_cmd='/usr/bin/file -L'
3334 lt_cv_file_magic_test_file=/shlib/libc.so
3337 cygwin* | mingw* |pw32*)
3338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3339 lt_cv_file_magic_cmd='$OBJDUMP -f'
3342 darwin* | rhapsody*)
3343 # this will be overwritten by pass_all, but leave it in just in case
3344 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3345 lt_cv_file_magic_cmd='/usr/bin/file -L'
3346 case "$host_os" in
3347 rhapsody* | darwin1.012)
3348 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3350 *) # Darwin 1.3 on
3351 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3353 esac
3354 lt_cv_deplibs_check_method=pass_all
3357 freebsd* | kfreebsd*-gnu)
3358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3359 case $host_cpu in
3360 i*86 )
3361 # Not sure whether the presence of OpenBSD here was a mistake.
3362 # Let's accept both of them until this is cleared up.
3363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3364 lt_cv_file_magic_cmd=/usr/bin/file
3365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3367 esac
3368 else
3369 lt_cv_deplibs_check_method=pass_all
3373 gnu*)
3374 lt_cv_deplibs_check_method=pass_all
3377 hpux10.20*|hpux11*)
3378 case $host_cpu in
3379 hppa*)
3380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3381 lt_cv_file_magic_cmd=/usr/bin/file
3382 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3384 ia64*)
3385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3386 lt_cv_file_magic_cmd=/usr/bin/file
3387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3389 esac
3392 irix5* | irix6*)
3393 case $host_os in
3394 irix5*)
3395 # this will be overridden with pass_all, but let us keep it just in case
3396 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3399 case $LD in
3400 *-32|*"-32 ") libmagic=32-bit;;
3401 *-n32|*"-n32 ") libmagic=N32;;
3402 *-64|*"-64 ") libmagic=64-bit;;
3403 *) libmagic=never-match;;
3404 esac
3405 # this will be overridden with pass_all, but let us keep it just in case
3406 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3408 esac
3409 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3410 lt_cv_deplibs_check_method=pass_all
3413 # This must be Linux ELF.
3414 linux-gnu*)
3415 lt_cv_deplibs_check_method=pass_all
3418 netbsd* | knetbsd*-gnu)
3419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3420 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3421 else
3422 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3426 newsos6)
3427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3428 lt_cv_file_magic_cmd=/usr/bin/file
3429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3432 osf3* | osf4* | osf5*)
3433 # this will be overridden with pass_all, but let us keep it just in case
3434 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3435 lt_cv_file_magic_test_file=/shlib/libc.so
3436 lt_cv_deplibs_check_method=pass_all
3439 sco3.2v5*)
3440 lt_cv_deplibs_check_method=pass_all
3443 solaris*)
3444 lt_cv_deplibs_check_method=pass_all
3445 lt_cv_file_magic_test_file=/lib/libc.so
3448 sysv5uw[78]* | sysv4*uw2*)
3449 lt_cv_deplibs_check_method=pass_all
3452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3453 case $host_vendor in
3454 ncr)
3455 lt_cv_deplibs_check_method=pass_all
3457 motorola)
3458 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]'
3459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3461 esac
3463 esac
3466 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3467 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3468 file_magic_cmd=$lt_cv_file_magic_cmd
3469 deplibs_check_method=$lt_cv_deplibs_check_method
3474 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3476 # find the maximum length of command line arguments
3477 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3478 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3479 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3483 teststring="ABCD"
3485 case $build_os in
3486 msdosdjgpp*)
3487 # On DJGPP, this test can blow up pretty badly due to problems in libc
3488 # (any single argument exceeding 2000 bytes causes a buffer overrun
3489 # during glob expansion). Even if it were fixed, the result of this
3490 # check would be larger than it should be.
3491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3494 cygwin* | mingw*)
3495 # On Win9x/ME, this test blows up -- it succeeds, but takes
3496 # about 5 minutes as the teststring grows exponentially.
3497 # Worse, since 9x/ME are not pre-emptively multitasking,
3498 # you end up with a "frozen" computer, even though with patience
3499 # the test eventually succeeds (with a max line length of 256k).
3500 # Instead, let's just punt: use the minimum linelength reported by
3501 # all of the supported platforms: 8192 (on NT/2K/XP).
3502 lt_cv_sys_max_cmd_len=8192;
3505 amigaos*)
3506 # On AmigaOS with pdksh, this test takes hours, literally.
3507 # So we just punt and use a minimum line length of 8192.
3508 lt_cv_sys_max_cmd_len=8192;
3511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3512 # This has been around since 386BSD, at least. Likely further.
3513 if test -x /sbin/sysctl; then
3514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3515 elif test -x /usr/sbin/sysctl; then
3516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3517 else
3518 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3520 # And add a safety zone
3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3524 esac
3528 if test -n "$lt_cv_sys_max_cmd_len" ; then
3529 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3530 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3531 else
3532 echo "$as_me:$LINENO: result: none" >&5
3533 echo "${ECHO_T}none" >&6
3537 # Only perform the check for file, if the check method requires it
3538 case $deplibs_check_method in
3539 file_magic*)
3540 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3541 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3542 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 case $MAGIC_CMD in
3548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3550 ?:/*)
3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3554 ac_save_MAGIC_CMD="$MAGIC_CMD"
3555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 ac_dummy="/usr/bin:$PATH"
3557 for ac_dir in $ac_dummy; do
3558 test -z "$ac_dir" && ac_dir=.
3559 if test -f $ac_dir/${ac_tool_prefix}file; then
3560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3561 if test -n "$file_magic_test_file"; then
3562 case $deplibs_check_method in
3563 "file_magic "*)
3564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567 egrep "$file_magic_regex" > /dev/null; then
3569 else
3570 cat <<EOF 1>&2
3572 *** Warning: the command libtool uses to detect shared libraries,
3573 *** $file_magic_cmd, produces output that libtool cannot recognize.
3574 *** The result is that libtool may fail to recognize shared libraries
3575 *** as such. This will affect the creation of libtool libraries that
3576 *** depend on shared libraries, but programs linked with such libtool
3577 *** libraries will work regardless of this problem. Nevertheless, you
3578 *** may want to report the problem to your system manager and/or to
3579 *** bug-libtool@gnu.org
3582 fi ;;
3583 esac
3585 break
3587 done
3588 IFS="$ac_save_ifs"
3589 MAGIC_CMD="$ac_save_MAGIC_CMD"
3591 esac
3594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595 if test -n "$MAGIC_CMD"; then
3596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597 echo "${ECHO_T}$MAGIC_CMD" >&6
3598 else
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3603 if test -z "$lt_cv_path_MAGIC_CMD"; then
3604 if test -n "$ac_tool_prefix"; then
3605 echo "$as_me:$LINENO: checking for file" >&5
3606 echo $ECHO_N "checking for file... $ECHO_C" >&6
3607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 case $MAGIC_CMD in
3612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3614 ?:/*)
3615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3618 ac_save_MAGIC_CMD="$MAGIC_CMD"
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3620 ac_dummy="/usr/bin:$PATH"
3621 for ac_dir in $ac_dummy; do
3622 test -z "$ac_dir" && ac_dir=.
3623 if test -f $ac_dir/file; then
3624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3625 if test -n "$file_magic_test_file"; then
3626 case $deplibs_check_method in
3627 "file_magic "*)
3628 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3631 egrep "$file_magic_regex" > /dev/null; then
3633 else
3634 cat <<EOF 1>&2
3636 *** Warning: the command libtool uses to detect shared libraries,
3637 *** $file_magic_cmd, produces output that libtool cannot recognize.
3638 *** The result is that libtool may fail to recognize shared libraries
3639 *** as such. This will affect the creation of libtool libraries that
3640 *** depend on shared libraries, but programs linked with such libtool
3641 *** libraries will work regardless of this problem. Nevertheless, you
3642 *** may want to report the problem to your system manager and/or to
3643 *** bug-libtool@gnu.org
3646 fi ;;
3647 esac
3649 break
3651 done
3652 IFS="$ac_save_ifs"
3653 MAGIC_CMD="$ac_save_MAGIC_CMD"
3655 esac
3658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3659 if test -n "$MAGIC_CMD"; then
3660 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3661 echo "${ECHO_T}$MAGIC_CMD" >&6
3662 else
3663 echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3667 else
3668 MAGIC_CMD=:
3674 esac
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3679 echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681 if test "${ac_cv_prog_RANLIB+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 if test -n "$RANLIB"; then
3685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3698 done
3699 done
3703 RANLIB=$ac_cv_prog_RANLIB
3704 if test -n "$RANLIB"; then
3705 echo "$as_me:$LINENO: result: $RANLIB" >&5
3706 echo "${ECHO_T}$RANLIB" >&6
3707 else
3708 echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3713 if test -z "$ac_cv_prog_RANLIB"; then
3714 ac_ct_RANLIB=$RANLIB
3715 # Extract the first word of "ranlib", so it can be a program name with args.
3716 set dummy ranlib; ac_word=$2
3717 echo "$as_me:$LINENO: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$ac_ct_RANLIB"; then
3723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_RANLIB="ranlib"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3736 done
3737 done
3739 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3742 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3743 if test -n "$ac_ct_RANLIB"; then
3744 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3745 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3746 else
3747 echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3751 RANLIB=$ac_ct_RANLIB
3752 else
3753 RANLIB="$ac_cv_prog_RANLIB"
3756 if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758 set dummy ${ac_tool_prefix}strip; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_prog_STRIP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 if test -n "$STRIP"; then
3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3778 done
3779 done
3783 STRIP=$ac_cv_prog_STRIP
3784 if test -n "$STRIP"; then
3785 echo "$as_me:$LINENO: result: $STRIP" >&5
3786 echo "${ECHO_T}$STRIP" >&6
3787 else
3788 echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3793 if test -z "$ac_cv_prog_STRIP"; then
3794 ac_ct_STRIP=$STRIP
3795 # Extract the first word of "strip", so it can be a program name with args.
3796 set dummy strip; ac_word=$2
3797 echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 if test -n "$ac_ct_STRIP"; then
3803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_STRIP="strip"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3819 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3823 if test -n "$ac_ct_STRIP"; then
3824 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3825 echo "${ECHO_T}$ac_ct_STRIP" >&6
3826 else
3827 echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3831 STRIP=$ac_ct_STRIP
3832 else
3833 STRIP="$ac_cv_prog_STRIP"
3837 # Check for any special flags to pass to ltconfig.
3838 libtool_flags="--cache-file=$cache_file"
3839 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3840 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3841 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3842 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3843 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3846 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3847 if test "${enable_libtool_lock+set}" = set; then
3848 enableval="$enable_libtool_lock"
3851 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3852 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3855 # Check whether --with-pic or --without-pic was given.
3856 if test "${with_pic+set}" = set; then
3857 withval="$with_pic"
3858 pic_mode="$withval"
3859 else
3860 pic_mode=default
3862 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3863 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3865 # Some flags need to be propagated to the compiler or linker for good
3866 # libtool support.
3867 case $host in
3868 *-*-irix6*)
3869 # Find out which ABI we are using.
3870 echo '#line 3870 "configure"' > conftest.$ac_ext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; then
3876 if test "$lt_cv_prog_gnu_ld" = yes; then
3877 case `/usr/bin/file conftest.$ac_objext` in
3878 *32-bit*)
3879 LD="${LD-ld} -melf32bsmip"
3881 *N32*)
3882 LD="${LD-ld} -melf32bmipn32"
3884 *64-bit*)
3885 LD="${LD-ld} -melf64bmip"
3887 esac
3888 else
3889 case `/usr/bin/file conftest.$ac_objext` in
3890 *32-bit*)
3891 LD="${LD-ld} -32"
3893 *N32*)
3894 LD="${LD-ld} -n32"
3896 *64-bit*)
3897 LD="${LD-ld} -64"
3899 esac
3902 rm -rf conftest*
3905 ia64-*-hpux*)
3906 # Find out which ABI we are using.
3907 echo 'int i;' > conftest.$ac_ext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; then
3913 case "`/usr/bin/file conftest.o`" in
3914 *ELF-32*)
3915 HPUX_IA64_MODE="32"
3917 *ELF-64*)
3918 HPUX_IA64_MODE="64"
3920 esac
3922 rm -rf conftest*
3925 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3926 # Find out which ABI we are using.
3927 echo 'int i;' > conftest.$ac_ext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; then
3933 case "`/usr/bin/file conftest.o`" in
3934 *32-bit*)
3935 case $host in
3936 x86_64-*linux*)
3937 LD="${LD-ld} -m elf_i386"
3939 ppc64-*linux*|powerpc64-*linux*)
3940 LD="${LD-ld} -m elf32ppclinux"
3942 s390x-*linux*)
3943 LD="${LD-ld} -m elf_s390"
3945 sparc64-*linux*)
3946 LD="${LD-ld} -m elf32_sparc"
3948 esac
3950 *64-bit*)
3951 case $host in
3952 x86_64-*linux*)
3953 LD="${LD-ld} -m elf_x86_64"
3955 ppc*-*linux*|powerpc*-*linux*)
3956 LD="${LD-ld} -m elf64ppc"
3958 s390*-*linux*)
3959 LD="${LD-ld} -m elf64_s390"
3961 sparc*-*linux*)
3962 LD="${LD-ld} -m elf64_sparc"
3964 esac
3966 esac
3968 rm -rf conftest*
3971 *-*-sco3.2v5*)
3972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3973 SAVE_CFLAGS="$CFLAGS"
3974 CFLAGS="$CFLAGS -belf"
3975 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3976 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3977 if test "${lt_cv_cc_needs_belf+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3982 ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3996 main ()
4000 return 0;
4002 _ACEOF
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005 (eval $ac_link) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest$ac_exeext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 lt_cv_cc_needs_belf=yes
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 lt_cv_cc_needs_belf=no
4032 rm -f conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4042 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4045 CFLAGS="$SAVE_CFLAGS"
4050 esac
4053 # Save cache, so that ltconfig can load it
4054 cat >confcache <<\_ACEOF
4055 # This file is a shell script that caches the results of configure
4056 # tests run on this system so they can be shared between configure
4057 # scripts and configure runs, see configure's option --config-cache.
4058 # It is not useful on other systems. If it contains results you don't
4059 # want to keep, you may remove or edit it.
4061 # config.status only pays attention to the cache file if you give it
4062 # the --recheck option to rerun configure.
4064 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4065 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4066 # following values.
4068 _ACEOF
4070 # The following way of writing the cache mishandles newlines in values,
4071 # but we know of no workaround that is simple, portable, and efficient.
4072 # So, don't put newlines in cache variables' values.
4073 # Ultrix sh set writes to stderr and can't be redirected directly,
4074 # and sets the high bit in the cache file unless we assign to the vars.
4076 (set) 2>&1 |
4077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4078 *ac_space=\ *)
4079 # `set' does not quote correctly, so add quotes (double-quote
4080 # substitution turns \\\\ into \\, and sed turns \\ into \).
4081 sed -n \
4082 "s/'/'\\\\''/g;
4083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4086 # `set' quotes correctly as required by POSIX, so do not add quotes.
4087 sed -n \
4088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4090 esac;
4092 sed '
4093 t clear
4094 : clear
4095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4096 t end
4097 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4098 : end' >>confcache
4099 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4100 if test -w $cache_file; then
4101 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4102 cat confcache >$cache_file
4103 else
4104 echo "not updating unwritable cache $cache_file"
4107 rm -f confcache
4109 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4110 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4111 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4112 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4113 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4114 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4115 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4116 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4117 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4118 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4119 echo "$as_me: error: libtool configure failed" >&2;}
4120 { (exit 1); exit 1; }; }
4122 # Reload cache, that may have been modified by ltconfig
4123 if test -r "$cache_file"; then
4124 # Some versions of bash will fail to source /dev/null (special
4125 # files actually), so we avoid doing that.
4126 if test -f "$cache_file"; then
4127 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4128 echo "$as_me: loading cache $cache_file" >&6;}
4129 case $cache_file in
4130 [\\/]* | ?:[\\/]* ) . $cache_file;;
4131 *) . ./$cache_file;;
4132 esac
4134 else
4135 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4136 echo "$as_me: creating cache $cache_file" >&6;}
4137 >$cache_file
4141 # This can be used to rebuild libtool when needed
4142 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4144 # Always use our own libtool.
4145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4147 # Redirect the config.log output again, so that the ltconfig log is not
4148 # clobbered by the next message.
4149 exec 5>>./config.log
4157 # Check whether --enable-targets or --disable-targets was given.
4158 if test "${enable_targets+set}" = set; then
4159 enableval="$enable_targets"
4160 case "${enableval}" in
4161 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4162 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4163 { (exit 1); exit 1; }; }
4165 no) enable_targets= ;;
4166 *) enable_targets=$enableval ;;
4167 esac
4168 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4169 if test "${enable_commonbfdlib+set}" = set; then
4170 enableval="$enable_commonbfdlib"
4171 case "${enableval}" in
4172 yes) commonbfdlib=true ;;
4173 no) commonbfdlib=false ;;
4174 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4175 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4176 { (exit 1); exit 1; }; } ;;
4177 esac
4180 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4182 # Check whether --enable-werror or --disable-werror was given.
4183 if test "${enable_werror+set}" = set; then
4184 enableval="$enable_werror"
4185 case "${enableval}" in
4186 yes | y) ERROR_ON_WARNING="yes" ;;
4187 no | n) ERROR_ON_WARNING="no" ;;
4188 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4189 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4190 { (exit 1); exit 1; }; } ;;
4191 esac
4194 # Enable -Werror by default when using gcc
4195 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4196 ERROR_ON_WARNING=yes
4199 NO_WERROR=
4200 if test "${ERROR_ON_WARNING}" = yes ; then
4201 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4202 NO_WERROR="-Wno-error"
4205 if test "${GCC}" = yes ; then
4206 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4209 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4210 if test "${enable_build_warnings+set}" = set; then
4211 enableval="$enable_build_warnings"
4212 case "${enableval}" in
4213 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4214 no) if test "${GCC}" = yes ; then
4215 WARN_CFLAGS="-w"
4216 fi;;
4217 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4218 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4219 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4220 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4221 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4222 esac
4225 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4226 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4233 ac_config_headers="$ac_config_headers config.h:config.in"
4236 if test -z "$target" ; then
4237 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4238 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4239 { (exit 1); exit 1; }; }
4241 if test -z "$host" ; then
4242 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4243 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4244 { (exit 1); exit 1; }; }
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 if test -n "$ac_tool_prefix"; then
4253 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4254 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4255 echo "$as_me:$LINENO: checking for $ac_word" >&5
4256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4257 if test "${ac_cv_prog_CC+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 if test -n "$CC"; then
4261 ac_cv_prog_CC="$CC" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 break 2
4274 done
4275 done
4279 CC=$ac_cv_prog_CC
4280 if test -n "$CC"; then
4281 echo "$as_me:$LINENO: result: $CC" >&5
4282 echo "${ECHO_T}$CC" >&6
4283 else
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4289 if test -z "$ac_cv_prog_CC"; then
4290 ac_ct_CC=$CC
4291 # Extract the first word of "gcc", so it can be a program name with args.
4292 set dummy gcc; ac_word=$2
4293 echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 if test -n "$ac_ct_CC"; then
4299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308 ac_cv_prog_ac_ct_CC="gcc"
4309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 break 2
4312 done
4313 done
4317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4318 if test -n "$ac_ct_CC"; then
4319 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4320 echo "${ECHO_T}$ac_ct_CC" >&6
4321 else
4322 echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4326 CC=$ac_ct_CC
4327 else
4328 CC="$ac_cv_prog_CC"
4331 if test -z "$CC"; then
4332 if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}cc; ac_word=$2
4335 echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if test "${ac_cv_prog_CC+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC="${ac_tool_prefix}cc"
4351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4354 done
4355 done
4359 CC=$ac_cv_prog_CC
4360 if test -n "$CC"; then
4361 echo "$as_me:$LINENO: result: $CC" >&5
4362 echo "${ECHO_T}$CC" >&6
4363 else
4364 echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4369 if test -z "$ac_cv_prog_CC"; then
4370 ac_ct_CC=$CC
4371 # Extract the first word of "cc", so it can be a program name with args.
4372 set dummy cc; ac_word=$2
4373 echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378 if test -n "$ac_ct_CC"; then
4379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388 ac_cv_prog_ac_ct_CC="cc"
4389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4392 done
4393 done
4397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4398 if test -n "$ac_ct_CC"; then
4399 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4400 echo "${ECHO_T}$ac_ct_CC" >&6
4401 else
4402 echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4406 CC=$ac_ct_CC
4407 else
4408 CC="$ac_cv_prog_CC"
4412 if test -z "$CC"; then
4413 # Extract the first word of "cc", so it can be a program name with args.
4414 set dummy cc; ac_word=$2
4415 echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417 if test "${ac_cv_prog_CC+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 if test -n "$CC"; then
4421 ac_cv_prog_CC="$CC" # Let the user override the test.
4422 else
4423 ac_prog_rejected=no
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4432 ac_prog_rejected=yes
4433 continue
4435 ac_cv_prog_CC="cc"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4442 if test $ac_prog_rejected = yes; then
4443 # We found a bogon in the path, so make sure we never use it.
4444 set dummy $ac_cv_prog_CC
4445 shift
4446 if test $# != 0; then
4447 # We chose a different compiler from the bogus one.
4448 # However, it has the same basename, so the bogon will be chosen
4449 # first if we set CC to just the basename; use the full file name.
4450 shift
4451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4456 CC=$ac_cv_prog_CC
4457 if test -n "$CC"; then
4458 echo "$as_me:$LINENO: result: $CC" >&5
4459 echo "${ECHO_T}$CC" >&6
4460 else
4461 echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6
4466 if test -z "$CC"; then
4467 if test -n "$ac_tool_prefix"; then
4468 for ac_prog in cl
4470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_prog_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477 if test -n "$CC"; then
4478 ac_cv_prog_CC="$CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4491 done
4492 done
4496 CC=$ac_cv_prog_CC
4497 if test -n "$CC"; then
4498 echo "$as_me:$LINENO: result: $CC" >&5
4499 echo "${ECHO_T}$CC" >&6
4500 else
4501 echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4505 test -n "$CC" && break
4506 done
4508 if test -z "$CC"; then
4509 ac_ct_CC=$CC
4510 for ac_prog in cl
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519 if test -n "$ac_ct_CC"; then
4520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_prog_ac_ct_CC="$ac_prog"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4533 done
4534 done
4538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4539 if test -n "$ac_ct_CC"; then
4540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4541 echo "${ECHO_T}$ac_ct_CC" >&6
4542 else
4543 echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4547 test -n "$ac_ct_CC" && break
4548 done
4550 CC=$ac_ct_CC
4556 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4557 See \`config.log' for more details." >&5
4558 echo "$as_me: error: no acceptable C compiler found in \$PATH
4559 See \`config.log' for more details." >&2;}
4560 { (exit 1); exit 1; }; }
4562 # Provide some information about the compiler.
4563 echo "$as_me:$LINENO:" \
4564 "checking for C compiler version" >&5
4565 ac_compiler=`set X $ac_compile; echo $2`
4566 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4567 (eval $ac_compiler --version </dev/null >&5) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }
4571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4572 (eval $ac_compiler -v </dev/null >&5) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }
4576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4577 (eval $ac_compiler -V </dev/null >&5) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }
4582 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4583 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4584 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h. */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4595 main ()
4597 #ifndef __GNUC__
4598 choke me
4599 #endif
4602 return 0;
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>conftest.er1
4608 ac_status=$?
4609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_compiler_gnu=yes
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_compiler_gnu=no
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4638 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4639 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4640 GCC=`test $ac_compiler_gnu = yes && echo yes`
4641 ac_test_CFLAGS=${CFLAGS+set}
4642 ac_save_CFLAGS=$CFLAGS
4643 CFLAGS="-g"
4644 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4645 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4646 if test "${ac_cv_prog_cc_g+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h. */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4657 main ()
4661 return 0;
4663 _ACEOF
4664 rm -f conftest.$ac_objext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666 (eval $ac_compile) 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -z "$ac_c_werror_flag"
4674 || test ! -s conftest.err'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_prog_cc_g=yes
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 ac_cv_prog_cc_g=no
4693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4696 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4697 if test "$ac_test_CFLAGS" = set; then
4698 CFLAGS=$ac_save_CFLAGS
4699 elif test $ac_cv_prog_cc_g = yes; then
4700 if test "$GCC" = yes; then
4701 CFLAGS="-g -O2"
4702 else
4703 CFLAGS="-g"
4705 else
4706 if test "$GCC" = yes; then
4707 CFLAGS="-O2"
4708 else
4709 CFLAGS=
4712 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4713 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4714 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717 ac_cv_prog_cc_stdc=no
4718 ac_save_CC=$CC
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 #include <stdarg.h>
4726 #include <stdio.h>
4727 #include <sys/types.h>
4728 #include <sys/stat.h>
4729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4730 struct buf { int x; };
4731 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4732 static char *e (p, i)
4733 char **p;
4734 int i;
4736 return p[i];
4738 static char *f (char * (*g) (char **, int), char **p, ...)
4740 char *s;
4741 va_list v;
4742 va_start (v,p);
4743 s = g (p, va_arg (v,int));
4744 va_end (v);
4745 return s;
4748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4749 function prototypes and stuff, but not '\xHH' hex character constants.
4750 These don't provoke an error unfortunately, instead are silently treated
4751 as 'x'. The following induces an error, until -std1 is added to get
4752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4753 array size at least. It's necessary to write '\x00'==0 to get something
4754 that's true only with -std1. */
4755 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4757 int test (int i, double x);
4758 struct s1 {int (*f) (int a);};
4759 struct s2 {int (*f) (double a);};
4760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4761 int argc;
4762 char **argv;
4764 main ()
4766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4768 return 0;
4770 _ACEOF
4771 # Don't try gcc -ansi; that turns off useful extensions and
4772 # breaks some systems' header files.
4773 # AIX -qlanglvl=ansi
4774 # Ultrix and OSF/1 -std1
4775 # HP-UX 10.20 and later -Ae
4776 # HP-UX older versions -Aa -D_HPUX_SOURCE
4777 # SVR4 -Xc -D__EXTENSIONS__
4778 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4780 CC="$ac_save_CC $ac_arg"
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_cv_prog_cc_stdc=$ac_arg
4804 break
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4810 rm -f conftest.err conftest.$ac_objext
4811 done
4812 rm -f conftest.$ac_ext conftest.$ac_objext
4813 CC=$ac_save_CC
4817 case "x$ac_cv_prog_cc_stdc" in
4818 x|xno)
4819 echo "$as_me:$LINENO: result: none needed" >&5
4820 echo "${ECHO_T}none needed" >&6 ;;
4822 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4823 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4824 CC="$CC $ac_cv_prog_cc_stdc" ;;
4825 esac
4827 # Some people use a C++ compiler to compile C. Since we use `exit',
4828 # in C++ we need to declare it. In case someone uses the same compiler
4829 # for both compiling C and C++ we need to have the C++ compiler decide
4830 # the declaration of exit, since it's the most demanding environment.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 #ifndef __cplusplus
4833 choke me
4834 #endif
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try='test -z "$ac_c_werror_flag"
4846 || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 for ac_declaration in \
4859 '' \
4860 'extern "C" void std::exit (int) throw (); using std::exit;' \
4861 'extern "C" void std::exit (int); using std::exit;' \
4862 'extern "C" void exit (int) throw ();' \
4863 'extern "C" void exit (int);' \
4864 'void exit (int);'
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_declaration
4873 #include <stdlib.h>
4875 main ()
4877 exit (42);
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 continue
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 $ac_declaration
4920 main ()
4922 exit (42);
4924 return 0;
4926 _ACEOF
4927 rm -f conftest.$ac_objext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929 (eval $ac_compile) 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } &&
4936 { ac_try='test -z "$ac_c_werror_flag"
4937 || test ! -s conftest.err'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; } &&
4943 { ac_try='test -s conftest.$ac_objext'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4949 break
4950 else
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956 done
4957 rm -f conftest*
4958 if test -n "$ac_declaration"; then
4959 echo '#ifdef __cplusplus' >>confdefs.h
4960 echo $ac_declaration >>confdefs.h
4961 echo '#endif' >>confdefs.h
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 cat >>confdefs.h <<\_ACEOF
4978 #define _GNU_SOURCE 1
4979 _ACEOF
4983 for ac_prog in 'bison -y' byacc
4985 # Extract the first word of "$ac_prog", so it can be a program name with args.
4986 set dummy $ac_prog; ac_word=$2
4987 echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989 if test "${ac_cv_prog_YACC+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 if test -n "$YACC"; then
4993 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_YACC="$ac_prog"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5011 YACC=$ac_cv_prog_YACC
5012 if test -n "$YACC"; then
5013 echo "$as_me:$LINENO: result: $YACC" >&5
5014 echo "${ECHO_T}$YACC" >&6
5015 else
5016 echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5020 test -n "$YACC" && break
5021 done
5022 test -n "$YACC" || YACC="yacc"
5024 for ac_prog in flex lex
5026 # Extract the first word of "$ac_prog", so it can be a program name with args.
5027 set dummy $ac_prog; ac_word=$2
5028 echo "$as_me:$LINENO: checking for $ac_word" >&5
5029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5030 if test "${ac_cv_prog_LEX+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033 if test -n "$LEX"; then
5034 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043 ac_cv_prog_LEX="$ac_prog"
5044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5047 done
5048 done
5052 LEX=$ac_cv_prog_LEX
5053 if test -n "$LEX"; then
5054 echo "$as_me:$LINENO: result: $LEX" >&5
5055 echo "${ECHO_T}$LEX" >&6
5056 else
5057 echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5061 test -n "$LEX" && break
5062 done
5063 test -n "$LEX" || LEX=":"
5065 if test -z "$LEXLIB"
5066 then
5067 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5068 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5069 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 ac_check_lib_save_LIBS=$LIBS
5073 LIBS="-lfl $LIBS"
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5082 #ifdef __cplusplus
5083 extern "C"
5084 #endif
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5087 char yywrap ();
5089 main ()
5091 yywrap ();
5093 return 0;
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 (eval $ac_try) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_lib_fl_yywrap=yes
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 ac_cv_lib_fl_yywrap=no
5125 rm -f conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5127 LIBS=$ac_check_lib_save_LIBS
5129 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5130 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5131 if test $ac_cv_lib_fl_yywrap = yes; then
5132 LEXLIB="-lfl"
5133 else
5134 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5135 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5136 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 ac_check_lib_save_LIBS=$LIBS
5140 LIBS="-ll $LIBS"
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5148 /* Override any gcc2 internal prototype to avoid an error. */
5149 #ifdef __cplusplus
5150 extern "C"
5151 #endif
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5154 char yywrap ();
5156 main ()
5158 yywrap ();
5160 return 0;
5162 _ACEOF
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try='test -z "$ac_c_werror_flag"
5173 || test ! -s conftest.err'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest$ac_exeext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 ac_cv_lib_l_yywrap=yes
5186 else
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 ac_cv_lib_l_yywrap=no
5192 rm -f conftest.err conftest.$ac_objext \
5193 conftest$ac_exeext conftest.$ac_ext
5194 LIBS=$ac_check_lib_save_LIBS
5196 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5197 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5198 if test $ac_cv_lib_l_yywrap = yes; then
5199 LEXLIB="-ll"
5206 if test "x$LEX" != "x:"; then
5207 echo "$as_me:$LINENO: checking lex output file root" >&5
5208 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5209 if test "${ac_cv_prog_lex_root+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 # The minimal lex program is just a single line: %%. But some broken lexes
5213 # (Solaris, I think it was) want two %% lines, so accommodate them.
5214 cat >conftest.l <<_ACEOF
5217 _ACEOF
5218 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5219 (eval $LEX conftest.l) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }
5223 if test -f lex.yy.c; then
5224 ac_cv_prog_lex_root=lex.yy
5225 elif test -f lexyy.c; then
5226 ac_cv_prog_lex_root=lexyy
5227 else
5228 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5229 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5230 { (exit 1); exit 1; }; }
5233 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5234 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5235 rm -f conftest.l
5236 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5238 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5239 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5240 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 # POSIX says lex can declare yytext either as a pointer or an array; the
5244 # default is implementation-dependent. Figure out which it is, since
5245 # not all implementations provide the %pointer and %array declarations.
5246 ac_cv_prog_lex_yytext_pointer=no
5247 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5248 ac_save_LIBS=$LIBS
5249 LIBS="$LIBS $LEXLIB"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 `cat $LEX_OUTPUT_ROOT.c`
5252 _ACEOF
5253 rm -f conftest.$ac_objext conftest$ac_exeext
5254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255 (eval $ac_link) 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try='test -z "$ac_c_werror_flag"
5263 || test ! -s conftest.err'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 (eval $ac_try) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; } &&
5269 { ac_try='test -s conftest$ac_exeext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_cv_prog_lex_yytext_pointer=yes
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5281 rm -f conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_save_LIBS
5284 rm -f "${LEX_OUTPUT_ROOT}.c"
5287 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5288 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5289 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define YYTEXT_POINTER 1
5293 _ACEOF
5298 if test "$LEX" = :; then
5299 LEX=${am_missing_run}flex
5302 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
5303 if test -n "$ac_tool_prefix"; then
5304 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5305 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5306 echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5308 if test "${ac_cv_prog_RANLIB+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 if test -n "$RANLIB"; then
5312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5325 done
5326 done
5330 RANLIB=$ac_cv_prog_RANLIB
5331 if test -n "$RANLIB"; then
5332 echo "$as_me:$LINENO: result: $RANLIB" >&5
5333 echo "${ECHO_T}$RANLIB" >&6
5334 else
5335 echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5340 if test -z "$ac_cv_prog_RANLIB"; then
5341 ac_ct_RANLIB=$RANLIB
5342 # Extract the first word of "ranlib", so it can be a program name with args.
5343 set dummy ranlib; ac_word=$2
5344 echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 if test -n "$ac_ct_RANLIB"; then
5350 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_ac_ct_RANLIB="ranlib"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5363 done
5364 done
5366 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5369 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5370 if test -n "$ac_ct_RANLIB"; then
5371 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5372 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5373 else
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5378 RANLIB=$ac_ct_RANLIB
5379 else
5380 RANLIB="$ac_cv_prog_RANLIB"
5383 ac_ext=c
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5389 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5390 # On Suns, sometimes $CPP names a directory.
5391 if test -n "$CPP" && test -d "$CPP"; then
5392 CPP=
5394 if test -z "$CPP"; then
5395 if test "${ac_cv_prog_CPP+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398 # Double quotes because CPP needs to be expanded
5399 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5401 ac_preproc_ok=false
5402 for ac_c_preproc_warn_flag in '' yes
5404 # Use a header file that comes with gcc, so configuring glibc
5405 # with a fresh cross-compiler works.
5406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407 # <limits.h> exists even on freestanding compilers.
5408 # On the NeXT, cc -E runs the code through the compiler's parser,
5409 # not just through cpp. "Syntax error" is here to catch this case.
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #ifdef __STDC__
5417 # include <limits.h>
5418 #else
5419 # include <assert.h>
5420 #endif
5421 Syntax error
5422 _ACEOF
5423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } >/dev/null; then
5431 if test -s conftest.err; then
5432 ac_cpp_err=$ac_c_preproc_warn_flag
5433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5434 else
5435 ac_cpp_err=
5437 else
5438 ac_cpp_err=yes
5440 if test -z "$ac_cpp_err"; then
5442 else
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 # Broken: fails on valid input.
5447 continue
5449 rm -f conftest.err conftest.$ac_ext
5451 # OK, works on sane cases. Now check whether non-existent headers
5452 # can be detected and how.
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <ac_nonexistent.h>
5460 _ACEOF
5461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } >/dev/null; then
5469 if test -s conftest.err; then
5470 ac_cpp_err=$ac_c_preproc_warn_flag
5471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472 else
5473 ac_cpp_err=
5475 else
5476 ac_cpp_err=yes
5478 if test -z "$ac_cpp_err"; then
5479 # Broken: success on invalid input.
5480 continue
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 # Passes both tests.
5486 ac_preproc_ok=:
5487 break
5489 rm -f conftest.err conftest.$ac_ext
5491 done
5492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493 rm -f conftest.err conftest.$ac_ext
5494 if $ac_preproc_ok; then
5495 break
5498 done
5499 ac_cv_prog_CPP=$CPP
5502 CPP=$ac_cv_prog_CPP
5503 else
5504 ac_cv_prog_CPP=$CPP
5506 echo "$as_me:$LINENO: result: $CPP" >&5
5507 echo "${ECHO_T}$CPP" >&6
5508 ac_preproc_ok=false
5509 for ac_c_preproc_warn_flag in '' yes
5511 # Use a header file that comes with gcc, so configuring glibc
5512 # with a fresh cross-compiler works.
5513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514 # <limits.h> exists even on freestanding compilers.
5515 # On the NeXT, cc -E runs the code through the compiler's parser,
5516 # not just through cpp. "Syntax error" is here to catch this case.
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #ifdef __STDC__
5524 # include <limits.h>
5525 #else
5526 # include <assert.h>
5527 #endif
5528 Syntax error
5529 _ACEOF
5530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } >/dev/null; then
5538 if test -s conftest.err; then
5539 ac_cpp_err=$ac_c_preproc_warn_flag
5540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5541 else
5542 ac_cpp_err=
5544 else
5545 ac_cpp_err=yes
5547 if test -z "$ac_cpp_err"; then
5549 else
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 # Broken: fails on valid input.
5554 continue
5556 rm -f conftest.err conftest.$ac_ext
5558 # OK, works on sane cases. Now check whether non-existent headers
5559 # can be detected and how.
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #include <ac_nonexistent.h>
5567 _ACEOF
5568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } >/dev/null; then
5576 if test -s conftest.err; then
5577 ac_cpp_err=$ac_c_preproc_warn_flag
5578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5579 else
5580 ac_cpp_err=
5582 else
5583 ac_cpp_err=yes
5585 if test -z "$ac_cpp_err"; then
5586 # Broken: success on invalid input.
5587 continue
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 # Passes both tests.
5593 ac_preproc_ok=:
5594 break
5596 rm -f conftest.err conftest.$ac_ext
5598 done
5599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600 rm -f conftest.err conftest.$ac_ext
5601 if $ac_preproc_ok; then
5603 else
5604 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5605 See \`config.log' for more details." >&5
5606 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5607 See \`config.log' for more details." >&2;}
5608 { (exit 1); exit 1; }; }
5611 ac_ext=c
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5618 echo "$as_me:$LINENO: checking for egrep" >&5
5619 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5620 if test "${ac_cv_prog_egrep+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5624 then ac_cv_prog_egrep='grep -E'
5625 else ac_cv_prog_egrep='egrep'
5628 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5629 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5630 EGREP=$ac_cv_prog_egrep
5633 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5635 if test "${ac_cv_header_stdc+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 #include <stdlib.h>
5645 #include <stdarg.h>
5646 #include <string.h>
5647 #include <float.h>
5650 main ()
5654 return 0;
5656 _ACEOF
5657 rm -f conftest.$ac_objext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659 (eval $ac_compile) 2>conftest.er1
5660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
5666 { ac_try='test -z "$ac_c_werror_flag"
5667 || test ! -s conftest.err'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 ac_cv_header_stdc=yes
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_cv_header_stdc=no
5686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5688 if test $ac_cv_header_stdc = yes; then
5689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <string.h>
5698 _ACEOF
5699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5700 $EGREP "memchr" >/dev/null 2>&1; then
5702 else
5703 ac_cv_header_stdc=no
5705 rm -f conftest*
5709 if test $ac_cv_header_stdc = yes; then
5710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <stdlib.h>
5719 _ACEOF
5720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5721 $EGREP "free" >/dev/null 2>&1; then
5723 else
5724 ac_cv_header_stdc=no
5726 rm -f conftest*
5730 if test $ac_cv_header_stdc = yes; then
5731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5732 if test "$cross_compiling" = yes; then
5734 else
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h. */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 #include <ctype.h>
5742 #if ((' ' & 0x0FF) == 0x020)
5743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5745 #else
5746 # define ISLOWER(c) \
5747 (('a' <= (c) && (c) <= 'i') \
5748 || ('j' <= (c) && (c) <= 'r') \
5749 || ('s' <= (c) && (c) <= 'z'))
5750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5751 #endif
5753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5755 main ()
5757 int i;
5758 for (i = 0; i < 256; i++)
5759 if (XOR (islower (i), ISLOWER (i))
5760 || toupper (i) != TOUPPER (i))
5761 exit(2);
5762 exit (0);
5764 _ACEOF
5765 rm -f conftest$ac_exeext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5767 (eval $ac_link) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5777 else
5778 echo "$as_me: program exited with status $ac_status" >&5
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 ( exit $ac_status )
5783 ac_cv_header_stdc=no
5785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5790 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5791 if test $ac_cv_header_stdc = yes; then
5793 cat >>confdefs.h <<\_ACEOF
5794 #define STDC_HEADERS 1
5795 _ACEOF
5799 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5800 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5801 if test "${ac_cv_c_const+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5812 main ()
5814 /* FIXME: Include the comments suggested by Paul. */
5815 #ifndef __cplusplus
5816 /* Ultrix mips cc rejects this. */
5817 typedef int charset[2];
5818 const charset x;
5819 /* SunOS 4.1.1 cc rejects this. */
5820 char const *const *ccp;
5821 char **p;
5822 /* NEC SVR4.0.2 mips cc rejects this. */
5823 struct point {int x, y;};
5824 static struct point const zero = {0,0};
5825 /* AIX XL C 1.02.0.0 rejects this.
5826 It does not let you subtract one const X* pointer from another in
5827 an arm of an if-expression whose if-part is not a constant
5828 expression */
5829 const char *g = "string";
5830 ccp = &g + (g ? g-g : 0);
5831 /* HPUX 7.0 cc rejects these. */
5832 ++ccp;
5833 p = (char**) ccp;
5834 ccp = (char const *const *) p;
5835 { /* SCO 3.2v4 cc rejects this. */
5836 char *t;
5837 char const *s = 0 ? (char *) 0 : (char const *) 0;
5839 *t++ = 0;
5841 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5842 int x[] = {25, 17};
5843 const int *foo = &x[0];
5844 ++foo;
5846 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5847 typedef const int *iptr;
5848 iptr p = 0;
5849 ++p;
5851 { /* AIX XL C 1.02.0.0 rejects this saying
5852 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5853 struct s { int j; const int *ap[3]; };
5854 struct s *b; b->j = 5;
5856 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5857 const int foo = 10;
5859 #endif
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_cv_c_const=yes
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_cv_c_const=no
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5897 echo "${ECHO_T}$ac_cv_c_const" >&6
5898 if test $ac_cv_c_const = no; then
5900 cat >>confdefs.h <<\_ACEOF
5901 #define const
5902 _ACEOF
5906 echo "$as_me:$LINENO: checking for inline" >&5
5907 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5908 if test "${ac_cv_c_inline+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 ac_cv_c_inline=no
5912 for ac_kw in inline __inline__ __inline; do
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #ifndef __cplusplus
5920 typedef int foo_t;
5921 static $ac_kw foo_t static_foo () {return 0; }
5922 $ac_kw foo_t foo () {return 0; }
5923 #endif
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag"
5936 || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_cv_c_inline=$ac_kw; break
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955 done
5958 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5959 echo "${ECHO_T}$ac_cv_c_inline" >&6
5962 case $ac_cv_c_inline in
5963 inline | yes) ;;
5965 case $ac_cv_c_inline in
5966 no) ac_val=;;
5967 *) ac_val=$ac_cv_c_inline;;
5968 esac
5969 cat >>confdefs.h <<_ACEOF
5970 #ifndef __cplusplus
5971 #define inline $ac_val
5972 #endif
5973 _ACEOF
5975 esac
5977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5987 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5988 inttypes.h stdint.h unistd.h
5990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 echo "$as_me:$LINENO: checking for $ac_header" >&5
5992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6004 #include <$ac_header>
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008 (eval $ac_compile) 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag"
6016 || test ! -s conftest.err'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 eval "$as_ac_Header=yes"
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 eval "$as_ac_Header=no"
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6040 cat >>confdefs.h <<_ACEOF
6041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6042 _ACEOF
6046 done
6049 echo "$as_me:$LINENO: checking for off_t" >&5
6050 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6051 if test "${ac_cv_type_off_t+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 $ac_includes_default
6062 main ()
6064 if ((off_t *) 0)
6065 return 0;
6066 if (sizeof (off_t))
6067 return 0;
6069 return 0;
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074 (eval $ac_compile) 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -z "$ac_c_werror_flag"
6082 || test ! -s conftest.err'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_type_off_t=yes
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 ac_cv_type_off_t=no
6101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6103 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6104 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6105 if test $ac_cv_type_off_t = yes; then
6107 else
6109 cat >>confdefs.h <<_ACEOF
6110 #define off_t long
6111 _ACEOF
6115 echo "$as_me:$LINENO: checking for size_t" >&5
6116 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6117 if test "${ac_cv_type_size_t+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 $ac_includes_default
6128 main ()
6130 if ((size_t *) 0)
6131 return 0;
6132 if (sizeof (size_t))
6133 return 0;
6135 return 0;
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag"
6148 || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 ac_cv_type_size_t=yes
6161 else
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 ac_cv_type_size_t=no
6167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6169 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6170 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6171 if test $ac_cv_type_size_t = yes; then
6173 else
6175 cat >>confdefs.h <<_ACEOF
6176 #define size_t unsigned
6177 _ACEOF
6181 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6182 # for constant arguments. Useless!
6183 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6184 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6185 if test "${ac_cv_working_alloca_h+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <alloca.h>
6196 main ()
6198 char *p = (char *) alloca (2 * sizeof (int));
6200 return 0;
6202 _ACEOF
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205 (eval $ac_link) 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest$ac_exeext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_working_alloca_h=yes
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ac_cv_working_alloca_h=no
6232 rm -f conftest.err conftest.$ac_objext \
6233 conftest$ac_exeext conftest.$ac_ext
6235 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6236 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6237 if test $ac_cv_working_alloca_h = yes; then
6239 cat >>confdefs.h <<\_ACEOF
6240 #define HAVE_ALLOCA_H 1
6241 _ACEOF
6245 echo "$as_me:$LINENO: checking for alloca" >&5
6246 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6247 if test "${ac_cv_func_alloca_works+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 #ifdef __GNUC__
6257 # define alloca __builtin_alloca
6258 #else
6259 # ifdef _MSC_VER
6260 # include <malloc.h>
6261 # define alloca _alloca
6262 # else
6263 # if HAVE_ALLOCA_H
6264 # include <alloca.h>
6265 # else
6266 # ifdef _AIX
6267 #pragma alloca
6268 # else
6269 # ifndef alloca /* predefined by HP cc +Olibcalls */
6270 char *alloca ();
6271 # endif
6272 # endif
6273 # endif
6274 # endif
6275 #endif
6278 main ()
6280 char *p = (char *) alloca (1);
6282 return 0;
6284 _ACEOF
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -z "$ac_c_werror_flag"
6295 || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest$ac_exeext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_func_alloca_works=yes
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_cv_func_alloca_works=no
6314 rm -f conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6318 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6320 if test $ac_cv_func_alloca_works = yes; then
6322 cat >>confdefs.h <<\_ACEOF
6323 #define HAVE_ALLOCA 1
6324 _ACEOF
6326 else
6327 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6328 # that cause trouble. Some versions do not even contain alloca or
6329 # contain a buggy version. If you still want to use their alloca,
6330 # use ar to extract alloca.o from them instead of compiling alloca.c.
6332 ALLOCA=alloca.$ac_objext
6334 cat >>confdefs.h <<\_ACEOF
6335 #define C_ALLOCA 1
6336 _ACEOF
6339 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6340 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6341 if test "${ac_cv_os_cray+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 #if defined(CRAY) && ! defined(CRAY2)
6351 webecray
6352 #else
6353 wenotbecray
6354 #endif
6356 _ACEOF
6357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358 $EGREP "webecray" >/dev/null 2>&1; then
6359 ac_cv_os_cray=yes
6360 else
6361 ac_cv_os_cray=no
6363 rm -f conftest*
6366 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6367 echo "${ECHO_T}$ac_cv_os_cray" >&6
6368 if test $ac_cv_os_cray = yes; then
6369 for ac_func in _getb67 GETB67 getb67; do
6370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6371 echo "$as_me:$LINENO: checking for $ac_func" >&5
6372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6373 if eval "test \"\${$as_ac_var+set}\" = set"; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6384 #define $ac_func innocuous_$ac_func
6386 /* System header to define __stub macros and hopefully few prototypes,
6387 which can conflict with char $ac_func (); below.
6388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6389 <limits.h> exists even on freestanding compilers. */
6391 #ifdef __STDC__
6392 # include <limits.h>
6393 #else
6394 # include <assert.h>
6395 #endif
6397 #undef $ac_func
6399 /* Override any gcc2 internal prototype to avoid an error. */
6400 #ifdef __cplusplus
6401 extern "C"
6403 #endif
6404 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6406 char $ac_func ();
6407 /* The GNU C library defines this for functions which it implements
6408 to always fail with ENOSYS. Some functions are actually named
6409 something starting with __ and the normal name is an alias. */
6410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6411 choke me
6412 #else
6413 char (*f) () = $ac_func;
6414 #endif
6415 #ifdef __cplusplus
6417 #endif
6420 main ()
6422 return f != $ac_func;
6424 return 0;
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_c_werror_flag"
6437 || test ! -s conftest.err'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest$ac_exeext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 eval "$as_ac_var=yes"
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 eval "$as_ac_var=no"
6456 rm -f conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6461 if test `eval echo '${'$as_ac_var'}'` = yes; then
6463 cat >>confdefs.h <<_ACEOF
6464 #define CRAY_STACKSEG_END $ac_func
6465 _ACEOF
6467 break
6470 done
6473 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6474 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6475 if test "${ac_cv_c_stack_direction+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 if test "$cross_compiling" = yes; then
6479 ac_cv_c_stack_direction=0
6480 else
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6488 find_stack_direction ()
6490 static char *addr = 0;
6491 auto char dummy;
6492 if (addr == 0)
6494 addr = &dummy;
6495 return find_stack_direction ();
6497 else
6498 return (&dummy > addr) ? 1 : -1;
6502 main ()
6504 exit (find_stack_direction () < 0);
6506 _ACEOF
6507 rm -f conftest$ac_exeext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6509 (eval $ac_link) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_c_stack_direction=1
6519 else
6520 echo "$as_me: program exited with status $ac_status" >&5
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ( exit $ac_status )
6525 ac_cv_c_stack_direction=-1
6527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6530 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6531 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6533 cat >>confdefs.h <<_ACEOF
6534 #define STACK_DIRECTION $ac_cv_c_stack_direction
6535 _ACEOF
6542 for ac_header in stdlib.h unistd.h
6544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546 echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553 else
6554 # Is the header compilable?
6555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h. */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 $ac_includes_default
6564 #include <$ac_header>
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_c_werror_flag"
6576 || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_header_compiler=yes
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_header_compiler=no
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6597 echo "${ECHO_T}$ac_header_compiler" >&6
6599 # Is the header present?
6600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 #include <$ac_header>
6609 _ACEOF
6610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } >/dev/null; then
6618 if test -s conftest.err; then
6619 ac_cpp_err=$ac_c_preproc_warn_flag
6620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6621 else
6622 ac_cpp_err=
6624 else
6625 ac_cpp_err=yes
6627 if test -z "$ac_cpp_err"; then
6628 ac_header_preproc=yes
6629 else
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 ac_header_preproc=no
6635 rm -f conftest.err conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6637 echo "${ECHO_T}$ac_header_preproc" >&6
6639 # So? What about this header?
6640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6641 yes:no: )
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6646 ac_header_preproc=yes
6648 no:yes:* )
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6662 cat <<\_ASBOX
6663 ## ------------------------------------------ ##
6664 ## Report this to the AC_PACKAGE_NAME lists. ##
6665 ## ------------------------------------------ ##
6666 _ASBOX
6668 sed "s/^/$as_me: WARNING: /" >&2
6670 esac
6671 echo "$as_me:$LINENO: checking for $ac_header" >&5
6672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676 eval "$as_ac_Header=\$ac_header_preproc"
6678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683 cat >>confdefs.h <<_ACEOF
6684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6685 _ACEOF
6689 done
6692 for ac_func in getpagesize
6694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6695 echo "$as_me:$LINENO: checking for $ac_func" >&5
6696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6697 if eval "test \"\${$as_ac_var+set}\" = set"; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700 cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h. */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6708 #define $ac_func innocuous_$ac_func
6710 /* System header to define __stub macros and hopefully few prototypes,
6711 which can conflict with char $ac_func (); below.
6712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6713 <limits.h> exists even on freestanding compilers. */
6715 #ifdef __STDC__
6716 # include <limits.h>
6717 #else
6718 # include <assert.h>
6719 #endif
6721 #undef $ac_func
6723 /* Override any gcc2 internal prototype to avoid an error. */
6724 #ifdef __cplusplus
6725 extern "C"
6727 #endif
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6730 char $ac_func ();
6731 /* The GNU C library defines this for functions which it implements
6732 to always fail with ENOSYS. Some functions are actually named
6733 something starting with __ and the normal name is an alias. */
6734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6735 choke me
6736 #else
6737 char (*f) () = $ac_func;
6738 #endif
6739 #ifdef __cplusplus
6741 #endif
6744 main ()
6746 return f != $ac_func;
6748 return 0;
6750 _ACEOF
6751 rm -f conftest.$ac_objext conftest$ac_exeext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753 (eval $ac_link) 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
6760 { ac_try='test -z "$ac_c_werror_flag"
6761 || test ! -s conftest.err'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try='test -s conftest$ac_exeext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 eval "$as_ac_var=yes"
6774 else
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 eval "$as_ac_var=no"
6780 rm -f conftest.err conftest.$ac_objext \
6781 conftest$ac_exeext conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6785 if test `eval echo '${'$as_ac_var'}'` = yes; then
6786 cat >>confdefs.h <<_ACEOF
6787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6788 _ACEOF
6791 done
6793 echo "$as_me:$LINENO: checking for working mmap" >&5
6794 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6795 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 if test "$cross_compiling" = yes; then
6799 ac_cv_func_mmap_fixed_mapped=no
6800 else
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 /* malloc might have been renamed as rpl_malloc. */
6809 #undef malloc
6811 /* Thanks to Mike Haertel and Jim Avera for this test.
6812 Here is a matrix of mmap possibilities:
6813 mmap private not fixed
6814 mmap private fixed at somewhere currently unmapped
6815 mmap private fixed at somewhere already mapped
6816 mmap shared not fixed
6817 mmap shared fixed at somewhere currently unmapped
6818 mmap shared fixed at somewhere already mapped
6819 For private mappings, we should verify that changes cannot be read()
6820 back from the file, nor mmap's back from the file at a different
6821 address. (There have been systems where private was not correctly
6822 implemented like the infamous i386 svr4.0, and systems where the
6823 VM page cache was not coherent with the file system buffer cache
6824 like early versions of FreeBSD and possibly contemporary NetBSD.)
6825 For shared mappings, we should conversely verify that changes get
6826 propagated back to all the places they're supposed to be.
6828 Grep wants private fixed already mapped.
6829 The main things grep needs to know about mmap are:
6830 * does it exist and is it safe to write into the mmap'd area
6831 * how to use it (BSD variants) */
6833 #include <fcntl.h>
6834 #include <sys/mman.h>
6836 #if !STDC_HEADERS && !HAVE_STDLIB_H
6837 char *malloc ();
6838 #endif
6840 /* This mess was copied from the GNU getpagesize.h. */
6841 #if !HAVE_GETPAGESIZE
6842 /* Assume that all systems that can run configure have sys/param.h. */
6843 # if !HAVE_SYS_PARAM_H
6844 # define HAVE_SYS_PARAM_H 1
6845 # endif
6847 # ifdef _SC_PAGESIZE
6848 # define getpagesize() sysconf(_SC_PAGESIZE)
6849 # else /* no _SC_PAGESIZE */
6850 # if HAVE_SYS_PARAM_H
6851 # include <sys/param.h>
6852 # ifdef EXEC_PAGESIZE
6853 # define getpagesize() EXEC_PAGESIZE
6854 # else /* no EXEC_PAGESIZE */
6855 # ifdef NBPG
6856 # define getpagesize() NBPG * CLSIZE
6857 # ifndef CLSIZE
6858 # define CLSIZE 1
6859 # endif /* no CLSIZE */
6860 # else /* no NBPG */
6861 # ifdef NBPC
6862 # define getpagesize() NBPC
6863 # else /* no NBPC */
6864 # ifdef PAGESIZE
6865 # define getpagesize() PAGESIZE
6866 # endif /* PAGESIZE */
6867 # endif /* no NBPC */
6868 # endif /* no NBPG */
6869 # endif /* no EXEC_PAGESIZE */
6870 # else /* no HAVE_SYS_PARAM_H */
6871 # define getpagesize() 8192 /* punt totally */
6872 # endif /* no HAVE_SYS_PARAM_H */
6873 # endif /* no _SC_PAGESIZE */
6875 #endif /* no HAVE_GETPAGESIZE */
6878 main ()
6880 char *data, *data2, *data3;
6881 int i, pagesize;
6882 int fd;
6884 pagesize = getpagesize ();
6886 /* First, make a file with some known garbage in it. */
6887 data = (char *) malloc (pagesize);
6888 if (!data)
6889 exit (1);
6890 for (i = 0; i < pagesize; ++i)
6891 *(data + i) = rand ();
6892 umask (0);
6893 fd = creat ("conftest.mmap", 0600);
6894 if (fd < 0)
6895 exit (1);
6896 if (write (fd, data, pagesize) != pagesize)
6897 exit (1);
6898 close (fd);
6900 /* Next, try to mmap the file at a fixed address which already has
6901 something else allocated at it. If we can, also make sure that
6902 we see the same garbage. */
6903 fd = open ("conftest.mmap", O_RDWR);
6904 if (fd < 0)
6905 exit (1);
6906 data2 = (char *) malloc (2 * pagesize);
6907 if (!data2)
6908 exit (1);
6909 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6912 exit (1);
6913 for (i = 0; i < pagesize; ++i)
6914 if (*(data + i) != *(data2 + i))
6915 exit (1);
6917 /* Finally, make sure that changes to the mapped area do not
6918 percolate back to the file as seen by read(). (This is a bug on
6919 some variants of i386 svr4.0.) */
6920 for (i = 0; i < pagesize; ++i)
6921 *(data2 + i) = *(data2 + i) + 1;
6922 data3 = (char *) malloc (pagesize);
6923 if (!data3)
6924 exit (1);
6925 if (read (fd, data3, pagesize) != pagesize)
6926 exit (1);
6927 for (i = 0; i < pagesize; ++i)
6928 if (*(data + i) != *(data3 + i))
6929 exit (1);
6930 close (fd);
6931 exit (0);
6933 _ACEOF
6934 rm -f conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_func_mmap_fixed_mapped=yes
6946 else
6947 echo "$as_me: program exited with status $ac_status" >&5
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 ( exit $ac_status )
6952 ac_cv_func_mmap_fixed_mapped=no
6954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6957 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6958 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6959 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6961 cat >>confdefs.h <<\_ACEOF
6962 #define HAVE_MMAP 1
6963 _ACEOF
6966 rm -f conftest.mmap
6978 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6979 unistd.h values.h sys/param.h
6981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6983 echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6990 else
6991 # Is the header compilable?
6992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 #include <$ac_header>
7002 _ACEOF
7003 rm -f conftest.$ac_objext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005 (eval $ac_compile) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest.$ac_objext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 ac_header_compiler=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_header_compiler=no
7032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034 echo "${ECHO_T}$ac_header_compiler" >&6
7036 # Is the header present?
7037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <$ac_header>
7046 _ACEOF
7047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null; then
7055 if test -s conftest.err; then
7056 ac_cpp_err=$ac_c_preproc_warn_flag
7057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7058 else
7059 ac_cpp_err=
7061 else
7062 ac_cpp_err=yes
7064 if test -z "$ac_cpp_err"; then
7065 ac_header_preproc=yes
7066 else
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ac_header_preproc=no
7072 rm -f conftest.err conftest.$ac_ext
7073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7074 echo "${ECHO_T}$ac_header_preproc" >&6
7076 # So? What about this header?
7077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7078 yes:no: )
7079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7083 ac_header_preproc=yes
7085 no:yes:* )
7086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7099 cat <<\_ASBOX
7100 ## ------------------------------------------ ##
7101 ## Report this to the AC_PACKAGE_NAME lists. ##
7102 ## ------------------------------------------ ##
7103 _ASBOX
7105 sed "s/^/$as_me: WARNING: /" >&2
7107 esac
7108 echo "$as_me:$LINENO: checking for $ac_header" >&5
7109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 eval "$as_ac_Header=\$ac_header_preproc"
7115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7120 cat >>confdefs.h <<_ACEOF
7121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7122 _ACEOF
7126 done
7138 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7139 __argz_count __argz_stringify __argz_next
7141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7142 echo "$as_me:$LINENO: checking for $ac_func" >&5
7143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7144 if eval "test \"\${$as_ac_var+set}\" = set"; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h. */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7155 #define $ac_func innocuous_$ac_func
7157 /* System header to define __stub macros and hopefully few prototypes,
7158 which can conflict with char $ac_func (); below.
7159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160 <limits.h> exists even on freestanding compilers. */
7162 #ifdef __STDC__
7163 # include <limits.h>
7164 #else
7165 # include <assert.h>
7166 #endif
7168 #undef $ac_func
7170 /* Override any gcc2 internal prototype to avoid an error. */
7171 #ifdef __cplusplus
7172 extern "C"
7174 #endif
7175 /* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7177 char $ac_func ();
7178 /* The GNU C library defines this for functions which it implements
7179 to always fail with ENOSYS. Some functions are actually named
7180 something starting with __ and the normal name is an alias. */
7181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7182 choke me
7183 #else
7184 char (*f) () = $ac_func;
7185 #endif
7186 #ifdef __cplusplus
7188 #endif
7191 main ()
7193 return f != $ac_func;
7195 return 0;
7197 _ACEOF
7198 rm -f conftest.$ac_objext conftest$ac_exeext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -z "$ac_c_werror_flag"
7208 || test ! -s conftest.err'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; } &&
7214 { ac_try='test -s conftest$ac_exeext'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; }; then
7220 eval "$as_ac_var=yes"
7221 else
7222 echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 eval "$as_ac_var=no"
7227 rm -f conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7232 if test `eval echo '${'$as_ac_var'}'` = yes; then
7233 cat >>confdefs.h <<_ACEOF
7234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7235 _ACEOF
7238 done
7241 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7243 for ac_func in stpcpy
7245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7246 echo "$as_me:$LINENO: checking for $ac_func" >&5
7247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7248 if eval "test \"\${$as_ac_var+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h. */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7259 #define $ac_func innocuous_$ac_func
7261 /* System header to define __stub macros and hopefully few prototypes,
7262 which can conflict with char $ac_func (); below.
7263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264 <limits.h> exists even on freestanding compilers. */
7266 #ifdef __STDC__
7267 # include <limits.h>
7268 #else
7269 # include <assert.h>
7270 #endif
7272 #undef $ac_func
7274 /* Override any gcc2 internal prototype to avoid an error. */
7275 #ifdef __cplusplus
7276 extern "C"
7278 #endif
7279 /* We use char because int might match the return type of a gcc2
7280 builtin and then its argument prototype would still apply. */
7281 char $ac_func ();
7282 /* The GNU C library defines this for functions which it implements
7283 to always fail with ENOSYS. Some functions are actually named
7284 something starting with __ and the normal name is an alias. */
7285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7286 choke me
7287 #else
7288 char (*f) () = $ac_func;
7289 #endif
7290 #ifdef __cplusplus
7292 #endif
7295 main ()
7297 return f != $ac_func;
7299 return 0;
7301 _ACEOF
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304 (eval $ac_link) 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
7311 { ac_try='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest$ac_exeext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 eval "$as_ac_var=yes"
7325 else
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7329 eval "$as_ac_var=no"
7331 rm -f conftest.err conftest.$ac_objext \
7332 conftest$ac_exeext conftest.$ac_ext
7334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7336 if test `eval echo '${'$as_ac_var'}'` = yes; then
7337 cat >>confdefs.h <<_ACEOF
7338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7339 _ACEOF
7342 done
7345 if test "${ac_cv_func_stpcpy}" = "yes"; then
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_STPCPY 1
7349 _ACEOF
7353 if test $ac_cv_header_locale_h = yes; then
7354 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7355 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7356 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 #include <locale.h>
7367 main ()
7369 return LC_MESSAGES
7371 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext conftest$ac_exeext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7376 (eval $ac_link) 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -z "$ac_c_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try='test -s conftest$ac_exeext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 am_cv_val_LC_MESSAGES=yes
7397 else
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 am_cv_val_LC_MESSAGES=no
7403 rm -f conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7407 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7408 if test $am_cv_val_LC_MESSAGES = yes; then
7410 cat >>confdefs.h <<\_ACEOF
7411 #define HAVE_LC_MESSAGES 1
7412 _ACEOF
7416 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7417 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7418 # Check whether --enable-nls or --disable-nls was given.
7419 if test "${enable_nls+set}" = set; then
7420 enableval="$enable_nls"
7421 USE_NLS=$enableval
7422 else
7423 USE_NLS=yes
7425 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7426 echo "${ECHO_T}$USE_NLS" >&6
7429 USE_INCLUDED_LIBINTL=no
7431 if test "$USE_NLS" = "yes"; then
7432 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7433 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7435 # Check whether --with-included-gettext or --without-included-gettext was given.
7436 if test "${with_included_gettext+set}" = set; then
7437 withval="$with_included_gettext"
7438 nls_cv_force_use_gnu_gettext=$withval
7439 else
7440 nls_cv_force_use_gnu_gettext=no
7442 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7443 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7445 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7446 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7447 nls_cv_header_intl=
7448 nls_cv_header_libgt=
7449 CATOBJEXT=
7451 if test "${ac_cv_header_libintl_h+set}" = set; then
7452 echo "$as_me:$LINENO: checking for libintl.h" >&5
7453 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7454 if test "${ac_cv_header_libintl_h+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7458 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7459 else
7460 # Is the header compilable?
7461 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7462 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h. */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469 $ac_includes_default
7470 #include <libintl.h>
7471 _ACEOF
7472 rm -f conftest.$ac_objext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
7481 { ac_try='test -z "$ac_c_werror_flag"
7482 || test ! -s conftest.err'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; } &&
7488 { ac_try='test -s conftest.$ac_objext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_header_compiler=yes
7495 else
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7499 ac_header_compiler=no
7501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503 echo "${ECHO_T}$ac_header_compiler" >&6
7505 # Is the header present?
7506 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7507 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 #include <libintl.h>
7515 _ACEOF
7516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } >/dev/null; then
7524 if test -s conftest.err; then
7525 ac_cpp_err=$ac_c_preproc_warn_flag
7526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7527 else
7528 ac_cpp_err=
7530 else
7531 ac_cpp_err=yes
7533 if test -z "$ac_cpp_err"; then
7534 ac_header_preproc=yes
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 ac_header_preproc=no
7541 rm -f conftest.err conftest.$ac_ext
7542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7543 echo "${ECHO_T}$ac_header_preproc" >&6
7545 # So? What about this header?
7546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7547 yes:no: )
7548 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7549 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7551 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7552 ac_header_preproc=yes
7554 no:yes:* )
7555 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7556 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7558 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7560 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7561 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7562 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7564 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7566 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7568 cat <<\_ASBOX
7569 ## ------------------------------------------ ##
7570 ## Report this to the AC_PACKAGE_NAME lists. ##
7571 ## ------------------------------------------ ##
7572 _ASBOX
7574 sed "s/^/$as_me: WARNING: /" >&2
7576 esac
7577 echo "$as_me:$LINENO: checking for libintl.h" >&5
7578 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7579 if test "${ac_cv_header_libintl_h+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 ac_cv_header_libintl_h=$ac_header_preproc
7584 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7585 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7588 if test $ac_cv_header_libintl_h = yes; then
7589 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7590 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7591 if test "${gt_cv_func_gettext_libc+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <libintl.h>
7602 main ()
7604 return (int) gettext ("")
7606 return 0;
7608 _ACEOF
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611 (eval $ac_link) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 gt_cv_func_gettext_libc=yes
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 gt_cv_func_gettext_libc=no
7638 rm -f conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7642 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7644 if test "$gt_cv_func_gettext_libc" != "yes"; then
7645 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7646 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7647 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650 ac_check_lib_save_LIBS=$LIBS
7651 LIBS="-lintl $LIBS"
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7659 /* Override any gcc2 internal prototype to avoid an error. */
7660 #ifdef __cplusplus
7661 extern "C"
7662 #endif
7663 /* We use char because int might match the return type of a gcc2
7664 builtin and then its argument prototype would still apply. */
7665 char bindtextdomain ();
7667 main ()
7669 bindtextdomain ();
7671 return 0;
7673 _ACEOF
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676 (eval $ac_link) 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_lib_intl_bindtextdomain=yes
7697 else
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 ac_cv_lib_intl_bindtextdomain=no
7703 rm -f conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705 LIBS=$ac_check_lib_save_LIBS
7707 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7708 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7709 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7710 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7711 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7712 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7723 main ()
7725 return (int) gettext ("")
7727 return 0;
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732 (eval $ac_link) 2>conftest.er1
7733 ac_status=$?
7734 grep -v '^ *+' conftest.er1 >conftest.err
7735 rm -f conftest.er1
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try='test -z "$ac_c_werror_flag"
7740 || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest$ac_exeext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 gt_cv_func_gettext_libintl=yes
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 gt_cv_func_gettext_libintl=no
7759 rm -f conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
7762 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7763 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7768 if test "$gt_cv_func_gettext_libc" = "yes" \
7769 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7771 cat >>confdefs.h <<\_ACEOF
7772 #define HAVE_GETTEXT 1
7773 _ACEOF
7775 # Extract the first word of "msgfmt", so it can be a program name with args.
7776 set dummy msgfmt; ac_word=$2
7777 echo "$as_me:$LINENO: checking for $ac_word" >&5
7778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7779 if test "${ac_cv_path_MSGFMT+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782 case "$MSGFMT" in
7784 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7788 for ac_dir in $PATH; do
7789 test -z "$ac_dir" && ac_dir=.
7790 if test -f $ac_dir/$ac_word; then
7791 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7792 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7793 break
7796 done
7797 IFS="$ac_save_ifs"
7798 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7800 esac
7802 MSGFMT="$ac_cv_path_MSGFMT"
7803 if test -n "$MSGFMT"; then
7804 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7805 echo "${ECHO_T}$MSGFMT" >&6
7806 else
7807 echo "$as_me:$LINENO: result: no" >&5
7808 echo "${ECHO_T}no" >&6
7810 if test "$MSGFMT" != "no"; then
7812 for ac_func in dcgettext
7814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7815 echo "$as_me:$LINENO: checking for $ac_func" >&5
7816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7817 if eval "test \"\${$as_ac_var+set}\" = set"; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h. */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7828 #define $ac_func innocuous_$ac_func
7830 /* System header to define __stub macros and hopefully few prototypes,
7831 which can conflict with char $ac_func (); below.
7832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7833 <limits.h> exists even on freestanding compilers. */
7835 #ifdef __STDC__
7836 # include <limits.h>
7837 #else
7838 # include <assert.h>
7839 #endif
7841 #undef $ac_func
7843 /* Override any gcc2 internal prototype to avoid an error. */
7844 #ifdef __cplusplus
7845 extern "C"
7847 #endif
7848 /* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */
7850 char $ac_func ();
7851 /* The GNU C library defines this for functions which it implements
7852 to always fail with ENOSYS. Some functions are actually named
7853 something starting with __ and the normal name is an alias. */
7854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7855 choke me
7856 #else
7857 char (*f) () = $ac_func;
7858 #endif
7859 #ifdef __cplusplus
7861 #endif
7864 main ()
7866 return f != $ac_func;
7868 return 0;
7870 _ACEOF
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873 (eval $ac_link) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag"
7881 || test ! -s conftest.err'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 eval "$as_ac_var=yes"
7894 else
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 eval "$as_ac_var=no"
7900 rm -f conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7905 if test `eval echo '${'$as_ac_var'}'` = yes; then
7906 cat >>confdefs.h <<_ACEOF
7907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7908 _ACEOF
7911 done
7913 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7914 set dummy gmsgfmt; ac_word=$2
7915 echo "$as_me:$LINENO: checking for $ac_word" >&5
7916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7917 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920 case $GMSGFMT in
7921 [\\/]* | ?:[\\/]*)
7922 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7936 done
7937 done
7939 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7941 esac
7943 GMSGFMT=$ac_cv_path_GMSGFMT
7945 if test -n "$GMSGFMT"; then
7946 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7947 echo "${ECHO_T}$GMSGFMT" >&6
7948 else
7949 echo "$as_me:$LINENO: result: no" >&5
7950 echo "${ECHO_T}no" >&6
7953 # Extract the first word of "xgettext", so it can be a program name with args.
7954 set dummy xgettext; ac_word=$2
7955 echo "$as_me:$LINENO: checking for $ac_word" >&5
7956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7957 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960 case "$XGETTEXT" in
7962 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7966 for ac_dir in $PATH; do
7967 test -z "$ac_dir" && ac_dir=.
7968 if test -f $ac_dir/$ac_word; then
7969 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7970 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7971 break
7974 done
7975 IFS="$ac_save_ifs"
7976 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7978 esac
7980 XGETTEXT="$ac_cv_path_XGETTEXT"
7981 if test -n "$XGETTEXT"; then
7982 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7983 echo "${ECHO_T}$XGETTEXT" >&6
7984 else
7985 echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6
7989 cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h. */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7997 main ()
7999 extern int _nl_msg_cat_cntr;
8000 return _nl_msg_cat_cntr
8002 return 0;
8004 _ACEOF
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -z "$ac_c_werror_flag"
8015 || test ! -s conftest.err'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest$ac_exeext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 CATOBJEXT=.gmo
8028 DATADIRNAME=share
8029 else
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 CATOBJEXT=.mo
8034 DATADIRNAME=lib
8036 rm -f conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
8038 INSTOBJEXT=.mo
8047 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8048 # Neither gettext nor catgets in included in the C library.
8049 # Fall back on GNU gettext library (assuming it is present).
8050 nls_cv_use_gnu_gettext=yes
8054 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8055 INTLOBJS="\$(GETTOBJS)"
8056 # Extract the first word of "msgfmt", so it can be a program name with args.
8057 set dummy msgfmt; ac_word=$2
8058 echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8060 if test "${ac_cv_path_MSGFMT+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 case "$MSGFMT" in
8065 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8069 for ac_dir in $PATH; do
8070 test -z "$ac_dir" && ac_dir=.
8071 if test -f $ac_dir/$ac_word; then
8072 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8073 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8074 break
8077 done
8078 IFS="$ac_save_ifs"
8079 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8081 esac
8083 MSGFMT="$ac_cv_path_MSGFMT"
8084 if test -n "$MSGFMT"; then
8085 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8086 echo "${ECHO_T}$MSGFMT" >&6
8087 else
8088 echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8092 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8093 set dummy gmsgfmt; ac_word=$2
8094 echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8096 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099 case $GMSGFMT in
8100 [\\/]* | ?:[\\/]*)
8101 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8115 done
8116 done
8118 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8120 esac
8122 GMSGFMT=$ac_cv_path_GMSGFMT
8124 if test -n "$GMSGFMT"; then
8125 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8126 echo "${ECHO_T}$GMSGFMT" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129 echo "${ECHO_T}no" >&6
8132 # Extract the first word of "xgettext", so it can be a program name with args.
8133 set dummy xgettext; ac_word=$2
8134 echo "$as_me:$LINENO: checking for $ac_word" >&5
8135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8136 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139 case "$XGETTEXT" in
8141 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8145 for ac_dir in $PATH; do
8146 test -z "$ac_dir" && ac_dir=.
8147 if test -f $ac_dir/$ac_word; then
8148 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8149 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8150 break
8153 done
8154 IFS="$ac_save_ifs"
8155 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8157 esac
8159 XGETTEXT="$ac_cv_path_XGETTEXT"
8160 if test -n "$XGETTEXT"; then
8161 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8162 echo "${ECHO_T}$XGETTEXT" >&6
8163 else
8164 echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6
8169 USE_INCLUDED_LIBINTL=yes
8170 CATOBJEXT=.gmo
8171 INSTOBJEXT=.mo
8172 DATADIRNAME=share
8173 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8174 INTLLIBS=$INTLDEPS
8175 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8176 nls_cv_header_intl=libintl.h
8177 nls_cv_header_libgt=libgettext.h
8180 if test "$XGETTEXT" != ":"; then
8181 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8183 else
8184 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8185 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8186 XGETTEXT=":"
8190 # We need to process the po/ directory.
8191 POSUB=po
8192 else
8193 DATADIRNAME=share
8194 nls_cv_header_intl=libintl.h
8195 nls_cv_header_libgt=libgettext.h
8198 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8199 # because some of the sources are only built for this goal.
8200 if test "$PACKAGE" = gettext; then
8201 USE_NLS=yes
8202 USE_INCLUDED_LIBINTL=yes
8205 for lang in $ALL_LINGUAS; do
8206 GMOFILES="$GMOFILES $lang.gmo"
8207 POFILES="$POFILES $lang.po"
8208 done
8221 if test "x$CATOBJEXT" != "x"; then
8223 cat >>confdefs.h <<\_ACEOF
8224 #define ENABLE_NLS 1
8225 _ACEOF
8230 if test "x$CATOBJEXT" != "x"; then
8231 if test "x$ALL_LINGUAS" = "x"; then
8232 LINGUAS=
8233 else
8234 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8235 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8236 NEW_LINGUAS=
8237 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8238 case "$ALL_LINGUAS" in
8239 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8240 esac
8241 done
8242 LINGUAS=$NEW_LINGUAS
8243 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8244 echo "${ECHO_T}$LINGUAS" >&6
8247 if test -n "$LINGUAS"; then
8248 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8252 if test $ac_cv_header_locale_h = yes; then
8253 INCLUDE_LOCALE_H="#include <locale.h>"
8254 else
8255 INCLUDE_LOCALE_H="\
8256 /* The system does not provide the header <locale.h>. Take care yourself. */"
8260 if test -f $srcdir/po2tbl.sed.in; then
8261 if test "$CATOBJEXT" = ".cat"; then
8262 if test "${ac_cv_header_linux_version_h+set}" = set; then
8263 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8264 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8265 if test "${ac_cv_header_linux_version_h+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8269 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8270 else
8271 # Is the header compilable?
8272 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8273 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h. */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 $ac_includes_default
8281 #include <linux/version.h>
8282 _ACEOF
8283 rm -f conftest.$ac_objext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8285 (eval $ac_compile) 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_header_compiler=yes
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_header_compiler=no
8312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8314 echo "${ECHO_T}$ac_header_compiler" >&6
8316 # Is the header present?
8317 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8318 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 #include <linux/version.h>
8326 _ACEOF
8327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8329 ac_status=$?
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } >/dev/null; then
8335 if test -s conftest.err; then
8336 ac_cpp_err=$ac_c_preproc_warn_flag
8337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8338 else
8339 ac_cpp_err=
8341 else
8342 ac_cpp_err=yes
8344 if test -z "$ac_cpp_err"; then
8345 ac_header_preproc=yes
8346 else
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8350 ac_header_preproc=no
8352 rm -f conftest.err conftest.$ac_ext
8353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8354 echo "${ECHO_T}$ac_header_preproc" >&6
8356 # So? What about this header?
8357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8358 yes:no: )
8359 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8360 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8362 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8363 ac_header_preproc=yes
8365 no:yes:* )
8366 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8367 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8369 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8371 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8373 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8375 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8377 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8379 cat <<\_ASBOX
8380 ## ------------------------------------------ ##
8381 ## Report this to the AC_PACKAGE_NAME lists. ##
8382 ## ------------------------------------------ ##
8383 _ASBOX
8385 sed "s/^/$as_me: WARNING: /" >&2
8387 esac
8388 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8389 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8390 if test "${ac_cv_header_linux_version_h+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393 ac_cv_header_linux_version_h=$ac_header_preproc
8395 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8396 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8399 if test $ac_cv_header_linux_version_h = yes; then
8400 msgformat=linux
8401 else
8402 msgformat=xopen
8407 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8409 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8410 $srcdir/po2tbl.sed.in > po2tbl.sed
8413 if test "$PACKAGE" = "gettext"; then
8414 GT_NO="#NO#"
8415 GT_YES=
8416 else
8417 GT_NO=
8418 GT_YES="#YES#"
8423 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8429 if test -f $srcdir/po/POTFILES.in; then
8430 test -d po || mkdir po
8431 if test "x$srcdir" != "x."; then
8432 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8433 posrcprefix="$srcdir/"
8434 else
8435 posrcprefix="../$srcdir/"
8437 else
8438 posrcprefix="../"
8440 rm -f po/POTFILES
8441 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8442 < $srcdir/po/POTFILES.in > po/POTFILES
8446 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8447 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8448 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8449 if test "${enable_maintainer_mode+set}" = set; then
8450 enableval="$enable_maintainer_mode"
8451 USE_MAINTAINER_MODE=$enableval
8452 else
8453 USE_MAINTAINER_MODE=no
8455 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8456 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8459 if test $USE_MAINTAINER_MODE = yes; then
8460 MAINTAINER_MODE_TRUE=
8461 MAINTAINER_MODE_FALSE='#'
8462 else
8463 MAINTAINER_MODE_TRUE='#'
8464 MAINTAINER_MODE_FALSE=
8467 MAINT=$MAINTAINER_MODE_TRUE
8471 if test -n "$EXEEXT"; then
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_EXECUTABLE_SUFFIX 1
8475 _ACEOF
8479 cat >>confdefs.h <<_ACEOF
8480 #define EXECUTABLE_SUFFIX "${EXEEXT}"
8481 _ACEOF
8484 # host-specific stuff:
8486 HDEFINES=
8488 . ${srcdir}/../bfd/configure.host
8491 AR=${AR-ar}
8493 if test -n "$ac_tool_prefix"; then
8494 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8495 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8496 echo "$as_me:$LINENO: checking for $ac_word" >&5
8497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8498 if test "${ac_cv_prog_RANLIB+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501 if test -n "$RANLIB"; then
8502 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8503 else
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8515 done
8516 done
8520 RANLIB=$ac_cv_prog_RANLIB
8521 if test -n "$RANLIB"; then
8522 echo "$as_me:$LINENO: result: $RANLIB" >&5
8523 echo "${ECHO_T}$RANLIB" >&6
8524 else
8525 echo "$as_me:$LINENO: result: no" >&5
8526 echo "${ECHO_T}no" >&6
8530 if test -z "$ac_cv_prog_RANLIB"; then
8531 ac_ct_RANLIB=$RANLIB
8532 # Extract the first word of "ranlib", so it can be a program name with args.
8533 set dummy ranlib; ac_word=$2
8534 echo "$as_me:$LINENO: checking for $ac_word" >&5
8535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8536 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 if test -n "$ac_ct_RANLIB"; then
8540 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_ac_ct_RANLIB="ranlib"
8550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8553 done
8554 done
8556 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8559 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8560 if test -n "$ac_ct_RANLIB"; then
8561 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8562 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8563 else
8564 echo "$as_me:$LINENO: result: no" >&5
8565 echo "${ECHO_T}no" >&6
8568 RANLIB=$ac_ct_RANLIB
8569 else
8570 RANLIB="$ac_cv_prog_RANLIB"
8573 # Find a good install program. We prefer a C program (faster),
8574 # so one script is as good as another. But avoid the broken or
8575 # incompatible versions:
8576 # SysV /etc/install, /usr/sbin/install
8577 # SunOS /usr/etc/install
8578 # IRIX /sbin/install
8579 # AIX /bin/install
8580 # AmigaOS /C/install, which installs bootblocks on floppy discs
8581 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8584 # OS/2's system install, which has a completely different semantic
8585 # ./install, which can be erroneously created by make from ./install.sh.
8586 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8587 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8588 if test -z "$INSTALL"; then
8589 if test "${ac_cv_path_install+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
8597 # Account for people who put trailing slashes in PATH elements.
8598 case $as_dir/ in
8599 ./ | .// | /cC/* | \
8600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8601 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8602 /usr/ucb/* ) ;;
8604 # OSF1 and SCO ODT 3.0 have their own names for install.
8605 # Don't use installbsd from OSF since it installs stuff as root
8606 # by default.
8607 for ac_prog in ginstall scoinst install; do
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8610 if test $ac_prog = install &&
8611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8612 # AIX install. It has an incompatible calling convention.
8614 elif test $ac_prog = install &&
8615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8616 # program-specific install script used by HP pwplus--don't use.
8618 else
8619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8620 break 3
8623 done
8624 done
8626 esac
8627 done
8631 if test "${ac_cv_path_install+set}" = set; then
8632 INSTALL=$ac_cv_path_install
8633 else
8634 # As a last resort, use the slow shell script. We don't cache a
8635 # path for INSTALL within a source directory, because that will
8636 # break other packages using the cache if that directory is
8637 # removed, or if the path is relative.
8638 INSTALL=$ac_install_sh
8641 echo "$as_me:$LINENO: result: $INSTALL" >&5
8642 echo "${ECHO_T}$INSTALL" >&6
8644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8645 # It thinks the first close brace ends the variable substitution.
8646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8653 # Put a plausible default for CC_FOR_BUILD in Makefile.
8654 if test -z "$CC_FOR_BUILD"; then
8655 if test "x$cross_compiling" = "xno"; then
8656 CC_FOR_BUILD='$(CC)'
8657 else
8658 CC_FOR_BUILD=gcc
8662 # Also set EXEEXT_FOR_BUILD.
8663 if test "x$cross_compiling" = "xno"; then
8664 EXEEXT_FOR_BUILD='$(EXEEXT)'
8665 else
8666 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8667 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8668 if test "${bfd_cv_build_exeext+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671 rm -f conftest*
8672 echo 'int main () { return 0; }' > conftest.c
8673 bfd_cv_build_exeext=
8674 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8675 for file in conftest.*; do
8676 case $file in
8677 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8678 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8679 esac
8680 done
8681 rm -f conftest*
8682 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8684 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8685 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8686 EXEEXT_FOR_BUILD=""
8687 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8691 DEMANGLER_NAME=c++filt
8692 case "${host}" in
8693 *-*-go32* | *-*-msdos*)
8694 DEMANGLER_NAME=cxxfilt
8695 esac
8704 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
8706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8708 echo "$as_me:$LINENO: checking for $ac_header" >&5
8709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8715 else
8716 # Is the header compilable?
8717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h. */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 $ac_includes_default
8726 #include <$ac_header>
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730 (eval $ac_compile) 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } &&
8737 { ac_try='test -z "$ac_c_werror_flag"
8738 || test ! -s conftest.err'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest.$ac_objext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 (eval $ac_try) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_header_compiler=yes
8751 else
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_header_compiler=no
8757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8759 echo "${ECHO_T}$ac_header_compiler" >&6
8761 # Is the header present?
8762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h. */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8770 #include <$ac_header>
8771 _ACEOF
8772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8774 ac_status=$?
8775 grep -v '^ *+' conftest.er1 >conftest.err
8776 rm -f conftest.er1
8777 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } >/dev/null; then
8780 if test -s conftest.err; then
8781 ac_cpp_err=$ac_c_preproc_warn_flag
8782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8783 else
8784 ac_cpp_err=
8786 else
8787 ac_cpp_err=yes
8789 if test -z "$ac_cpp_err"; then
8790 ac_header_preproc=yes
8791 else
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 ac_header_preproc=no
8797 rm -f conftest.err conftest.$ac_ext
8798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8799 echo "${ECHO_T}$ac_header_preproc" >&6
8801 # So? What about this header?
8802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8803 yes:no: )
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8808 ac_header_preproc=yes
8810 no:yes:* )
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8824 cat <<\_ASBOX
8825 ## ------------------------------------------ ##
8826 ## Report this to the AC_PACKAGE_NAME lists. ##
8827 ## ------------------------------------------ ##
8828 _ASBOX
8830 sed "s/^/$as_me: WARNING: /" >&2
8832 esac
8833 echo "$as_me:$LINENO: checking for $ac_header" >&5
8834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838 eval "$as_ac_Header=\$ac_header_preproc"
8840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8845 cat >>confdefs.h <<_ACEOF
8846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8847 _ACEOF
8851 done
8853 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8854 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8855 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 #include <sys/types.h>
8865 #include <sys/wait.h>
8866 #ifndef WEXITSTATUS
8867 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8868 #endif
8869 #ifndef WIFEXITED
8870 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8871 #endif
8874 main ()
8876 int s;
8877 wait (&s);
8878 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8880 return 0;
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_header_sys_wait_h=yes
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8910 ac_cv_header_sys_wait_h=no
8912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8914 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8915 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8916 if test $ac_cv_header_sys_wait_h = yes; then
8918 cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_SYS_WAIT_H 1
8920 _ACEOF
8924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8925 # for constant arguments. Useless!
8926 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8927 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8928 if test "${ac_cv_working_alloca_h+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 #include <alloca.h>
8939 main ()
8941 char *p = (char *) alloca (2 * sizeof (int));
8943 return 0;
8945 _ACEOF
8946 rm -f conftest.$ac_objext conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest$ac_exeext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_working_alloca_h=yes
8969 else
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 ac_cv_working_alloca_h=no
8975 rm -f conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8979 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8980 if test $ac_cv_working_alloca_h = yes; then
8982 cat >>confdefs.h <<\_ACEOF
8983 #define HAVE_ALLOCA_H 1
8984 _ACEOF
8988 echo "$as_me:$LINENO: checking for alloca" >&5
8989 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8990 if test "${ac_cv_func_alloca_works+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993 cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h. */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
8999 #ifdef __GNUC__
9000 # define alloca __builtin_alloca
9001 #else
9002 # ifdef _MSC_VER
9003 # include <malloc.h>
9004 # define alloca _alloca
9005 # else
9006 # if HAVE_ALLOCA_H
9007 # include <alloca.h>
9008 # else
9009 # ifdef _AIX
9010 #pragma alloca
9011 # else
9012 # ifndef alloca /* predefined by HP cc +Olibcalls */
9013 char *alloca ();
9014 # endif
9015 # endif
9016 # endif
9017 # endif
9018 #endif
9021 main ()
9023 char *p = (char *) alloca (1);
9025 return 0;
9027 _ACEOF
9028 rm -f conftest.$ac_objext conftest$ac_exeext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030 (eval $ac_link) 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -z "$ac_c_werror_flag"
9038 || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_cv_func_alloca_works=yes
9051 else
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9055 ac_cv_func_alloca_works=no
9057 rm -f conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
9060 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9061 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9063 if test $ac_cv_func_alloca_works = yes; then
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_ALLOCA 1
9067 _ACEOF
9069 else
9070 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9071 # that cause trouble. Some versions do not even contain alloca or
9072 # contain a buggy version. If you still want to use their alloca,
9073 # use ar to extract alloca.o from them instead of compiling alloca.c.
9075 ALLOCA=alloca.$ac_objext
9077 cat >>confdefs.h <<\_ACEOF
9078 #define C_ALLOCA 1
9079 _ACEOF
9082 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9083 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9084 if test "${ac_cv_os_cray+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h. */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093 #if defined(CRAY) && ! defined(CRAY2)
9094 webecray
9095 #else
9096 wenotbecray
9097 #endif
9099 _ACEOF
9100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9101 $EGREP "webecray" >/dev/null 2>&1; then
9102 ac_cv_os_cray=yes
9103 else
9104 ac_cv_os_cray=no
9106 rm -f conftest*
9109 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9110 echo "${ECHO_T}$ac_cv_os_cray" >&6
9111 if test $ac_cv_os_cray = yes; then
9112 for ac_func in _getb67 GETB67 getb67; do
9113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114 echo "$as_me:$LINENO: checking for $ac_func" >&5
9115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9116 if eval "test \"\${$as_ac_var+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119 cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h. */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9127 #define $ac_func innocuous_$ac_func
9129 /* System header to define __stub macros and hopefully few prototypes,
9130 which can conflict with char $ac_func (); below.
9131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132 <limits.h> exists even on freestanding compilers. */
9134 #ifdef __STDC__
9135 # include <limits.h>
9136 #else
9137 # include <assert.h>
9138 #endif
9140 #undef $ac_func
9142 /* Override any gcc2 internal prototype to avoid an error. */
9143 #ifdef __cplusplus
9144 extern "C"
9146 #endif
9147 /* We use char because int might match the return type of a gcc2
9148 builtin and then its argument prototype would still apply. */
9149 char $ac_func ();
9150 /* The GNU C library defines this for functions which it implements
9151 to always fail with ENOSYS. Some functions are actually named
9152 something starting with __ and the normal name is an alias. */
9153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9154 choke me
9155 #else
9156 char (*f) () = $ac_func;
9157 #endif
9158 #ifdef __cplusplus
9160 #endif
9163 main ()
9165 return f != $ac_func;
9167 return 0;
9169 _ACEOF
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 eval "$as_ac_var=yes"
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 eval "$as_ac_var=no"
9199 rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9204 if test `eval echo '${'$as_ac_var'}'` = yes; then
9206 cat >>confdefs.h <<_ACEOF
9207 #define CRAY_STACKSEG_END $ac_func
9208 _ACEOF
9210 break
9213 done
9216 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9217 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9218 if test "${ac_cv_c_stack_direction+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221 if test "$cross_compiling" = yes; then
9222 ac_cv_c_stack_direction=0
9223 else
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9231 find_stack_direction ()
9233 static char *addr = 0;
9234 auto char dummy;
9235 if (addr == 0)
9237 addr = &dummy;
9238 return find_stack_direction ();
9240 else
9241 return (&dummy > addr) ? 1 : -1;
9245 main ()
9247 exit (find_stack_direction () < 0);
9249 _ACEOF
9250 rm -f conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_c_stack_direction=1
9262 else
9263 echo "$as_me: program exited with status $ac_status" >&5
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 ( exit $ac_status )
9268 ac_cv_c_stack_direction=-1
9270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9274 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9276 cat >>confdefs.h <<_ACEOF
9277 #define STACK_DIRECTION $ac_cv_c_stack_direction
9278 _ACEOF
9288 for ac_func in sbrk utimes setmode getc_unlocked strcoll
9290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9291 echo "$as_me:$LINENO: checking for $ac_func" >&5
9292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9293 if eval "test \"\${$as_ac_var+set}\" = set"; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9304 #define $ac_func innocuous_$ac_func
9306 /* System header to define __stub macros and hopefully few prototypes,
9307 which can conflict with char $ac_func (); below.
9308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9309 <limits.h> exists even on freestanding compilers. */
9311 #ifdef __STDC__
9312 # include <limits.h>
9313 #else
9314 # include <assert.h>
9315 #endif
9317 #undef $ac_func
9319 /* Override any gcc2 internal prototype to avoid an error. */
9320 #ifdef __cplusplus
9321 extern "C"
9323 #endif
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9326 char $ac_func ();
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9331 choke me
9332 #else
9333 char (*f) () = $ac_func;
9334 #endif
9335 #ifdef __cplusplus
9337 #endif
9340 main ()
9342 return f != $ac_func;
9344 return 0;
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -z "$ac_c_werror_flag"
9357 || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9369 eval "$as_ac_var=yes"
9370 else
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9374 eval "$as_ac_var=no"
9376 rm -f conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9381 if test `eval echo '${'$as_ac_var'}'` = yes; then
9382 cat >>confdefs.h <<_ACEOF
9383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9384 _ACEOF
9387 done
9390 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
9391 # needs to be defined for it
9392 echo "$as_me:$LINENO: checking for fopen64" >&5
9393 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
9394 if test "${bu_cv_have_fopen64+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397 cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h. */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403 #include <stdio.h>
9405 main ()
9407 FILE *f = fopen64 ("/tmp/foo","r");
9409 return 0;
9411 _ACEOF
9412 rm -f conftest.$ac_objext conftest$ac_exeext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414 (eval $ac_link) 2>conftest.er1
9415 ac_status=$?
9416 grep -v '^ *+' conftest.er1 >conftest.err
9417 rm -f conftest.er1
9418 cat conftest.err >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -z "$ac_c_werror_flag"
9422 || test ! -s conftest.err'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 (eval $ac_try) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; } &&
9428 { ac_try='test -s conftest$ac_exeext'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 (eval $ac_try) 2>&5
9431 ac_status=$?
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9434 bu_cv_have_fopen64=yes
9435 else
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 saved_CPPFLAGS=$CPPFLAGS
9440 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h. */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 #include <stdio.h>
9449 main ()
9451 FILE *f = fopen64 ("/tmp/foo","r");
9453 return 0;
9455 _ACEOF
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458 (eval $ac_link) 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -z "$ac_c_werror_flag"
9466 || test ! -s conftest.err'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try='test -s conftest$ac_exeext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 bu_cv_have_fopen64=no
9485 rm -f conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487 CPPFLAGS=$saved_CPPFLAGS
9489 rm -f conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9494 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
9495 if test "$bu_cv_have_fopen64" != no; then
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_FOPEN64 1
9499 _ACEOF
9502 echo "$as_me:$LINENO: checking for stat64" >&5
9503 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
9504 if test "${bu_cv_have_stat64+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h. */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9513 #include <sys/stat.h>
9515 main ()
9517 struct stat64 st; stat64 ("/tmp/foo", &st);
9519 return 0;
9521 _ACEOF
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } &&
9531 { ac_try='test -z "$ac_c_werror_flag"
9532 || test ! -s conftest.err'
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 (eval $ac_try) 2>&5
9535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; } &&
9538 { ac_try='test -s conftest$ac_exeext'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 (eval $ac_try) 2>&5
9541 ac_status=$?
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 bu_cv_have_stat64=yes
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 saved_CPPFLAGS=$CPPFLAGS
9550 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h. */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9557 #include <sys/stat.h>
9559 main ()
9561 struct stat64 st; stat64 ("/tmp/foo", &st);
9563 return 0;
9565 _ACEOF
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9568 (eval $ac_link) 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -z "$ac_c_werror_flag"
9576 || test ! -s conftest.err'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 bu_cv_have_stat64=no
9595 rm -f conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597 CPPFLAGS=$saved_CPPFLAGS
9599 rm -f conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9603 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
9604 echo "${ECHO_T}$bu_cv_have_stat64" >&6
9605 if test "$bu_cv_have_stat64" != no; then
9607 cat >>confdefs.h <<\_ACEOF
9608 #define HAVE_STAT64 1
9609 _ACEOF
9612 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
9613 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
9615 cat >>confdefs.h <<\_ACEOF
9616 #define _LARGEFILE64_SOURCE 1
9617 _ACEOF
9619 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9622 # Some systems have frexp only in -lm, not in -lc.
9623 echo "$as_me:$LINENO: checking for library containing frexp" >&5
9624 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9625 if test "${ac_cv_search_frexp+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 ac_func_search_save_LIBS=$LIBS
9629 ac_cv_search_frexp=no
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9637 /* Override any gcc2 internal prototype to avoid an error. */
9638 #ifdef __cplusplus
9639 extern "C"
9640 #endif
9641 /* We use char because int might match the return type of a gcc2
9642 builtin and then its argument prototype would still apply. */
9643 char frexp ();
9645 main ()
9647 frexp ();
9649 return 0;
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -z "$ac_c_werror_flag"
9662 || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_search_frexp="none required"
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9680 rm -f conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 if test "$ac_cv_search_frexp" = no; then
9683 for ac_lib in m; do
9684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h. */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9692 /* Override any gcc2 internal prototype to avoid an error. */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 /* We use char because int might match the return type of a gcc2
9697 builtin and then its argument prototype would still apply. */
9698 char frexp ();
9700 main ()
9702 frexp ();
9704 return 0;
9706 _ACEOF
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709 (eval $ac_link) 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -z "$ac_c_werror_flag"
9717 || test ! -s conftest.err'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_search_frexp="-l$ac_lib"
9730 break
9731 else
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9736 rm -f conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 done
9740 LIBS=$ac_func_search_save_LIBS
9742 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9743 echo "${ECHO_T}$ac_cv_search_frexp" >&6
9744 if test "$ac_cv_search_frexp" != no; then
9745 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
9750 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9751 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9752 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h. */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 #include <time.h>
9763 main ()
9765 time_t i;
9767 return 0;
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772 (eval $ac_compile) 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest.$ac_objext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 bu_cv_decl_time_t_time_h=yes
9793 else
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9797 bu_cv_decl_time_t_time_h=no
9799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9803 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
9804 if test $bu_cv_decl_time_t_time_h = yes; then
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_TIME_T_IN_TIME_H 1
9808 _ACEOF
9812 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9813 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9814 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 #include <sys/types.h>
9825 main ()
9827 time_t i;
9829 return 0;
9831 _ACEOF
9832 rm -f conftest.$ac_objext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834 (eval $ac_compile) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag"
9842 || test ! -s conftest.err'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; } &&
9848 { ac_try='test -s conftest.$ac_objext'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 (eval $ac_try) 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 bu_cv_decl_time_t_types_h=yes
9855 else
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 bu_cv_decl_time_t_types_h=no
9861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9864 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9865 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
9866 if test $bu_cv_decl_time_t_types_h = yes; then
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_TIME_T_IN_TYPES_H 1
9870 _ACEOF
9874 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9875 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9876 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h. */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885 #include <unistd.h>
9887 main ()
9889 extern int getopt (int, char *const*, const char *);
9891 return 0;
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896 (eval $ac_compile) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 bu_cv_decl_getopt_unistd_h=yes
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 bu_cv_decl_getopt_unistd_h=no
9923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9926 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
9927 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
9928 if test $bu_cv_decl_getopt_unistd_h = yes; then
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_DECL_GETOPT 1
9932 _ACEOF
9936 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9937 # by default.
9938 echo "$as_me:$LINENO: checking for utime.h" >&5
9939 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9940 if test "${bu_cv_header_utime_h+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 #include <sys/types.h>
9950 #ifdef HAVE_TIME_H
9951 #include <time.h>
9952 #endif
9953 #include <utime.h>
9955 main ()
9957 struct utimbuf s;
9959 return 0;
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964 (eval $ac_compile) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_c_werror_flag"
9972 || test ! -s conftest.err'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest.$ac_objext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 bu_cv_header_utime_h=yes
9985 else
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 bu_cv_header_utime_h=no
9991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
9995 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
9996 if test $bu_cv_header_utime_h = yes; then
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_GOOD_UTIME_H 1
10000 _ACEOF
10004 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
10005 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
10006 if test "${ac_cv_have_decl_fprintf+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 $ac_includes_default
10017 main ()
10019 #ifndef fprintf
10020 char *p = (char *) fprintf;
10021 #endif
10024 return 0;
10026 _ACEOF
10027 rm -f conftest.$ac_objext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10029 (eval $ac_compile) 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest.$ac_objext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 ac_cv_have_decl_fprintf=yes
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ac_cv_have_decl_fprintf=no
10056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10058 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
10059 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
10060 if test $ac_cv_have_decl_fprintf = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define HAVE_DECL_FPRINTF 1
10064 _ACEOF
10067 else
10068 cat >>confdefs.h <<_ACEOF
10069 #define HAVE_DECL_FPRINTF 0
10070 _ACEOF
10074 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10075 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10076 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 $ac_includes_default
10087 main ()
10089 #ifndef stpcpy
10090 char *p = (char *) stpcpy;
10091 #endif
10094 return 0;
10096 _ACEOF
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -z "$ac_c_werror_flag"
10107 || test ! -s conftest.err'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_have_decl_stpcpy=yes
10120 else
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 ac_cv_have_decl_stpcpy=no
10126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10128 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10129 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10130 if test $ac_cv_have_decl_stpcpy = yes; then
10132 cat >>confdefs.h <<_ACEOF
10133 #define HAVE_DECL_STPCPY 1
10134 _ACEOF
10137 else
10138 cat >>confdefs.h <<_ACEOF
10139 #define HAVE_DECL_STPCPY 0
10140 _ACEOF
10144 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10145 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10146 if test "${ac_cv_have_decl_strstr+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h. */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 $ac_includes_default
10157 main ()
10159 #ifndef strstr
10160 char *p = (char *) strstr;
10161 #endif
10164 return 0;
10166 _ACEOF
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169 (eval $ac_compile) 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_have_decl_strstr=yes
10190 else
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_have_decl_strstr=no
10196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10198 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10199 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10200 if test $ac_cv_have_decl_strstr = yes; then
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_DECL_STRSTR 1
10204 _ACEOF
10207 else
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_DECL_STRSTR 0
10210 _ACEOF
10214 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
10215 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
10216 if test "${ac_cv_have_decl_sbrk+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 $ac_includes_default
10227 main ()
10229 #ifndef sbrk
10230 char *p = (char *) sbrk;
10231 #endif
10234 return 0;
10236 _ACEOF
10237 rm -f conftest.$ac_objext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10239 (eval $ac_compile) 2>conftest.er1
10240 ac_status=$?
10241 grep -v '^ *+' conftest.er1 >conftest.err
10242 rm -f conftest.er1
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
10246 { ac_try='test -z "$ac_c_werror_flag"
10247 || test ! -s conftest.err'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest.$ac_objext'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 ac_cv_have_decl_sbrk=yes
10260 else
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_cv_have_decl_sbrk=no
10266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10268 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
10269 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
10270 if test $ac_cv_have_decl_sbrk = yes; then
10272 cat >>confdefs.h <<_ACEOF
10273 #define HAVE_DECL_SBRK 1
10274 _ACEOF
10277 else
10278 cat >>confdefs.h <<_ACEOF
10279 #define HAVE_DECL_SBRK 0
10280 _ACEOF
10284 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10285 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10286 if test "${ac_cv_have_decl_getenv+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h. */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 $ac_includes_default
10297 main ()
10299 #ifndef getenv
10300 char *p = (char *) getenv;
10301 #endif
10304 return 0;
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_have_decl_getenv=yes
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_have_decl_getenv=no
10336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10338 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10339 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10340 if test $ac_cv_have_decl_getenv = yes; then
10342 cat >>confdefs.h <<_ACEOF
10343 #define HAVE_DECL_GETENV 1
10344 _ACEOF
10347 else
10348 cat >>confdefs.h <<_ACEOF
10349 #define HAVE_DECL_GETENV 0
10350 _ACEOF
10354 echo "$as_me:$LINENO: checking whether environ is declared" >&5
10355 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
10356 if test "${ac_cv_have_decl_environ+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 $ac_includes_default
10367 main ()
10369 #ifndef environ
10370 char *p = (char *) environ;
10371 #endif
10374 return 0;
10376 _ACEOF
10377 rm -f conftest.$ac_objext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -z "$ac_c_werror_flag"
10387 || test ! -s conftest.err'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest.$ac_objext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 ac_cv_have_decl_environ=yes
10400 else
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ac_cv_have_decl_environ=no
10406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
10409 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
10410 if test $ac_cv_have_decl_environ = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413 #define HAVE_DECL_ENVIRON 1
10414 _ACEOF
10417 else
10418 cat >>confdefs.h <<_ACEOF
10419 #define HAVE_DECL_ENVIRON 0
10420 _ACEOF
10424 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10425 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10426 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 $ac_includes_default
10437 main ()
10439 #ifndef getc_unlocked
10440 char *p = (char *) getc_unlocked;
10441 #endif
10444 return 0;
10446 _ACEOF
10447 rm -f conftest.$ac_objext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -z "$ac_c_werror_flag"
10457 || test ! -s conftest.err'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; } &&
10463 { ac_try='test -s conftest.$ac_objext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_have_decl_getc_unlocked=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_cv_have_decl_getc_unlocked=no
10476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10478 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10479 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10480 if test $ac_cv_have_decl_getc_unlocked = yes; then
10482 cat >>confdefs.h <<_ACEOF
10483 #define HAVE_DECL_GETC_UNLOCKED 1
10484 _ACEOF
10487 else
10488 cat >>confdefs.h <<_ACEOF
10489 #define HAVE_DECL_GETC_UNLOCKED 0
10490 _ACEOF
10494 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10495 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10496 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h. */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 $ac_includes_default
10507 main ()
10509 #ifndef snprintf
10510 char *p = (char *) snprintf;
10511 #endif
10514 return 0;
10516 _ACEOF
10517 rm -f conftest.$ac_objext
10518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519 (eval $ac_compile) 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -z "$ac_c_werror_flag"
10527 || test ! -s conftest.err'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest.$ac_objext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 ac_cv_have_decl_snprintf=yes
10540 else
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 ac_cv_have_decl_snprintf=no
10546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10548 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10549 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10550 if test $ac_cv_have_decl_snprintf = yes; then
10552 cat >>confdefs.h <<_ACEOF
10553 #define HAVE_DECL_SNPRINTF 1
10554 _ACEOF
10557 else
10558 cat >>confdefs.h <<_ACEOF
10559 #define HAVE_DECL_SNPRINTF 0
10560 _ACEOF
10564 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10565 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10566 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569 cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h. */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 $ac_includes_default
10577 main ()
10579 #ifndef vsnprintf
10580 char *p = (char *) vsnprintf;
10581 #endif
10584 return 0;
10586 _ACEOF
10587 rm -f conftest.$ac_objext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10589 (eval $ac_compile) 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 { ac_try='test -z "$ac_c_werror_flag"
10597 || test ! -s conftest.err'
10598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599 (eval $ac_try) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; } &&
10603 { ac_try='test -s conftest.$ac_objext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_cv_have_decl_vsnprintf=yes
10610 else
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 ac_cv_have_decl_vsnprintf=no
10616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10619 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10620 if test $ac_cv_have_decl_vsnprintf = yes; then
10622 cat >>confdefs.h <<_ACEOF
10623 #define HAVE_DECL_VSNPRINTF 1
10624 _ACEOF
10627 else
10628 cat >>confdefs.h <<_ACEOF
10629 #define HAVE_DECL_VSNPRINTF 0
10630 _ACEOF
10638 case "${host}" in
10639 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10641 cat >>confdefs.h <<\_ACEOF
10642 #define USE_BINARY_FOPEN 1
10643 _ACEOF
10645 esac
10647 # target-specific stuff:
10649 # Canonicalize the secondary target names.
10650 if test -n "$enable_targets"; then
10651 for targ in `echo $enable_targets | sed 's/,/ /g'`
10653 result=`$ac_config_sub $targ 2>/dev/null`
10654 if test -n "$result"; then
10655 canon_targets="$canon_targets $result"
10656 else
10657 # Allow targets that config.sub doesn't recognize, like "all".
10658 canon_targets="$canon_targets $targ"
10660 done
10663 all_targets=false
10664 BUILD_NLMCONV=
10665 NLMCONV_DEFS=
10666 BUILD_SRCONV=
10667 BUILD_DLLTOOL=
10668 DLLTOOL_DEFS=
10669 BUILD_WINDRES=
10670 BUILD_DLLWRAP=
10671 BUILD_MISC=
10672 OBJDUMP_DEFS=
10674 for targ in $target $canon_targets
10676 if test "x$targ" = "xall"; then
10677 all_targets=true
10678 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10679 BUILD_SRCONV='$(SRCONV_PROG)'
10680 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
10681 else
10682 case $targ in
10683 i[3-7]86*-*-netware*)
10684 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10685 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
10687 alpha*-*-netware*)
10688 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10689 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
10691 powerpc*-*-netware*)
10692 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10693 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
10695 sparc*-*-netware*)
10696 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10697 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
10699 esac
10700 case $targ in
10701 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
10702 esac
10703 case $targ in
10704 arm-epoc-pe*)
10705 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10706 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
10707 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10709 arm-*-pe* | arm-*-wince)
10710 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10711 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10712 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10714 thumb-*-pe*)
10715 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10716 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10717 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10719 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
10720 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10721 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10722 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10723 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
10725 i[3-7]86-*-interix)
10726 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
10727 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10729 powerpc*-aix5.[01])
10731 powerpc*-aix5.*)
10732 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
10734 powerpc*-*-pe* | powerpc*-*-cygwin*)
10735 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10736 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
10737 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10739 sh*-*-pe)
10740 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10741 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
10742 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10744 mips*-*-pe)
10745 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10746 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
10747 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10749 mcore-*-pe)
10750 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10751 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
10752 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10754 mcore-*-elf)
10755 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10756 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
10758 esac
10760 done
10762 if test "${with_windres+set}" = set; then
10763 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10777 cat >>confdefs.h <<_ACEOF
10778 #define TARGET "${target}"
10779 _ACEOF
10782 targ=$target
10783 . $srcdir/../bfd/config.bfd
10784 if test "x$targ_underscore" = "xyes"; then
10785 UNDERSCORE=1
10786 else
10787 UNDERSCORE=0
10790 cat >>confdefs.h <<_ACEOF
10791 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
10792 _ACEOF
10795 # Emulation
10796 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
10798 # Canonicalize the secondary target names.
10799 result=`$ac_config_sub $targ_alias 2>/dev/null`
10800 if test -n "$result"; then
10801 targ=$result
10802 else
10803 targ=$targ_alias
10806 . ${srcdir}/configure.tgt
10808 EMULATION=$targ_emul
10809 EMULATION_VECTOR=$targ_emul_vector
10810 done
10815 # Required for html and install-html
10820 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10821 ac_config_commands="$ac_config_commands default"
10822 cat >confcache <<\_ACEOF
10823 # This file is a shell script that caches the results of configure
10824 # tests run on this system so they can be shared between configure
10825 # scripts and configure runs, see configure's option --config-cache.
10826 # It is not useful on other systems. If it contains results you don't
10827 # want to keep, you may remove or edit it.
10829 # config.status only pays attention to the cache file if you give it
10830 # the --recheck option to rerun configure.
10832 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10834 # following values.
10836 _ACEOF
10838 # The following way of writing the cache mishandles newlines in values,
10839 # but we know of no workaround that is simple, portable, and efficient.
10840 # So, don't put newlines in cache variables' values.
10841 # Ultrix sh set writes to stderr and can't be redirected directly,
10842 # and sets the high bit in the cache file unless we assign to the vars.
10844 (set) 2>&1 |
10845 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10846 *ac_space=\ *)
10847 # `set' does not quote correctly, so add quotes (double-quote
10848 # substitution turns \\\\ into \\, and sed turns \\ into \).
10849 sed -n \
10850 "s/'/'\\\\''/g;
10851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10854 # `set' quotes correctly as required by POSIX, so do not add quotes.
10855 sed -n \
10856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10858 esac;
10860 sed '
10861 t clear
10862 : clear
10863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10864 t end
10865 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10866 : end' >>confcache
10867 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10868 if test -w $cache_file; then
10869 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10870 cat confcache >$cache_file
10871 else
10872 echo "not updating unwritable cache $cache_file"
10875 rm -f confcache
10877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10878 # Let make expand exec_prefix.
10879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10881 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10882 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10883 # trailing colons and then remove the whole line if VPATH becomes empty
10884 # (actually we leave an empty line to preserve line numbers).
10885 if test "x$srcdir" = x.; then
10886 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10887 s/:*\$(srcdir):*/:/;
10888 s/:*\${srcdir}:*/:/;
10889 s/:*@srcdir@:*/:/;
10890 s/^\([^=]*=[ ]*\):*/\1/;
10891 s/:*$//;
10892 s/^[^=]*=[ ]*$//;
10896 DEFS=-DHAVE_CONFIG_H
10898 ac_libobjs=
10899 ac_ltlibobjs=
10900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10901 # 1. Remove the extension, and $U if already installed.
10902 ac_i=`echo "$ac_i" |
10903 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10904 # 2. Add them.
10905 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10906 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10907 done
10908 LIBOBJS=$ac_libobjs
10910 LTLIBOBJS=$ac_ltlibobjs
10913 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10914 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10915 Usually this means the macro was only invoked conditionally." >&5
10916 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10917 Usually this means the macro was only invoked conditionally." >&2;}
10918 { (exit 1); exit 1; }; }
10920 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10921 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10922 Usually this means the macro was only invoked conditionally." >&5
10923 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10924 Usually this means the macro was only invoked conditionally." >&2;}
10925 { (exit 1); exit 1; }; }
10927 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10928 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10929 Usually this means the macro was only invoked conditionally." >&5
10930 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10931 Usually this means the macro was only invoked conditionally." >&2;}
10932 { (exit 1); exit 1; }; }
10935 : ${CONFIG_STATUS=./config.status}
10936 ac_clean_files_save=$ac_clean_files
10937 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10938 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10939 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10940 cat >$CONFIG_STATUS <<_ACEOF
10941 #! $SHELL
10942 # Generated by $as_me.
10943 # Run this file to recreate the current configuration.
10944 # Compiler output produced by configure, useful for debugging
10945 # configure, is in config.log if it exists.
10947 debug=false
10948 ac_cs_recheck=false
10949 ac_cs_silent=false
10950 SHELL=\${CONFIG_SHELL-$SHELL}
10951 _ACEOF
10953 cat >>$CONFIG_STATUS <<\_ACEOF
10954 ## --------------------- ##
10955 ## M4sh Initialization. ##
10956 ## --------------------- ##
10958 # Be Bourne compatible
10959 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10960 emulate sh
10961 NULLCMD=:
10962 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10963 # is contrary to our usage. Disable this feature.
10964 alias -g '${1+"$@"}'='"$@"'
10965 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10966 set -o posix
10968 DUALCASE=1; export DUALCASE # for MKS sh
10970 # Support unset when possible.
10971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10972 as_unset=unset
10973 else
10974 as_unset=false
10978 # Work around bugs in pre-3.0 UWIN ksh.
10979 $as_unset ENV MAIL MAILPATH
10980 PS1='$ '
10981 PS2='> '
10982 PS4='+ '
10984 # NLS nuisances.
10985 for as_var in \
10986 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10987 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10988 LC_TELEPHONE LC_TIME
10990 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10991 eval $as_var=C; export $as_var
10992 else
10993 $as_unset $as_var
10995 done
10997 # Required to use basename.
10998 if expr a : '\(a\)' >/dev/null 2>&1; then
10999 as_expr=expr
11000 else
11001 as_expr=false
11004 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11005 as_basename=basename
11006 else
11007 as_basename=false
11011 # Name of the executable.
11012 as_me=`$as_basename "$0" ||
11013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11014 X"$0" : 'X\(//\)$' \| \
11015 X"$0" : 'X\(/\)$' \| \
11016 . : '\(.\)' 2>/dev/null ||
11017 echo X/"$0" |
11018 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11019 /^X\/\(\/\/\)$/{ s//\1/; q; }
11020 /^X\/\(\/\).*/{ s//\1/; q; }
11021 s/.*/./; q'`
11024 # PATH needs CR, and LINENO needs CR and PATH.
11025 # Avoid depending upon Character Ranges.
11026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11029 as_cr_digits='0123456789'
11030 as_cr_alnum=$as_cr_Letters$as_cr_digits
11032 # The user is always right.
11033 if test "${PATH_SEPARATOR+set}" != set; then
11034 echo "#! /bin/sh" >conf$$.sh
11035 echo "exit 0" >>conf$$.sh
11036 chmod +x conf$$.sh
11037 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11038 PATH_SEPARATOR=';'
11039 else
11040 PATH_SEPARATOR=:
11042 rm -f conf$$.sh
11046 as_lineno_1=$LINENO
11047 as_lineno_2=$LINENO
11048 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11049 test "x$as_lineno_1" != "x$as_lineno_2" &&
11050 test "x$as_lineno_3" = "x$as_lineno_2" || {
11051 # Find who we are. Look in the path if we contain no path at all
11052 # relative or not.
11053 case $0 in
11054 *[\\/]* ) as_myself=$0 ;;
11055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056 for as_dir in $PATH
11058 IFS=$as_save_IFS
11059 test -z "$as_dir" && as_dir=.
11060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11061 done
11064 esac
11065 # We did not find ourselves, most probably we were run as `sh COMMAND'
11066 # in which case we are not to be found in the path.
11067 if test "x$as_myself" = x; then
11068 as_myself=$0
11070 if test ! -f "$as_myself"; then
11071 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11072 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11073 { (exit 1); exit 1; }; }
11075 case $CONFIG_SHELL in
11077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11080 IFS=$as_save_IFS
11081 test -z "$as_dir" && as_dir=.
11082 for as_base in sh bash ksh sh5; do
11083 case $as_dir in
11085 if ("$as_dir/$as_base" -c '
11086 as_lineno_1=$LINENO
11087 as_lineno_2=$LINENO
11088 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11089 test "x$as_lineno_1" != "x$as_lineno_2" &&
11090 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11091 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11092 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11093 CONFIG_SHELL=$as_dir/$as_base
11094 export CONFIG_SHELL
11095 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11096 fi;;
11097 esac
11098 done
11099 done
11101 esac
11103 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11104 # uniformly replaced by the line number. The first 'sed' inserts a
11105 # line-number line before each line; the second 'sed' does the real
11106 # work. The second script uses 'N' to pair each line-number line
11107 # with the numbered line, and appends trailing '-' during
11108 # substitution so that $LINENO is not a special case at line end.
11109 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11110 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11111 sed '=' <$as_myself |
11112 sed '
11114 s,$,-,
11115 : loop
11116 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11117 t loop
11118 s,-$,,
11119 s,^['$as_cr_digits']*\n,,
11120 ' >$as_me.lineno &&
11121 chmod +x $as_me.lineno ||
11122 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11123 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11124 { (exit 1); exit 1; }; }
11126 # Don't try to exec as it changes $[0], causing all sort of problems
11127 # (the dirname of $[0] is not the place where we might find the
11128 # original and so on. Autoconf is especially sensible to this).
11129 . ./$as_me.lineno
11130 # Exit status is that of the last command.
11131 exit
11135 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11136 *c*,-n*) ECHO_N= ECHO_C='
11137 ' ECHO_T=' ' ;;
11138 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11139 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11140 esac
11142 if expr a : '\(a\)' >/dev/null 2>&1; then
11143 as_expr=expr
11144 else
11145 as_expr=false
11148 rm -f conf$$ conf$$.exe conf$$.file
11149 echo >conf$$.file
11150 if ln -s conf$$.file conf$$ 2>/dev/null; then
11151 # We could just check for DJGPP; but this test a) works b) is more generic
11152 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11153 if test -f conf$$.exe; then
11154 # Don't use ln at all; we don't have any links
11155 as_ln_s='cp -p'
11156 else
11157 as_ln_s='ln -s'
11159 elif ln conf$$.file conf$$ 2>/dev/null; then
11160 as_ln_s=ln
11161 else
11162 as_ln_s='cp -p'
11164 rm -f conf$$ conf$$.exe conf$$.file
11166 if mkdir -p . 2>/dev/null; then
11167 as_mkdir_p=:
11168 else
11169 test -d ./-p && rmdir ./-p
11170 as_mkdir_p=false
11173 as_executable_p="test -f"
11175 # Sed expression to map a string onto a valid CPP name.
11176 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11178 # Sed expression to map a string onto a valid variable name.
11179 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11182 # IFS
11183 # We need space, tab and new line, in precisely that order.
11184 as_nl='
11186 IFS=" $as_nl"
11188 # CDPATH.
11189 $as_unset CDPATH
11191 exec 6>&1
11193 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11194 # report actual input values of CONFIG_FILES etc. instead of their
11195 # values after options handling. Logging --version etc. is OK.
11196 exec 5>>config.log
11198 echo
11199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11200 ## Running $as_me. ##
11201 _ASBOX
11202 } >&5
11203 cat >&5 <<_CSEOF
11205 This file was extended by $as_me, which was
11206 generated by GNU Autoconf 2.59. Invocation command line was
11208 CONFIG_FILES = $CONFIG_FILES
11209 CONFIG_HEADERS = $CONFIG_HEADERS
11210 CONFIG_LINKS = $CONFIG_LINKS
11211 CONFIG_COMMANDS = $CONFIG_COMMANDS
11212 $ $0 $@
11214 _CSEOF
11215 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11216 echo >&5
11217 _ACEOF
11219 # Files that config.status was made for.
11220 if test -n "$ac_config_files"; then
11221 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11224 if test -n "$ac_config_headers"; then
11225 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11228 if test -n "$ac_config_links"; then
11229 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11232 if test -n "$ac_config_commands"; then
11233 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11236 cat >>$CONFIG_STATUS <<\_ACEOF
11238 ac_cs_usage="\
11239 \`$as_me' instantiates files from templates according to the
11240 current configuration.
11242 Usage: $0 [OPTIONS] [FILE]...
11244 -h, --help print this help, then exit
11245 -V, --version print version number, then exit
11246 -q, --quiet do not print progress messages
11247 -d, --debug don't remove temporary files
11248 --recheck update $as_me by reconfiguring in the same conditions
11249 --file=FILE[:TEMPLATE]
11250 instantiate the configuration file FILE
11251 --header=FILE[:TEMPLATE]
11252 instantiate the configuration header FILE
11254 Configuration files:
11255 $config_files
11257 Configuration headers:
11258 $config_headers
11260 Configuration commands:
11261 $config_commands
11263 Report bugs to <bug-autoconf@gnu.org>."
11264 _ACEOF
11266 cat >>$CONFIG_STATUS <<_ACEOF
11267 ac_cs_version="\\
11268 config.status
11269 configured by $0, generated by GNU Autoconf 2.59,
11270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11272 Copyright (C) 2003 Free Software Foundation, Inc.
11273 This config.status script is free software; the Free Software Foundation
11274 gives unlimited permission to copy, distribute and modify it."
11275 srcdir=$srcdir
11276 INSTALL="$INSTALL"
11277 _ACEOF
11279 cat >>$CONFIG_STATUS <<\_ACEOF
11280 # If no file are specified by the user, then we need to provide default
11281 # value. By we need to know if files were specified by the user.
11282 ac_need_defaults=:
11283 while test $# != 0
11285 case $1 in
11286 --*=*)
11287 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11288 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11289 ac_shift=:
11292 ac_option=$1
11293 ac_optarg=$2
11294 ac_shift=shift
11296 *) # This is not an option, so the user has probably given explicit
11297 # arguments.
11298 ac_option=$1
11299 ac_need_defaults=false;;
11300 esac
11302 case $ac_option in
11303 # Handling of the options.
11304 _ACEOF
11305 cat >>$CONFIG_STATUS <<\_ACEOF
11306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11307 ac_cs_recheck=: ;;
11308 --version | --vers* | -V )
11309 echo "$ac_cs_version"; exit 0 ;;
11310 --he | --h)
11311 # Conflict between --help and --header
11312 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11313 Try \`$0 --help' for more information." >&5
11314 echo "$as_me: error: ambiguous option: $1
11315 Try \`$0 --help' for more information." >&2;}
11316 { (exit 1); exit 1; }; };;
11317 --help | --hel | -h )
11318 echo "$ac_cs_usage"; exit 0 ;;
11319 --debug | --d* | -d )
11320 debug=: ;;
11321 --file | --fil | --fi | --f )
11322 $ac_shift
11323 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11324 ac_need_defaults=false;;
11325 --header | --heade | --head | --hea )
11326 $ac_shift
11327 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11328 ac_need_defaults=false;;
11329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11331 ac_cs_silent=: ;;
11333 # This is an error.
11334 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11335 Try \`$0 --help' for more information." >&5
11336 echo "$as_me: error: unrecognized option: $1
11337 Try \`$0 --help' for more information." >&2;}
11338 { (exit 1); exit 1; }; } ;;
11340 *) ac_config_targets="$ac_config_targets $1" ;;
11342 esac
11343 shift
11344 done
11346 ac_configure_extra_args=
11348 if $ac_cs_silent; then
11349 exec 6>/dev/null
11350 ac_configure_extra_args="$ac_configure_extra_args --silent"
11353 _ACEOF
11354 cat >>$CONFIG_STATUS <<_ACEOF
11355 if \$ac_cs_recheck; then
11356 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11357 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11360 _ACEOF
11362 cat >>$CONFIG_STATUS <<_ACEOF
11364 # INIT-COMMANDS section.
11367 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11369 _ACEOF
11373 cat >>$CONFIG_STATUS <<\_ACEOF
11374 for ac_config_target in $ac_config_targets
11376 case "$ac_config_target" in
11377 # Handling of arguments.
11378 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11379 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11380 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11381 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11382 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11383 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11384 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11385 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11386 { (exit 1); exit 1; }; };;
11387 esac
11388 done
11390 # If the user did not use the arguments to specify the items to instantiate,
11391 # then the envvar interface is used. Set only those that are not.
11392 # We use the long form for the default assignment because of an extremely
11393 # bizarre bug on SunOS 4.1.3.
11394 if $ac_need_defaults; then
11395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11397 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11400 # Have a temporary directory for convenience. Make it in the build tree
11401 # simply because there is no reason to put it here, and in addition,
11402 # creating and moving files from /tmp can sometimes cause problems.
11403 # Create a temporary directory, and hook for its removal unless debugging.
11404 $debug ||
11406 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11407 trap '{ (exit 1); exit 1; }' 1 2 13 15
11410 # Create a (secure) tmp directory for tmp files.
11413 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11414 test -n "$tmp" && test -d "$tmp"
11415 } ||
11417 tmp=./confstat$$-$RANDOM
11418 (umask 077 && mkdir $tmp)
11419 } ||
11421 echo "$me: cannot create a temporary directory in ." >&2
11422 { (exit 1); exit 1; }
11425 _ACEOF
11427 cat >>$CONFIG_STATUS <<_ACEOF
11430 # CONFIG_FILES section.
11433 # No need to generate the scripts if there are no CONFIG_FILES.
11434 # This happens for instance when ./config.status config.h
11435 if test -n "\$CONFIG_FILES"; then
11436 # Protect against being on the right side of a sed subst in config.status.
11437 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11438 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11439 s,@SHELL@,$SHELL,;t t
11440 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11441 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11442 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11443 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11444 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11445 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11446 s,@exec_prefix@,$exec_prefix,;t t
11447 s,@prefix@,$prefix,;t t
11448 s,@program_transform_name@,$program_transform_name,;t t
11449 s,@bindir@,$bindir,;t t
11450 s,@sbindir@,$sbindir,;t t
11451 s,@libexecdir@,$libexecdir,;t t
11452 s,@datadir@,$datadir,;t t
11453 s,@sysconfdir@,$sysconfdir,;t t
11454 s,@sharedstatedir@,$sharedstatedir,;t t
11455 s,@localstatedir@,$localstatedir,;t t
11456 s,@libdir@,$libdir,;t t
11457 s,@includedir@,$includedir,;t t
11458 s,@oldincludedir@,$oldincludedir,;t t
11459 s,@infodir@,$infodir,;t t
11460 s,@mandir@,$mandir,;t t
11461 s,@build_alias@,$build_alias,;t t
11462 s,@host_alias@,$host_alias,;t t
11463 s,@target_alias@,$target_alias,;t t
11464 s,@DEFS@,$DEFS,;t t
11465 s,@ECHO_C@,$ECHO_C,;t t
11466 s,@ECHO_N@,$ECHO_N,;t t
11467 s,@ECHO_T@,$ECHO_T,;t t
11468 s,@LIBS@,$LIBS,;t t
11469 s,@build@,$build,;t t
11470 s,@build_cpu@,$build_cpu,;t t
11471 s,@build_vendor@,$build_vendor,;t t
11472 s,@build_os@,$build_os,;t t
11473 s,@host@,$host,;t t
11474 s,@host_cpu@,$host_cpu,;t t
11475 s,@host_vendor@,$host_vendor,;t t
11476 s,@host_os@,$host_os,;t t
11477 s,@target@,$target,;t t
11478 s,@target_cpu@,$target_cpu,;t t
11479 s,@target_vendor@,$target_vendor,;t t
11480 s,@target_os@,$target_os,;t t
11481 s,@CC@,$CC,;t t
11482 s,@CFLAGS@,$CFLAGS,;t t
11483 s,@LDFLAGS@,$LDFLAGS,;t t
11484 s,@CPPFLAGS@,$CPPFLAGS,;t t
11485 s,@ac_ct_CC@,$ac_ct_CC,;t t
11486 s,@EXEEXT@,$EXEEXT,;t t
11487 s,@OBJEXT@,$OBJEXT,;t t
11488 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11489 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11490 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11491 s,@CYGPATH_W@,$CYGPATH_W,;t t
11492 s,@PACKAGE@,$PACKAGE,;t t
11493 s,@VERSION@,$VERSION,;t t
11494 s,@ACLOCAL@,$ACLOCAL,;t t
11495 s,@AUTOCONF@,$AUTOCONF,;t t
11496 s,@AUTOMAKE@,$AUTOMAKE,;t t
11497 s,@AUTOHEADER@,$AUTOHEADER,;t t
11498 s,@MAKEINFO@,$MAKEINFO,;t t
11499 s,@install_sh@,$install_sh,;t t
11500 s,@STRIP@,$STRIP,;t t
11501 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11502 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11503 s,@mkdir_p@,$mkdir_p,;t t
11504 s,@AWK@,$AWK,;t t
11505 s,@SET_MAKE@,$SET_MAKE,;t t
11506 s,@am__leading_dot@,$am__leading_dot,;t t
11507 s,@AMTAR@,$AMTAR,;t t
11508 s,@am__tar@,$am__tar,;t t
11509 s,@am__untar@,$am__untar,;t t
11510 s,@DEPDIR@,$DEPDIR,;t t
11511 s,@am__include@,$am__include,;t t
11512 s,@am__quote@,$am__quote,;t t
11513 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11514 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11515 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11516 s,@CCDEPMODE@,$CCDEPMODE,;t t
11517 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11518 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11519 s,@LN_S@,$LN_S,;t t
11520 s,@RANLIB@,$RANLIB,;t t
11521 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11522 s,@LIBTOOL@,$LIBTOOL,;t t
11523 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11524 s,@NO_WERROR@,$NO_WERROR,;t t
11525 s,@YACC@,$YACC,;t t
11526 s,@LEX@,$LEX,;t t
11527 s,@LEXLIB@,$LEXLIB,;t t
11528 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11529 s,@CPP@,$CPP,;t t
11530 s,@EGREP@,$EGREP,;t t
11531 s,@ALLOCA@,$ALLOCA,;t t
11532 s,@USE_NLS@,$USE_NLS,;t t
11533 s,@MSGFMT@,$MSGFMT,;t t
11534 s,@GMSGFMT@,$GMSGFMT,;t t
11535 s,@XGETTEXT@,$XGETTEXT,;t t
11536 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11537 s,@CATALOGS@,$CATALOGS,;t t
11538 s,@CATOBJEXT@,$CATOBJEXT,;t t
11539 s,@DATADIRNAME@,$DATADIRNAME,;t t
11540 s,@GMOFILES@,$GMOFILES,;t t
11541 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11542 s,@INTLDEPS@,$INTLDEPS,;t t
11543 s,@INTLLIBS@,$INTLLIBS,;t t
11544 s,@INTLOBJS@,$INTLOBJS,;t t
11545 s,@POFILES@,$POFILES,;t t
11546 s,@POSUB@,$POSUB,;t t
11547 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11548 s,@GT_NO@,$GT_NO,;t t
11549 s,@GT_YES@,$GT_YES,;t t
11550 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11551 s,@l@,$l,;t t
11552 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11553 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11554 s,@MAINT@,$MAINT,;t t
11555 s,@HDEFINES@,$HDEFINES,;t t
11556 s,@AR@,$AR,;t t
11557 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
11558 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
11559 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
11560 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
11561 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
11562 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
11563 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
11564 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
11565 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
11566 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
11567 s,@BUILD_MISC@,$BUILD_MISC,;t t
11568 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
11569 s,@EMULATION@,$EMULATION,;t t
11570 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
11571 s,@datarootdir@,$datarootdir,;t t
11572 s,@docdir@,$docdir,;t t
11573 s,@htmldir@,$htmldir,;t t
11574 s,@LIBOBJS@,$LIBOBJS,;t t
11575 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11576 CEOF
11578 _ACEOF
11580 cat >>$CONFIG_STATUS <<\_ACEOF
11581 # Split the substitutions into bite-sized pieces for seds with
11582 # small command number limits, like on Digital OSF/1 and HP-UX.
11583 ac_max_sed_lines=48
11584 ac_sed_frag=1 # Number of current file.
11585 ac_beg=1 # First line for current file.
11586 ac_end=$ac_max_sed_lines # Line after last line for current file.
11587 ac_more_lines=:
11588 ac_sed_cmds=
11589 while $ac_more_lines; do
11590 if test $ac_beg -gt 1; then
11591 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11592 else
11593 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11595 if test ! -s $tmp/subs.frag; then
11596 ac_more_lines=false
11597 else
11598 # The purpose of the label and of the branching condition is to
11599 # speed up the sed processing (if there are no `@' at all, there
11600 # is no need to browse any of the substitutions).
11601 # These are the two extra sed commands mentioned above.
11602 (echo ':t
11603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11604 if test -z "$ac_sed_cmds"; then
11605 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11606 else
11607 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11609 ac_sed_frag=`expr $ac_sed_frag + 1`
11610 ac_beg=$ac_end
11611 ac_end=`expr $ac_end + $ac_max_sed_lines`
11613 done
11614 if test -z "$ac_sed_cmds"; then
11615 ac_sed_cmds=cat
11617 fi # test -n "$CONFIG_FILES"
11619 _ACEOF
11620 cat >>$CONFIG_STATUS <<\_ACEOF
11621 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11622 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11623 case $ac_file in
11624 - | *:- | *:-:* ) # input from stdin
11625 cat >$tmp/stdin
11626 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11627 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11628 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11629 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11630 * ) ac_file_in=$ac_file.in ;;
11631 esac
11633 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11634 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11636 X"$ac_file" : 'X\(//\)[^/]' \| \
11637 X"$ac_file" : 'X\(//\)$' \| \
11638 X"$ac_file" : 'X\(/\)' \| \
11639 . : '\(.\)' 2>/dev/null ||
11640 echo X"$ac_file" |
11641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11643 /^X\(\/\/\)$/{ s//\1/; q; }
11644 /^X\(\/\).*/{ s//\1/; q; }
11645 s/.*/./; q'`
11646 { if $as_mkdir_p; then
11647 mkdir -p "$ac_dir"
11648 else
11649 as_dir="$ac_dir"
11650 as_dirs=
11651 while test ! -d "$as_dir"; do
11652 as_dirs="$as_dir $as_dirs"
11653 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11655 X"$as_dir" : 'X\(//\)[^/]' \| \
11656 X"$as_dir" : 'X\(//\)$' \| \
11657 X"$as_dir" : 'X\(/\)' \| \
11658 . : '\(.\)' 2>/dev/null ||
11659 echo X"$as_dir" |
11660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11662 /^X\(\/\/\)$/{ s//\1/; q; }
11663 /^X\(\/\).*/{ s//\1/; q; }
11664 s/.*/./; q'`
11665 done
11666 test ! -n "$as_dirs" || mkdir $as_dirs
11667 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11669 { (exit 1); exit 1; }; }; }
11671 ac_builddir=.
11673 if test "$ac_dir" != .; then
11674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11675 # A "../" for each directory in $ac_dir_suffix.
11676 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11677 else
11678 ac_dir_suffix= ac_top_builddir=
11681 case $srcdir in
11682 .) # No --srcdir option. We are building in place.
11683 ac_srcdir=.
11684 if test -z "$ac_top_builddir"; then
11685 ac_top_srcdir=.
11686 else
11687 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11688 fi ;;
11689 [\\/]* | ?:[\\/]* ) # Absolute path.
11690 ac_srcdir=$srcdir$ac_dir_suffix;
11691 ac_top_srcdir=$srcdir ;;
11692 *) # Relative path.
11693 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11694 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11695 esac
11697 # Do not use `cd foo && pwd` to compute absolute paths, because
11698 # the directories may not exist.
11699 case `pwd` in
11700 .) ac_abs_builddir="$ac_dir";;
11702 case "$ac_dir" in
11703 .) ac_abs_builddir=`pwd`;;
11704 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11705 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11706 esac;;
11707 esac
11708 case $ac_abs_builddir in
11709 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11711 case ${ac_top_builddir}. in
11712 .) ac_abs_top_builddir=$ac_abs_builddir;;
11713 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11714 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11715 esac;;
11716 esac
11717 case $ac_abs_builddir in
11718 .) ac_abs_srcdir=$ac_srcdir;;
11720 case $ac_srcdir in
11721 .) ac_abs_srcdir=$ac_abs_builddir;;
11722 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11723 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11724 esac;;
11725 esac
11726 case $ac_abs_builddir in
11727 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11729 case $ac_top_srcdir in
11730 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11731 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11732 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11733 esac;;
11734 esac
11737 case $INSTALL in
11738 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11739 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11740 esac
11742 if test x"$ac_file" != x-; then
11743 { echo "$as_me:$LINENO: creating $ac_file" >&5
11744 echo "$as_me: creating $ac_file" >&6;}
11745 rm -f "$ac_file"
11747 # Let's still pretend it is `configure' which instantiates (i.e., don't
11748 # use $as_me), people would be surprised to read:
11749 # /* config.h. Generated by config.status. */
11750 if test x"$ac_file" = x-; then
11751 configure_input=
11752 else
11753 configure_input="$ac_file. "
11755 configure_input=$configure_input"Generated from `echo $ac_file_in |
11756 sed 's,.*/,,'` by configure."
11758 # First look for the input files in the build tree, otherwise in the
11759 # src tree.
11760 ac_file_inputs=`IFS=:
11761 for f in $ac_file_in; do
11762 case $f in
11763 -) echo $tmp/stdin ;;
11764 [\\/$]*)
11765 # Absolute (can't be DOS-style, as IFS=:)
11766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11767 echo "$as_me: error: cannot find input file: $f" >&2;}
11768 { (exit 1); exit 1; }; }
11769 echo "$f";;
11770 *) # Relative
11771 if test -f "$f"; then
11772 # Build tree
11773 echo "$f"
11774 elif test -f "$srcdir/$f"; then
11775 # Source tree
11776 echo "$srcdir/$f"
11777 else
11778 # /dev/null tree
11779 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11780 echo "$as_me: error: cannot find input file: $f" >&2;}
11781 { (exit 1); exit 1; }; }
11782 fi;;
11783 esac
11784 done` || { (exit 1); exit 1; }
11785 _ACEOF
11786 cat >>$CONFIG_STATUS <<_ACEOF
11787 sed "$ac_vpsub
11788 $extrasub
11789 _ACEOF
11790 cat >>$CONFIG_STATUS <<\_ACEOF
11792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11793 s,@configure_input@,$configure_input,;t t
11794 s,@srcdir@,$ac_srcdir,;t t
11795 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11796 s,@top_srcdir@,$ac_top_srcdir,;t t
11797 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11798 s,@builddir@,$ac_builddir,;t t
11799 s,@abs_builddir@,$ac_abs_builddir,;t t
11800 s,@top_builddir@,$ac_top_builddir,;t t
11801 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11802 s,@INSTALL@,$ac_INSTALL,;t t
11803 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11804 rm -f $tmp/stdin
11805 if test x"$ac_file" != x-; then
11806 mv $tmp/out $ac_file
11807 else
11808 cat $tmp/out
11809 rm -f $tmp/out
11812 done
11813 _ACEOF
11814 cat >>$CONFIG_STATUS <<\_ACEOF
11817 # CONFIG_HEADER section.
11820 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11821 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11823 # ac_d sets the value in "#define NAME VALUE" lines.
11824 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11825 ac_dB='[ ].*$,\1#\2'
11826 ac_dC=' '
11827 ac_dD=',;t'
11828 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11829 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11830 ac_uB='$,\1#\2define\3'
11831 ac_uC=' '
11832 ac_uD=',;t'
11834 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11835 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11836 case $ac_file in
11837 - | *:- | *:-:* ) # input from stdin
11838 cat >$tmp/stdin
11839 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11841 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11843 * ) ac_file_in=$ac_file.in ;;
11844 esac
11846 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11847 echo "$as_me: creating $ac_file" >&6;}
11849 # First look for the input files in the build tree, otherwise in the
11850 # src tree.
11851 ac_file_inputs=`IFS=:
11852 for f in $ac_file_in; do
11853 case $f in
11854 -) echo $tmp/stdin ;;
11855 [\\/$]*)
11856 # Absolute (can't be DOS-style, as IFS=:)
11857 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11858 echo "$as_me: error: cannot find input file: $f" >&2;}
11859 { (exit 1); exit 1; }; }
11860 # Do quote $f, to prevent DOS paths from being IFS'd.
11861 echo "$f";;
11862 *) # Relative
11863 if test -f "$f"; then
11864 # Build tree
11865 echo "$f"
11866 elif test -f "$srcdir/$f"; then
11867 # Source tree
11868 echo "$srcdir/$f"
11869 else
11870 # /dev/null tree
11871 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11872 echo "$as_me: error: cannot find input file: $f" >&2;}
11873 { (exit 1); exit 1; }; }
11874 fi;;
11875 esac
11876 done` || { (exit 1); exit 1; }
11877 # Remove the trailing spaces.
11878 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11880 _ACEOF
11882 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11883 # `conftest.undefs', that substitutes the proper values into
11884 # config.h.in to produce config.h. The first handles `#define'
11885 # templates, and the second `#undef' templates.
11886 # And first: Protect against being on the right side of a sed subst in
11887 # config.status. Protect against being in an unquoted here document
11888 # in config.status.
11889 rm -f conftest.defines conftest.undefs
11890 # Using a here document instead of a string reduces the quoting nightmare.
11891 # Putting comments in sed scripts is not portable.
11893 # `end' is used to avoid that the second main sed command (meant for
11894 # 0-ary CPP macros) applies to n-ary macro definitions.
11895 # See the Autoconf documentation for `clear'.
11896 cat >confdef2sed.sed <<\_ACEOF
11897 s/[\\&,]/\\&/g
11898 s,[\\$`],\\&,g
11899 t clear
11900 : clear
11901 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11902 t end
11903 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11904 : end
11905 _ACEOF
11906 # If some macros were called several times there might be several times
11907 # the same #defines, which is useless. Nevertheless, we may not want to
11908 # sort them, since we want the *last* AC-DEFINE to be honored.
11909 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11910 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11911 rm -f confdef2sed.sed
11913 # This sed command replaces #undef with comments. This is necessary, for
11914 # example, in the case of _POSIX_SOURCE, which is predefined and required
11915 # on some systems where configure will not decide to define it.
11916 cat >>conftest.undefs <<\_ACEOF
11917 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11918 _ACEOF
11920 # Break up conftest.defines because some shells have a limit on the size
11921 # of here documents, and old seds have small limits too (100 cmds).
11922 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11923 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11924 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11925 echo ' :' >>$CONFIG_STATUS
11926 rm -f conftest.tail
11927 while grep . conftest.defines >/dev/null
11929 # Write a limited-size here document to $tmp/defines.sed.
11930 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11931 # Speed up: don't consider the non `#define' lines.
11932 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11933 # Work around the forget-to-reset-the-flag bug.
11934 echo 't clr' >>$CONFIG_STATUS
11935 echo ': clr' >>$CONFIG_STATUS
11936 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11937 echo 'CEOF
11938 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11939 rm -f $tmp/in
11940 mv $tmp/out $tmp/in
11941 ' >>$CONFIG_STATUS
11942 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11943 rm -f conftest.defines
11944 mv conftest.tail conftest.defines
11945 done
11946 rm -f conftest.defines
11947 echo ' fi # grep' >>$CONFIG_STATUS
11948 echo >>$CONFIG_STATUS
11950 # Break up conftest.undefs because some shells have a limit on the size
11951 # of here documents, and old seds have small limits too (100 cmds).
11952 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11953 rm -f conftest.tail
11954 while grep . conftest.undefs >/dev/null
11956 # Write a limited-size here document to $tmp/undefs.sed.
11957 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11958 # Speed up: don't consider the non `#undef'
11959 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11960 # Work around the forget-to-reset-the-flag bug.
11961 echo 't clr' >>$CONFIG_STATUS
11962 echo ': clr' >>$CONFIG_STATUS
11963 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11964 echo 'CEOF
11965 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11966 rm -f $tmp/in
11967 mv $tmp/out $tmp/in
11968 ' >>$CONFIG_STATUS
11969 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11970 rm -f conftest.undefs
11971 mv conftest.tail conftest.undefs
11972 done
11973 rm -f conftest.undefs
11975 cat >>$CONFIG_STATUS <<\_ACEOF
11976 # Let's still pretend it is `configure' which instantiates (i.e., don't
11977 # use $as_me), people would be surprised to read:
11978 # /* config.h. Generated by config.status. */
11979 if test x"$ac_file" = x-; then
11980 echo "/* Generated by configure. */" >$tmp/config.h
11981 else
11982 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11984 cat $tmp/in >>$tmp/config.h
11985 rm -f $tmp/in
11986 if test x"$ac_file" != x-; then
11987 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11988 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11989 echo "$as_me: $ac_file is unchanged" >&6;}
11990 else
11991 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11993 X"$ac_file" : 'X\(//\)[^/]' \| \
11994 X"$ac_file" : 'X\(//\)$' \| \
11995 X"$ac_file" : 'X\(/\)' \| \
11996 . : '\(.\)' 2>/dev/null ||
11997 echo X"$ac_file" |
11998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12000 /^X\(\/\/\)$/{ s//\1/; q; }
12001 /^X\(\/\).*/{ s//\1/; q; }
12002 s/.*/./; q'`
12003 { if $as_mkdir_p; then
12004 mkdir -p "$ac_dir"
12005 else
12006 as_dir="$ac_dir"
12007 as_dirs=
12008 while test ! -d "$as_dir"; do
12009 as_dirs="$as_dir $as_dirs"
12010 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12012 X"$as_dir" : 'X\(//\)[^/]' \| \
12013 X"$as_dir" : 'X\(//\)$' \| \
12014 X"$as_dir" : 'X\(/\)' \| \
12015 . : '\(.\)' 2>/dev/null ||
12016 echo X"$as_dir" |
12017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12019 /^X\(\/\/\)$/{ s//\1/; q; }
12020 /^X\(\/\).*/{ s//\1/; q; }
12021 s/.*/./; q'`
12022 done
12023 test ! -n "$as_dirs" || mkdir $as_dirs
12024 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12026 { (exit 1); exit 1; }; }; }
12028 rm -f $ac_file
12029 mv $tmp/config.h $ac_file
12031 else
12032 cat $tmp/config.h
12033 rm -f $tmp/config.h
12035 # Compute $ac_file's index in $config_headers.
12036 _am_stamp_count=1
12037 for _am_header in $config_headers :; do
12038 case $_am_header in
12039 $ac_file | $ac_file:* )
12040 break ;;
12042 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12043 esac
12044 done
12045 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12046 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12047 X$ac_file : 'X\(//\)[^/]' \| \
12048 X$ac_file : 'X\(//\)$' \| \
12049 X$ac_file : 'X\(/\)' \| \
12050 . : '\(.\)' 2>/dev/null ||
12051 echo X$ac_file |
12052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12054 /^X\(\/\/\)$/{ s//\1/; q; }
12055 /^X\(\/\).*/{ s//\1/; q; }
12056 s/.*/./; q'`/stamp-h$_am_stamp_count
12057 done
12058 _ACEOF
12059 cat >>$CONFIG_STATUS <<\_ACEOF
12062 # CONFIG_COMMANDS section.
12064 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12065 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12066 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12067 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12068 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12069 X"$ac_dest" : 'X\(//\)[^/]' \| \
12070 X"$ac_dest" : 'X\(//\)$' \| \
12071 X"$ac_dest" : 'X\(/\)' \| \
12072 . : '\(.\)' 2>/dev/null ||
12073 echo X"$ac_dest" |
12074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12076 /^X\(\/\/\)$/{ s//\1/; q; }
12077 /^X\(\/\).*/{ s//\1/; q; }
12078 s/.*/./; q'`
12079 { if $as_mkdir_p; then
12080 mkdir -p "$ac_dir"
12081 else
12082 as_dir="$ac_dir"
12083 as_dirs=
12084 while test ! -d "$as_dir"; do
12085 as_dirs="$as_dir $as_dirs"
12086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088 X"$as_dir" : 'X\(//\)[^/]' \| \
12089 X"$as_dir" : 'X\(//\)$' \| \
12090 X"$as_dir" : 'X\(/\)' \| \
12091 . : '\(.\)' 2>/dev/null ||
12092 echo X"$as_dir" |
12093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12095 /^X\(\/\/\)$/{ s//\1/; q; }
12096 /^X\(\/\).*/{ s//\1/; q; }
12097 s/.*/./; q'`
12098 done
12099 test ! -n "$as_dirs" || mkdir $as_dirs
12100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12102 { (exit 1); exit 1; }; }; }
12104 ac_builddir=.
12106 if test "$ac_dir" != .; then
12107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12108 # A "../" for each directory in $ac_dir_suffix.
12109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12110 else
12111 ac_dir_suffix= ac_top_builddir=
12114 case $srcdir in
12115 .) # No --srcdir option. We are building in place.
12116 ac_srcdir=.
12117 if test -z "$ac_top_builddir"; then
12118 ac_top_srcdir=.
12119 else
12120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12121 fi ;;
12122 [\\/]* | ?:[\\/]* ) # Absolute path.
12123 ac_srcdir=$srcdir$ac_dir_suffix;
12124 ac_top_srcdir=$srcdir ;;
12125 *) # Relative path.
12126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12128 esac
12130 # Do not use `cd foo && pwd` to compute absolute paths, because
12131 # the directories may not exist.
12132 case `pwd` in
12133 .) ac_abs_builddir="$ac_dir";;
12135 case "$ac_dir" in
12136 .) ac_abs_builddir=`pwd`;;
12137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12139 esac;;
12140 esac
12141 case $ac_abs_builddir in
12142 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12144 case ${ac_top_builddir}. in
12145 .) ac_abs_top_builddir=$ac_abs_builddir;;
12146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12148 esac;;
12149 esac
12150 case $ac_abs_builddir in
12151 .) ac_abs_srcdir=$ac_srcdir;;
12153 case $ac_srcdir in
12154 .) ac_abs_srcdir=$ac_abs_builddir;;
12155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12157 esac;;
12158 esac
12159 case $ac_abs_builddir in
12160 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12162 case $ac_top_srcdir in
12163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12166 esac;;
12167 esac
12170 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12171 echo "$as_me: executing $ac_dest commands" >&6;}
12172 case $ac_dest in
12173 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12174 # Strip MF so we end up with the name of the file.
12175 mf=`echo "$mf" | sed -e 's/:.*$//'`
12176 # Check whether this is an Automake generated Makefile or not.
12177 # We used to match only the files named `Makefile.in', but
12178 # some people rename them; so instead we look at the file content.
12179 # Grep'ing the first line is not enough: some people post-process
12180 # each Makefile.in and add a new line on top of each file to say so.
12181 # So let's grep whole file.
12182 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12183 dirpart=`(dirname "$mf") 2>/dev/null ||
12184 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12185 X"$mf" : 'X\(//\)[^/]' \| \
12186 X"$mf" : 'X\(//\)$' \| \
12187 X"$mf" : 'X\(/\)' \| \
12188 . : '\(.\)' 2>/dev/null ||
12189 echo X"$mf" |
12190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12192 /^X\(\/\/\)$/{ s//\1/; q; }
12193 /^X\(\/\).*/{ s//\1/; q; }
12194 s/.*/./; q'`
12195 else
12196 continue
12198 # Extract the definition of DEPDIR, am__include, and am__quote
12199 # from the Makefile without running `make'.
12200 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12201 test -z "$DEPDIR" && continue
12202 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12203 test -z "am__include" && continue
12204 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12205 # When using ansi2knr, U may be empty or an underscore; expand it
12206 U=`sed -n 's/^U = //p' < "$mf"`
12207 # Find all dependency output files, they are included files with
12208 # $(DEPDIR) in their names. We invoke sed twice because it is the
12209 # simplest approach to changing $(DEPDIR) to its actual value in the
12210 # expansion.
12211 for file in `sed -n "
12212 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12213 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12214 # Make sure the directory exists.
12215 test -f "$dirpart/$file" && continue
12216 fdir=`(dirname "$file") 2>/dev/null ||
12217 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12218 X"$file" : 'X\(//\)[^/]' \| \
12219 X"$file" : 'X\(//\)$' \| \
12220 X"$file" : 'X\(/\)' \| \
12221 . : '\(.\)' 2>/dev/null ||
12222 echo X"$file" |
12223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12225 /^X\(\/\/\)$/{ s//\1/; q; }
12226 /^X\(\/\).*/{ s//\1/; q; }
12227 s/.*/./; q'`
12228 { if $as_mkdir_p; then
12229 mkdir -p $dirpart/$fdir
12230 else
12231 as_dir=$dirpart/$fdir
12232 as_dirs=
12233 while test ! -d "$as_dir"; do
12234 as_dirs="$as_dir $as_dirs"
12235 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12237 X"$as_dir" : 'X\(//\)[^/]' \| \
12238 X"$as_dir" : 'X\(//\)$' \| \
12239 X"$as_dir" : 'X\(/\)' \| \
12240 . : '\(.\)' 2>/dev/null ||
12241 echo X"$as_dir" |
12242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12244 /^X\(\/\/\)$/{ s//\1/; q; }
12245 /^X\(\/\).*/{ s//\1/; q; }
12246 s/.*/./; q'`
12247 done
12248 test ! -n "$as_dirs" || mkdir $as_dirs
12249 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12250 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12251 { (exit 1); exit 1; }; }; }
12253 # echo "creating $dirpart/$file"
12254 echo '# dummy' > "$dirpart/$file"
12255 done
12256 done
12258 default )
12259 case "x$CONFIG_FILES" in
12260 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12261 esac
12263 esac
12264 done
12265 _ACEOF
12267 cat >>$CONFIG_STATUS <<\_ACEOF
12269 { (exit 0); exit 0; }
12270 _ACEOF
12271 chmod +x $CONFIG_STATUS
12272 ac_clean_files=$ac_clean_files_save
12275 # configure is writing to config.log, and then calls config.status.
12276 # config.status does its own redirection, appending to config.log.
12277 # Unfortunately, on DOS this fails, as config.log is still kept open
12278 # by configure, so config.status won't be able to write to it; its
12279 # output is simply discarded. So we exec the FD to /dev/null,
12280 # effectively closing config.log, so it can be properly (re)opened and
12281 # appended to by config.status. When coming back to configure, we
12282 # need to make the FD available again.
12283 if test "$no_create" != yes; then
12284 ac_cs_success=:
12285 ac_config_status_args=
12286 test "$silent" = yes &&
12287 ac_config_status_args="$ac_config_status_args --quiet"
12288 exec 5>/dev/null
12289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12290 exec 5>>config.log
12291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12292 # would make configure fail if this is the last instruction.
12293 $ac_cs_success || { (exit 1); exit 1; }