bfd/
[binutils.git] / gas / configure
blob539f7545a48d1208968b6907984bafe78d2aceeb
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="as.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL REPORT_BUGS_TO WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS 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 LIBM 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 besides the primary
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-bugurl=URL Direct users to URL to report a bug
873 --with-included-gettext use the GNU gettext library included here
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
887 _ACEOF
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902 ac_dir_suffix= ac_top_builddir=
905 case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958 esac
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 cd $ac_popdir
976 done
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981 cat <<\_ACEOF
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987 exit 0
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
997 $ $0 $@
999 _ACEOF
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023 _ASUNAME
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031 done
1033 } >&5
1035 cat >&5 <<_ACEOF
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1042 _ACEOF
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1057 for ac_arg
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1090 esac
1091 done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1104 echo
1106 cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 esac;
1127 echo
1129 cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1228 done
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1241 else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1289 done
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 ac_aux_dir=
1324 for ac_dir in .. $srcdir/..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1338 done
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1374 build=$ac_cv_build
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$as_me:$LINENO: checking host system type" >&5
1381 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382 if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 ac_cv_host_alias=$host_alias
1386 test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395 echo "${ECHO_T}$ac_cv_host" >&6
1396 host=$ac_cv_host
1397 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402 echo "$as_me:$LINENO: checking target system type" >&5
1403 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404 if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_target_alias=$target_alias
1408 test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417 echo "${ECHO_T}$ac_cv_target" >&6
1418 target=$ac_cv_target
1419 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 # The aliases save the names the user supplied, while $host etc.
1425 # will get canonicalized.
1426 test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1457 done
1458 done
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1495 done
1496 done
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 CC=$ac_ct_CC
1510 else
1511 CC="$ac_cv_prog_CC"
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 ac_prog_rejected=no
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$CC" && break
1689 done
1691 if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1716 done
1717 done
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$ac_ct_CC" && break
1731 done
1733 CC=$ac_ct_CC
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.$ac_ext <<_ACEOF
1766 /* confdefs.h. */
1767 _ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h. */
1773 main ()
1777 return 0;
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 conftest.$ac_ext )
1808 # This is the source file.
1810 [ab].out )
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* )
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
1822 break;;
1823 esac
1824 done
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 # `rm'.
1891 for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 export ac_cv_exeext
1897 break;;
1898 * ) break;;
1899 esac
1900 done
1901 else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1915 ac_exeext=$EXEEXT
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1929 main ()
1933 return 0;
1935 _ACEOF
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948 done
1949 else
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1965 ac_objext=$OBJEXT
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1979 main ()
1981 #ifndef __GNUC__
1982 choke me
1983 #endif
1986 return 0;
1988 _ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_compiler_gnu=no
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2027 CFLAGS="-g"
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h. */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2041 main ()
2045 return 0;
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2075 ac_cv_prog_cc_g=no
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2089 else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_cv_prog_cc_stdc=no
2102 ac_save_CC=$CC
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h. */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2109 #include <stdarg.h>
2110 #include <stdio.h>
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2117 char **p;
2118 int i;
2120 return p[i];
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2148 main ()
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 return 0;
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2194 rm -f conftest.err conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2201 case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217 choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2257 #include <stdlib.h>
2259 main ()
2261 exit (42);
2263 return 0;
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2293 continue
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 $ac_declaration
2304 main ()
2306 exit (42);
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 rm -f conftest*
2342 if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2362 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2363 if test "${ac_cv_search_strerror+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 ac_func_search_save_LIBS=$LIBS
2367 ac_cv_search_strerror=no
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2375 /* Override any gcc2 internal prototype to avoid an error. */
2376 #ifdef __cplusplus
2377 extern "C"
2378 #endif
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381 char strerror ();
2383 main ()
2385 strerror ();
2387 return 0;
2389 _ACEOF
2390 rm -f conftest.$ac_objext conftest$ac_exeext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392 (eval $ac_link) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_search_strerror="none required"
2413 else
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420 if test "$ac_cv_search_strerror" = no; then
2421 for ac_lib in cposix; do
2422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 #ifdef __cplusplus
2432 extern "C"
2433 #endif
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436 char strerror ();
2438 main ()
2440 strerror ();
2442 return 0;
2444 _ACEOF
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest$ac_exeext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_search_strerror="-l$ac_lib"
2468 break
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2476 done
2478 LIBS=$ac_func_search_save_LIBS
2480 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2481 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2482 if test "$ac_cv_search_strerror" != no; then
2483 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2488 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2489 am__api_version="1.9"
2490 # Find a good install program. We prefer a C program (faster),
2491 # so one script is as good as another. But avoid the broken or
2492 # incompatible versions:
2493 # SysV /etc/install, /usr/sbin/install
2494 # SunOS /usr/etc/install
2495 # IRIX /sbin/install
2496 # AIX /bin/install
2497 # AmigaOS /C/install, which installs bootblocks on floppy discs
2498 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501 # OS/2's system install, which has a completely different semantic
2502 # ./install, which can be erroneously created by make from ./install.sh.
2503 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505 if test -z "$INSTALL"; then
2506 if test "${ac_cv_path_install+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515 case $as_dir/ in
2516 ./ | .// | /cC/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2519 /usr/ucb/* ) ;;
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2535 else
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2540 done
2541 done
2543 esac
2544 done
2548 if test "${ac_cv_path_install+set}" = set; then
2549 INSTALL=$ac_cv_path_install
2550 else
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
2555 INSTALL=$ac_install_sh
2558 echo "$as_me:$LINENO: result: $INSTALL" >&5
2559 echo "${ECHO_T}$INSTALL" >&6
2561 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562 # It thinks the first close brace ends the variable substitution.
2563 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2571 # Just in case
2572 sleep 1
2573 echo timestamp > conftest.file
2574 # Do `set' in a subshell so we don't clobber the current shell's
2575 # arguments. Must try -L first in case configure is actually a
2576 # symlink; some systems play weird games with the mod time of symlinks
2577 # (eg FreeBSD returns the mod time of the symlink's containing
2578 # directory).
2579 if (
2580 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2581 if test "$*" = "X"; then
2582 # -L didn't work.
2583 set X `ls -t $srcdir/configure conftest.file`
2585 rm -f conftest.file
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
2593 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2594 alias in your environment" >&5
2595 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&2;}
2597 { (exit 1); exit 1; }; }
2600 test "$2" = conftest.file
2602 then
2603 # Ok.
2605 else
2606 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607 Check your system clock" >&5
2608 echo "$as_me: error: newly created file is older than distributed files!
2609 Check your system clock" >&2;}
2610 { (exit 1); exit 1; }; }
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 test "$program_prefix" != NONE &&
2615 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2616 # Use a double $ so make ignores it.
2617 test "$program_suffix" != NONE &&
2618 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619 # Double any \ or $. echo might interpret backslashes.
2620 # By default was `s,x,x', remove it if useless.
2621 cat <<\_ACEOF >conftest.sed
2622 s/[\\$]/&&/g;s/;s,x,x,$//
2623 _ACEOF
2624 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2625 rm conftest.sed
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2630 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2631 # Use eval to expand $SHELL
2632 if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634 else
2635 am_missing_run=
2636 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2641 # We used to keeping the `.' as first argument, in order to
2642 # allow $(mkdir_p) to be used without argument. As in
2643 # $(mkdir_p) $(somedir)
2644 # where $(somedir) is conditionally defined. However this is wrong
2645 # for two reasons:
2646 # 1. if the package is installed by a user who cannot write `.'
2647 # make install will fail,
2648 # 2. the above comment should most certainly read
2649 # $(mkdir_p) $(DESTDIR)$(somedir)
2650 # so it does not work when $(somedir) is undefined and
2651 # $(DESTDIR) is not.
2652 # To support the latter case, we have to write
2653 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2654 # so the `.' trick is pointless.
2655 mkdir_p='mkdir -p --'
2656 else
2657 # On NextStep and OpenStep, the `mkdir' command does not
2658 # recognize any option. It will interpret all options as
2659 # directories to create, and then abort because `.' already
2660 # exists.
2661 for d in ./-p ./--version;
2663 test -d $d && rmdir $d
2664 done
2665 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2666 if test -f "$ac_aux_dir/mkinstalldirs"; then
2667 mkdir_p='$(mkinstalldirs)'
2668 else
2669 mkdir_p='$(install_sh) -d'
2673 for ac_prog in gawk mawk nawk awk
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_AWK+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$AWK"; then
2683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_AWK="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 echo "$as_me:$LINENO: result: $AWK" >&5
2704 echo "${ECHO_T}$AWK" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2710 test -n "$AWK" && break
2711 done
2713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 cat >conftest.make <<\_ACEOF
2720 all:
2721 @echo 'ac_maketemp="$(MAKE)"'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725 if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2727 else
2728 eval ac_cv_prog_make_${ac_make}_set=no
2730 rm -f conftest.make
2732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2735 SET_MAKE=
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745 am__leading_dot=.
2746 else
2747 am__leading_dot=_
2749 rmdir .tst 2>/dev/null
2751 DEPDIR="${am__leading_dot}deps"
2753 ac_config_commands="$ac_config_commands depfiles"
2756 am_make=${MAKE-make}
2757 cat > confinc << 'END'
2758 am__doit:
2759 @echo done
2760 .PHONY: am__doit
2762 # If we don't find an include directive, just comment out the code.
2763 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2764 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765 am__include="#"
2766 am__quote=
2767 _am_result=none
2768 # First try GNU make style include.
2769 echo "include confinc" > confmf
2770 # We grep out `Entering directory' and `Leaving directory'
2771 # messages which can occur if `w' ends up in MAKEFLAGS.
2772 # In particular we don't look at `^make:' because GNU make might
2773 # be invoked under some other name (usually "gmake"), in which
2774 # case it prints its new name instead of `make'.
2775 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2776 am__include=include
2777 am__quote=
2778 _am_result=GNU
2780 # Now try BSD make style include.
2781 if test "$am__include" = "#"; then
2782 echo '.include "confinc"' > confmf
2783 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2784 am__include=.include
2785 am__quote="\""
2786 _am_result=BSD
2791 echo "$as_me:$LINENO: result: $_am_result" >&5
2792 echo "${ECHO_T}$_am_result" >&6
2793 rm -f confinc confmf
2795 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2796 if test "${enable_dependency_tracking+set}" = set; then
2797 enableval="$enable_dependency_tracking"
2800 if test "x$enable_dependency_tracking" != xno; then
2801 am_depcomp="$ac_aux_dir/depcomp"
2802 AMDEPBACKSLASH='\'
2806 if test "x$enable_dependency_tracking" != xno; then
2807 AMDEP_TRUE=
2808 AMDEP_FALSE='#'
2809 else
2810 AMDEP_TRUE='#'
2811 AMDEP_FALSE=
2816 # test to see if srcdir already configured
2817 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2818 test -f $srcdir/config.status; then
2819 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2820 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2821 { (exit 1); exit 1; }; }
2824 # test whether we have cygpath
2825 if test -z "$CYGPATH_W"; then
2826 if (cygpath --version) >/dev/null 2>/dev/null; then
2827 CYGPATH_W='cygpath -w'
2828 else
2829 CYGPATH_W=echo
2834 # Define the identity of the package.
2835 PACKAGE=gas
2836 VERSION=${BFD_VERSION}
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE "$PACKAGE"
2841 _ACEOF
2844 cat >>confdefs.h <<_ACEOF
2845 #define VERSION "$VERSION"
2846 _ACEOF
2848 # Some tools Automake needs.
2850 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2866 # Installed binaries are usually stripped using `strip' when the user
2867 # run `make install-strip'. However `strip' might not be the right
2868 # tool to use in cross-compilation environments, therefore Automake
2869 # will honor the `STRIP' environment variable to overrule this program.
2870 if test "$cross_compiling" != no; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}strip; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_STRIP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2898 STRIP=$ac_cv_prog_STRIP
2899 if test -n "$STRIP"; then
2900 echo "$as_me:$LINENO: result: $STRIP" >&5
2901 echo "${ECHO_T}$STRIP" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2908 if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911 set dummy strip; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_STRIP="strip"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2938 if test -n "$ac_ct_STRIP"; then
2939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2940 echo "${ECHO_T}$ac_ct_STRIP" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 STRIP=$ac_ct_STRIP
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2952 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954 # We need awk for the "check" target. The system "awk" is bad on
2955 # some platforms.
2956 # Always define AMTAR for backward compatibility.
2958 AMTAR=${AMTAR-"${am_missing_run}tar"}
2960 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2965 depcc="$CC" am_compiler_list=
2967 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2968 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2969 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2973 # We make a subdir and do the tests there. Otherwise we can end up
2974 # making bogus files that we don't know about and never remove. For
2975 # instance it was reported that on HP-UX the gcc test will end up
2976 # making a dummy file named `D' -- because `-MD' means `put the output
2977 # in D'.
2978 mkdir conftest.dir
2979 # Copy depcomp to subdir because otherwise we won't find it if we're
2980 # using a relative directory.
2981 cp "$am_depcomp" conftest.dir
2982 cd conftest.dir
2983 # We will build objects and dependencies in a subdirectory because
2984 # it helps to detect inapplicable dependency modes. For instance
2985 # both Tru64's cc and ICC support -MD to output dependencies as a
2986 # side effect of compilation, but ICC will put the dependencies in
2987 # the current directory while Tru64 will put them in the object
2988 # directory.
2989 mkdir sub
2991 am_cv_CC_dependencies_compiler_type=none
2992 if test "$am_compiler_list" = ""; then
2993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995 for depmode in $am_compiler_list; do
2996 # Setup a source with many dependencies, because some compilers
2997 # like to wrap large dependency lists on column 80 (with \), and
2998 # we should not choose a depcomp mode which is confused by this.
3000 # We need to recreate these files for each test, as the compiler may
3001 # overwrite some of them when testing with obscure command lines.
3002 # This happens at least with the AIX C compiler.
3003 : > sub/conftest.c
3004 for i in 1 2 3 4 5 6; do
3005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3007 # Solaris 8's {/usr,}/bin/sh.
3008 touch sub/conftst$i.h
3009 done
3010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012 case $depmode in
3013 nosideeffect)
3014 # after this tag, mechanisms are not by side-effect, so they'll
3015 # only be used when explicitly requested
3016 if test "x$enable_dependency_tracking" = xyes; then
3017 continue
3018 else
3019 break
3022 none) break ;;
3023 esac
3024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3025 # mode. It turns out that the SunPro C++ compiler does not properly
3026 # handle `-M -o', and we need to detect this.
3027 if depmode=$depmode \
3028 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3030 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3031 >/dev/null 2>conftest.err &&
3032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3035 # icc doesn't choke on unknown options, it will just issue warnings
3036 # or remarks (even with -Werror). So we grep stderr for any message
3037 # that says an option was ignored or not supported.
3038 # When given -MP, icc 7.0 and 7.1 complain thusly:
3039 # icc: Command line warning: ignoring option '-M'; no argument required
3040 # The diagnosis changed in icc 8.0:
3041 # icc: Command line remark: option '-MP' not supported
3042 if (grep 'ignoring option' conftest.err ||
3043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3044 am_cv_CC_dependencies_compiler_type=$depmode
3045 break
3048 done
3050 cd ..
3051 rm -rf conftest.dir
3052 else
3053 am_cv_CC_dependencies_compiler_type=none
3057 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3058 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3064 test "x$enable_dependency_tracking" != xno \
3065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3066 am__fastdepCC_TRUE=
3067 am__fastdepCC_FALSE='#'
3068 else
3069 am__fastdepCC_TRUE='#'
3070 am__fastdepCC_FALSE=
3076 # Check whether --enable-shared or --disable-shared was given.
3077 if test "${enable_shared+set}" = set; then
3078 enableval="$enable_shared"
3079 p=${PACKAGE-default}
3080 case $enableval in
3081 yes) enable_shared=yes ;;
3082 no) enable_shared=no ;;
3084 enable_shared=no
3085 # Look at the argument we got. We use all the common list separators.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3087 for pkg in $enableval; do
3088 if test "X$pkg" = "X$p"; then
3089 enable_shared=yes
3091 done
3092 IFS="$ac_save_ifs"
3094 esac
3095 else
3096 enable_shared=yes
3098 # Check whether --enable-static or --disable-static was given.
3099 if test "${enable_static+set}" = set; then
3100 enableval="$enable_static"
3101 p=${PACKAGE-default}
3102 case $enableval in
3103 yes) enable_static=yes ;;
3104 no) enable_static=no ;;
3106 enable_static=no
3107 # Look at the argument we got. We use all the common list separators.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3109 for pkg in $enableval; do
3110 if test "X$pkg" = "X$p"; then
3111 enable_static=yes
3113 done
3114 IFS="$ac_save_ifs"
3116 esac
3117 else
3118 enable_static=yes
3120 # Check whether --enable-fast-install or --disable-fast-install was given.
3121 if test "${enable_fast_install+set}" = set; then
3122 enableval="$enable_fast_install"
3123 p=${PACKAGE-default}
3124 case $enableval in
3125 yes) enable_fast_install=yes ;;
3126 no) enable_fast_install=no ;;
3128 enable_fast_install=no
3129 # Look at the argument we got. We use all the common list separators.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3131 for pkg in $enableval; do
3132 if test "X$pkg" = "X$p"; then
3133 enable_fast_install=yes
3135 done
3136 IFS="$ac_save_ifs"
3138 esac
3139 else
3140 enable_fast_install=yes
3143 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3144 if test "${with_gnu_ld+set}" = set; then
3145 withval="$with_gnu_ld"
3146 test "$withval" = no || with_gnu_ld=yes
3147 else
3148 with_gnu_ld=no
3150 ac_prog=ld
3151 if test "$GCC" = yes; then
3152 # Check if gcc -print-prog-name=ld gives a path.
3153 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3154 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3155 case $host in
3156 *-*-mingw*)
3157 # gcc leaves a trailing carriage return which upsets mingw
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3161 esac
3162 case $ac_prog in
3163 # Accept absolute paths.
3164 [\\/]* | [A-Za-z]:[\\/]*)
3165 re_direlt='/[^/][^/]*/\.\./'
3166 # Canonicalize the path of ld
3167 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3170 done
3171 test -z "$LD" && LD="$ac_prog"
3174 # If it fails, then pretend we aren't using GCC.
3175 ac_prog=ld
3178 # If it is relative, then search for the first ld in PATH.
3179 with_gnu_ld=unknown
3181 esac
3182 elif test "$with_gnu_ld" = yes; then
3183 echo "$as_me:$LINENO: checking for GNU ld" >&5
3184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3185 else
3186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3189 if test "${lt_cv_path_LD+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 if test -z "$LD"; then
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3194 for ac_dir in $PATH; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3197 lt_cv_path_LD="$ac_dir/$ac_prog"
3198 # Check to see if the program is GNU ld. I'd rather use --version,
3199 # but apparently some GNU ld's only accept -v.
3200 # Break only if it was the GNU/non-GNU ld that we prefer.
3201 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3202 test "$with_gnu_ld" != no && break
3203 else
3204 test "$with_gnu_ld" != yes && break
3207 done
3208 IFS="$ac_save_ifs"
3209 else
3210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3214 LD="$lt_cv_path_LD"
3215 if test -n "$LD"; then
3216 echo "$as_me:$LINENO: result: $LD" >&5
3217 echo "${ECHO_T}$LD" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3222 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3223 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3224 { (exit 1); exit 1; }; }
3225 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3226 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3227 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3232 lt_cv_prog_gnu_ld=yes
3233 else
3234 lt_cv_prog_gnu_ld=no
3237 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3238 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3239 with_gnu_ld=$lt_cv_prog_gnu_ld
3242 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3243 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3244 if test "${lt_cv_ld_reload_flag+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 lt_cv_ld_reload_flag='-r'
3249 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3250 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3251 reload_flag=$lt_cv_ld_reload_flag
3252 test -n "$reload_flag" && reload_flag=" $reload_flag"
3254 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3256 if test "${lt_cv_path_NM+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 if test -n "$NM"; then
3260 # Let the user override the test.
3261 lt_cv_path_NM="$NM"
3262 else
3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3264 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3265 test -z "$ac_dir" && ac_dir=.
3266 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3267 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3268 # Check to see if the nm accepts a BSD-compat flag.
3269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3270 # nm: unknown option "B" ignored
3271 # Tru64's nm complains that /dev/null is an invalid object file
3272 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3273 lt_cv_path_NM="$tmp_nm -B"
3274 break
3275 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3276 lt_cv_path_NM="$tmp_nm -p"
3277 break
3278 else
3279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3280 continue # so that we can try to find one that supports BSD flags
3283 done
3284 IFS="$ac_save_ifs"
3285 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3289 NM="$lt_cv_path_NM"
3290 echo "$as_me:$LINENO: result: $NM" >&5
3291 echo "${ECHO_T}$NM" >&6
3293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295 LN_S=$as_ln_s
3296 if test "$LN_S" = "ln -s"; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3299 else
3300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3301 echo "${ECHO_T}no, using $LN_S" >&6
3304 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3305 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3306 if test "${lt_cv_deplibs_check_method+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 lt_cv_file_magic_cmd='$MAGIC_CMD'
3310 lt_cv_file_magic_test_file=
3311 lt_cv_deplibs_check_method='unknown'
3312 # Need to set the preceding variable on all platforms that support
3313 # interlibrary dependencies.
3314 # 'none' -- dependencies not supported.
3315 # `unknown' -- same as none, but documents that we really don't know.
3316 # 'pass_all' -- all dependencies passed with no checks.
3317 # 'test_compile' -- check by making test program.
3318 # 'file_magic [regex]' -- check by looking for files in library path
3319 # which responds to the $file_magic_cmd with a given egrep regex.
3320 # If you have `file' or equivalent on your system and you're not sure
3321 # whether `pass_all' will *always* work, you probably want this one.
3323 case $host_os in
3324 aix*)
3325 lt_cv_deplibs_check_method=pass_all
3328 beos*)
3329 lt_cv_deplibs_check_method=pass_all
3332 bsdi4*)
3333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3334 lt_cv_file_magic_cmd='/usr/bin/file -L'
3335 lt_cv_file_magic_test_file=/shlib/libc.so
3338 cygwin* | mingw* |pw32*)
3339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3340 lt_cv_file_magic_cmd='$OBJDUMP -f'
3343 darwin* | rhapsody*)
3344 # this will be overwritten by pass_all, but leave it in just in case
3345 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3346 lt_cv_file_magic_cmd='/usr/bin/file -L'
3347 case "$host_os" in
3348 rhapsody* | darwin1.012)
3349 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3351 *) # Darwin 1.3 on
3352 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3354 esac
3355 lt_cv_deplibs_check_method=pass_all
3358 freebsd* | kfreebsd*-gnu)
3359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3360 case $host_cpu in
3361 i*86 )
3362 # Not sure whether the presence of OpenBSD here was a mistake.
3363 # Let's accept both of them until this is cleared up.
3364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3365 lt_cv_file_magic_cmd=/usr/bin/file
3366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3368 esac
3369 else
3370 lt_cv_deplibs_check_method=pass_all
3374 gnu*)
3375 lt_cv_deplibs_check_method=pass_all
3378 hpux10.20*|hpux11*)
3379 case $host_cpu in
3380 hppa*)
3381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3382 lt_cv_file_magic_cmd=/usr/bin/file
3383 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3385 ia64*)
3386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3387 lt_cv_file_magic_cmd=/usr/bin/file
3388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3390 esac
3393 irix5* | irix6*)
3394 case $host_os in
3395 irix5*)
3396 # this will be overridden with pass_all, but let us keep it just in case
3397 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3400 case $LD in
3401 *-32|*"-32 ") libmagic=32-bit;;
3402 *-n32|*"-n32 ") libmagic=N32;;
3403 *-64|*"-64 ") libmagic=64-bit;;
3404 *) libmagic=never-match;;
3405 esac
3406 # this will be overridden with pass_all, but let us keep it just in case
3407 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3409 esac
3410 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3411 lt_cv_deplibs_check_method=pass_all
3414 # This must be Linux ELF.
3415 linux-gnu*)
3416 lt_cv_deplibs_check_method=pass_all
3419 netbsd* | knetbsd*-gnu)
3420 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3422 else
3423 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3427 newsos6)
3428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3429 lt_cv_file_magic_cmd=/usr/bin/file
3430 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3433 osf3* | osf4* | osf5*)
3434 # this will be overridden with pass_all, but let us keep it just in case
3435 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3436 lt_cv_file_magic_test_file=/shlib/libc.so
3437 lt_cv_deplibs_check_method=pass_all
3440 sco3.2v5*)
3441 lt_cv_deplibs_check_method=pass_all
3444 solaris*)
3445 lt_cv_deplibs_check_method=pass_all
3446 lt_cv_file_magic_test_file=/lib/libc.so
3449 sysv5uw[78]* | sysv4*uw2*)
3450 lt_cv_deplibs_check_method=pass_all
3453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3454 case $host_vendor in
3455 ncr)
3456 lt_cv_deplibs_check_method=pass_all
3458 motorola)
3459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3462 esac
3464 esac
3467 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3468 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3469 file_magic_cmd=$lt_cv_file_magic_cmd
3470 deplibs_check_method=$lt_cv_deplibs_check_method
3475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3477 # find the maximum length of command line arguments
3478 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3484 teststring="ABCD"
3486 case $build_os in
3487 msdosdjgpp*)
3488 # On DJGPP, this test can blow up pretty badly due to problems in libc
3489 # (any single argument exceeding 2000 bytes causes a buffer overrun
3490 # during glob expansion). Even if it were fixed, the result of this
3491 # check would be larger than it should be.
3492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3495 cygwin* | mingw*)
3496 # On Win9x/ME, this test blows up -- it succeeds, but takes
3497 # about 5 minutes as the teststring grows exponentially.
3498 # Worse, since 9x/ME are not pre-emptively multitasking,
3499 # you end up with a "frozen" computer, even though with patience
3500 # the test eventually succeeds (with a max line length of 256k).
3501 # Instead, let's just punt: use the minimum linelength reported by
3502 # all of the supported platforms: 8192 (on NT/2K/XP).
3503 lt_cv_sys_max_cmd_len=8192;
3506 amigaos*)
3507 # On AmigaOS with pdksh, this test takes hours, literally.
3508 # So we just punt and use a minimum line length of 8192.
3509 lt_cv_sys_max_cmd_len=8192;
3512 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3513 # This has been around since 386BSD, at least. Likely further.
3514 if test -x /sbin/sysctl; then
3515 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3516 elif test -x /usr/sbin/sysctl; then
3517 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3518 else
3519 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3521 # And add a safety zone
3522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3525 esac
3529 if test -n "$lt_cv_sys_max_cmd_len" ; then
3530 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3531 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3532 else
3533 echo "$as_me:$LINENO: result: none" >&5
3534 echo "${ECHO_T}none" >&6
3538 # Only perform the check for file, if the check method requires it
3539 case $deplibs_check_method in
3540 file_magic*)
3541 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3542 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3543 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3544 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 case $MAGIC_CMD in
3549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3551 ?:/*)
3552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3555 ac_save_MAGIC_CMD="$MAGIC_CMD"
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3557 ac_dummy="/usr/bin:$PATH"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/${ac_tool_prefix}file; then
3561 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3562 if test -n "$file_magic_test_file"; then
3563 case $deplibs_check_method in
3564 "file_magic "*)
3565 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3568 egrep "$file_magic_regex" > /dev/null; then
3570 else
3571 cat <<EOF 1>&2
3573 *** Warning: the command libtool uses to detect shared libraries,
3574 *** $file_magic_cmd, produces output that libtool cannot recognize.
3575 *** The result is that libtool may fail to recognize shared libraries
3576 *** as such. This will affect the creation of libtool libraries that
3577 *** depend on shared libraries, but programs linked with such libtool
3578 *** libraries will work regardless of this problem. Nevertheless, you
3579 *** may want to report the problem to your system manager and/or to
3580 *** bug-libtool@gnu.org
3583 fi ;;
3584 esac
3586 break
3588 done
3589 IFS="$ac_save_ifs"
3590 MAGIC_CMD="$ac_save_MAGIC_CMD"
3592 esac
3595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3596 if test -n "$MAGIC_CMD"; then
3597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3598 echo "${ECHO_T}$MAGIC_CMD" >&6
3599 else
3600 echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6
3604 if test -z "$lt_cv_path_MAGIC_CMD"; then
3605 if test -n "$ac_tool_prefix"; then
3606 echo "$as_me:$LINENO: checking for file" >&5
3607 echo $ECHO_N "checking for file... $ECHO_C" >&6
3608 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 case $MAGIC_CMD in
3613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3615 ?:/*)
3616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3619 ac_save_MAGIC_CMD="$MAGIC_CMD"
3620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3621 ac_dummy="/usr/bin:$PATH"
3622 for ac_dir in $ac_dummy; do
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f $ac_dir/file; then
3625 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3626 if test -n "$file_magic_test_file"; then
3627 case $deplibs_check_method in
3628 "file_magic "*)
3629 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3632 egrep "$file_magic_regex" > /dev/null; then
3634 else
3635 cat <<EOF 1>&2
3637 *** Warning: the command libtool uses to detect shared libraries,
3638 *** $file_magic_cmd, produces output that libtool cannot recognize.
3639 *** The result is that libtool may fail to recognize shared libraries
3640 *** as such. This will affect the creation of libtool libraries that
3641 *** depend on shared libraries, but programs linked with such libtool
3642 *** libraries will work regardless of this problem. Nevertheless, you
3643 *** may want to report the problem to your system manager and/or to
3644 *** bug-libtool@gnu.org
3647 fi ;;
3648 esac
3650 break
3652 done
3653 IFS="$ac_save_ifs"
3654 MAGIC_CMD="$ac_save_MAGIC_CMD"
3656 esac
3659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3660 if test -n "$MAGIC_CMD"; then
3661 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3662 echo "${ECHO_T}$MAGIC_CMD" >&6
3663 else
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 else
3669 MAGIC_CMD=:
3675 esac
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3680 echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_RANLIB+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 if test -n "$RANLIB"; then
3686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3699 done
3700 done
3704 RANLIB=$ac_cv_prog_RANLIB
3705 if test -n "$RANLIB"; then
3706 echo "$as_me:$LINENO: result: $RANLIB" >&5
3707 echo "${ECHO_T}$RANLIB" >&6
3708 else
3709 echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3714 if test -z "$ac_cv_prog_RANLIB"; then
3715 ac_ct_RANLIB=$RANLIB
3716 # Extract the first word of "ranlib", so it can be a program name with args.
3717 set dummy ranlib; ac_word=$2
3718 echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3720 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 if test -n "$ac_ct_RANLIB"; then
3724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_ac_ct_RANLIB="ranlib"
3734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3737 done
3738 done
3740 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3744 if test -n "$ac_ct_RANLIB"; then
3745 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3746 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3747 else
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3752 RANLIB=$ac_ct_RANLIB
3753 else
3754 RANLIB="$ac_cv_prog_RANLIB"
3757 if test -n "$ac_tool_prefix"; then
3758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3759 set dummy ${ac_tool_prefix}strip; ac_word=$2
3760 echo "$as_me:$LINENO: checking for $ac_word" >&5
3761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762 if test "${ac_cv_prog_STRIP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 if test -n "$STRIP"; then
3766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3779 done
3780 done
3784 STRIP=$ac_cv_prog_STRIP
3785 if test -n "$STRIP"; then
3786 echo "$as_me:$LINENO: result: $STRIP" >&5
3787 echo "${ECHO_T}$STRIP" >&6
3788 else
3789 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3794 if test -z "$ac_cv_prog_STRIP"; then
3795 ac_ct_STRIP=$STRIP
3796 # Extract the first word of "strip", so it can be a program name with args.
3797 set dummy strip; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 if test -n "$ac_ct_STRIP"; then
3804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_ac_ct_STRIP="strip"
3814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3817 done
3818 done
3820 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3824 if test -n "$ac_ct_STRIP"; then
3825 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3826 echo "${ECHO_T}$ac_ct_STRIP" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3832 STRIP=$ac_ct_STRIP
3833 else
3834 STRIP="$ac_cv_prog_STRIP"
3838 # Check for any special flags to pass to ltconfig.
3839 libtool_flags="--cache-file=$cache_file"
3840 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3841 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3842 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3843 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3844 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3847 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3848 if test "${enable_libtool_lock+set}" = set; then
3849 enableval="$enable_libtool_lock"
3852 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3853 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3856 # Check whether --with-pic or --without-pic was given.
3857 if test "${with_pic+set}" = set; then
3858 withval="$with_pic"
3859 pic_mode="$withval"
3860 else
3861 pic_mode=default
3863 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3864 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3866 # Some flags need to be propagated to the compiler or linker for good
3867 # libtool support.
3868 case $host in
3869 *-*-irix6*)
3870 # Find out which ABI we are using.
3871 echo '#line 3871 "configure"' > conftest.$ac_ext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; then
3877 if test "$lt_cv_prog_gnu_ld" = yes; then
3878 case `/usr/bin/file conftest.$ac_objext` in
3879 *32-bit*)
3880 LD="${LD-ld} -melf32bsmip"
3882 *N32*)
3883 LD="${LD-ld} -melf32bmipn32"
3885 *64-bit*)
3886 LD="${LD-ld} -melf64bmip"
3888 esac
3889 else
3890 case `/usr/bin/file conftest.$ac_objext` in
3891 *32-bit*)
3892 LD="${LD-ld} -32"
3894 *N32*)
3895 LD="${LD-ld} -n32"
3897 *64-bit*)
3898 LD="${LD-ld} -64"
3900 esac
3903 rm -rf conftest*
3906 ia64-*-hpux*)
3907 # Find out which ABI we are using.
3908 echo 'int i;' > conftest.$ac_ext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; then
3914 case "`/usr/bin/file conftest.o`" in
3915 *ELF-32*)
3916 HPUX_IA64_MODE="32"
3918 *ELF-64*)
3919 HPUX_IA64_MODE="64"
3921 esac
3923 rm -rf conftest*
3926 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3927 # Find out which ABI we are using.
3928 echo 'int i;' > conftest.$ac_ext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; then
3934 case "`/usr/bin/file conftest.o`" in
3935 *32-bit*)
3936 case $host in
3937 x86_64-*linux*)
3938 LD="${LD-ld} -m elf_i386"
3940 ppc64-*linux*|powerpc64-*linux*)
3941 LD="${LD-ld} -m elf32ppclinux"
3943 s390x-*linux*)
3944 LD="${LD-ld} -m elf_s390"
3946 sparc64-*linux*)
3947 LD="${LD-ld} -m elf32_sparc"
3949 esac
3951 *64-bit*)
3952 case $host in
3953 x86_64-*linux*)
3954 LD="${LD-ld} -m elf_x86_64"
3956 ppc*-*linux*|powerpc*-*linux*)
3957 LD="${LD-ld} -m elf64ppc"
3959 s390*-*linux*)
3960 LD="${LD-ld} -m elf64_s390"
3962 sparc*-*linux*)
3963 LD="${LD-ld} -m elf64_sparc"
3965 esac
3967 esac
3969 rm -rf conftest*
3972 *-*-sco3.2v5*)
3973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3974 SAVE_CFLAGS="$CFLAGS"
3975 CFLAGS="$CFLAGS -belf"
3976 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3977 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3978 if test "${lt_cv_cc_needs_belf+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3997 main ()
4001 return 0;
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest$ac_exeext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 lt_cv_cc_needs_belf=yes
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 lt_cv_cc_needs_belf=no
4033 rm -f conftest.err conftest.$ac_objext \
4034 conftest$ac_exeext conftest.$ac_ext
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4043 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4044 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4046 CFLAGS="$SAVE_CFLAGS"
4051 esac
4054 # Save cache, so that ltconfig can load it
4055 cat >confcache <<\_ACEOF
4056 # This file is a shell script that caches the results of configure
4057 # tests run on this system so they can be shared between configure
4058 # scripts and configure runs, see configure's option --config-cache.
4059 # It is not useful on other systems. If it contains results you don't
4060 # want to keep, you may remove or edit it.
4062 # config.status only pays attention to the cache file if you give it
4063 # the --recheck option to rerun configure.
4065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4067 # following values.
4069 _ACEOF
4071 # The following way of writing the cache mishandles newlines in values,
4072 # but we know of no workaround that is simple, portable, and efficient.
4073 # So, don't put newlines in cache variables' values.
4074 # Ultrix sh set writes to stderr and can't be redirected directly,
4075 # and sets the high bit in the cache file unless we assign to the vars.
4077 (set) 2>&1 |
4078 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4079 *ac_space=\ *)
4080 # `set' does not quote correctly, so add quotes (double-quote
4081 # substitution turns \\\\ into \\, and sed turns \\ into \).
4082 sed -n \
4083 "s/'/'\\\\''/g;
4084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4087 # `set' quotes correctly as required by POSIX, so do not add quotes.
4088 sed -n \
4089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4091 esac;
4093 sed '
4094 t clear
4095 : clear
4096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4097 t end
4098 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4099 : end' >>confcache
4100 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4101 if test -w $cache_file; then
4102 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4103 cat confcache >$cache_file
4104 else
4105 echo "not updating unwritable cache $cache_file"
4108 rm -f confcache
4110 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4111 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4112 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4113 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4114 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4115 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4116 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4117 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4118 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4119 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4120 echo "$as_me: error: libtool configure failed" >&2;}
4121 { (exit 1); exit 1; }; }
4123 # Reload cache, that may have been modified by ltconfig
4124 if test -r "$cache_file"; then
4125 # Some versions of bash will fail to source /dev/null (special
4126 # files actually), so we avoid doing that.
4127 if test -f "$cache_file"; then
4128 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4129 echo "$as_me: loading cache $cache_file" >&6;}
4130 case $cache_file in
4131 [\\/]* | ?:[\\/]* ) . $cache_file;;
4132 *) . ./$cache_file;;
4133 esac
4135 else
4136 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4137 echo "$as_me: creating cache $cache_file" >&6;}
4138 >$cache_file
4142 # This can be used to rebuild libtool when needed
4143 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4145 # Always use our own libtool.
4146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4148 # Redirect the config.log output again, so that the ltconfig log is not
4149 # clobbered by the next message.
4150 exec 5>>./config.log
4158 # Check whether --enable-targets or --disable-targets was given.
4159 if test "${enable_targets+set}" = set; then
4160 enableval="$enable_targets"
4161 case "${enableval}" in
4162 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4163 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4164 { (exit 1); exit 1; }; }
4166 no) enable_targets= ;;
4167 *) enable_targets=$enableval ;;
4168 esac
4169 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4170 if test "${enable_commonbfdlib+set}" = set; then
4171 enableval="$enable_commonbfdlib"
4172 case "${enableval}" in
4173 yes) commonbfdlib=true ;;
4174 no) commonbfdlib=false ;;
4175 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4176 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4177 { (exit 1); exit 1; }; } ;;
4178 esac
4180 using_cgen=no
4182 # The location to which bugs should be reported.
4184 # Check whether --with-bugurl or --without-bugurl was given.
4185 if test "${with_bugurl+set}" = set; then
4186 withval="$with_bugurl"
4187 case "$withval" in
4188 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4189 echo "$as_me: error: bug URL not specified" >&2;}
4190 { (exit 1); exit 1; }; } ;;
4191 no) REPORT_BUGS_TO="" ;;
4192 *) REPORT_BUGS_TO="<URL:$withval>" ;;
4193 esac
4194 else
4195 REPORT_BUGS_TO=""
4201 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4203 # Check whether --enable-werror or --disable-werror was given.
4204 if test "${enable_werror+set}" = set; then
4205 enableval="$enable_werror"
4206 case "${enableval}" in
4207 yes | y) ERROR_ON_WARNING="yes" ;;
4208 no | n) ERROR_ON_WARNING="no" ;;
4209 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4210 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4211 { (exit 1); exit 1; }; } ;;
4212 esac
4215 # Enable -Werror by default when using gcc
4216 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4217 ERROR_ON_WARNING=yes
4220 NO_WERROR=
4221 if test "${ERROR_ON_WARNING}" = yes ; then
4222 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4223 NO_WERROR="-Wno-error"
4226 if test "${GCC}" = yes ; then
4227 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4230 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4231 if test "${enable_build_warnings+set}" = set; then
4232 enableval="$enable_build_warnings"
4233 case "${enableval}" in
4234 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4235 no) if test "${GCC}" = yes ; then
4236 WARN_CFLAGS="-w"
4237 fi;;
4238 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4239 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4240 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4241 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4242 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4243 esac
4246 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4247 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4254 # Generate a header file
4255 ac_config_headers="$ac_config_headers config.h:config.in"
4258 # If we are on a DOS filesystem, we must use gdb.ini rather than
4259 # .gdbinit.
4260 case "${host}" in
4261 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
4262 GDBINIT="gdb.ini"
4263 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4267 GDBINIT=".gdbinit"
4268 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4271 esac
4274 #We need this for the host. BOUT header is in host order.
4275 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4276 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4277 if test "${ac_cv_c_bigendian+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 # See if sys/param.h defines the BYTE_ORDER macro.
4281 cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h. */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #include <sys/types.h>
4288 #include <sys/param.h>
4291 main ()
4293 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4294 bogus endian macros
4295 #endif
4298 return 0;
4300 _ACEOF
4301 rm -f conftest.$ac_objext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303 (eval $ac_compile) 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_c_werror_flag"
4311 || test ! -s conftest.err'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 # It does; now see whether it defined to BIG_ENDIAN or not.
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 #include <sys/param.h>
4334 main ()
4336 #if BYTE_ORDER != BIG_ENDIAN
4337 not big endian
4338 #endif
4341 return 0;
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_c_bigendian=yes
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 ac_cv_c_bigendian=no
4373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374 else
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 # It does not; compile a test program.
4379 if test "$cross_compiling" = yes; then
4380 # try to guess the endianness by grepping values into an object file
4381 ac_cv_c_bigendian=unknown
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4389 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4390 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4391 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4392 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4393 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4395 main ()
4397 _ascii (); _ebcdic ();
4399 return 0;
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag"
4412 || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4425 ac_cv_c_bigendian=yes
4427 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4428 if test "$ac_cv_c_bigendian" = unknown; then
4429 ac_cv_c_bigendian=no
4430 else
4431 # finding both strings is unlikely to happen, but who knows?
4432 ac_cv_c_bigendian=unknown
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4441 else
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h. */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4449 main ()
4451 /* Are we little or big endian? From Harbison&Steele. */
4452 union
4454 long l;
4455 char c[sizeof (long)];
4456 } u;
4457 u.l = 1;
4458 exit (u.c[sizeof (long) - 1] == 1);
4460 _ACEOF
4461 rm -f conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_c_bigendian=no
4473 else
4474 echo "$as_me: program exited with status $ac_status" >&5
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 ( exit $ac_status )
4479 ac_cv_c_bigendian=yes
4481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4486 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4487 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4488 case $ac_cv_c_bigendian in
4489 yes)
4491 cat >>confdefs.h <<\_ACEOF
4492 #define WORDS_BIGENDIAN 1
4493 _ACEOF
4498 { { echo "$as_me:$LINENO: error: unknown endianness
4499 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4500 echo "$as_me: error: unknown endianness
4501 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4502 { (exit 1); exit 1; }; } ;;
4503 esac
4506 te_file=generic
4508 # Makefile target for installing gas in $(tooldir)/bin.
4509 install_tooldir=install-exec-tooldir
4511 canon_targets=""
4512 all_targets=no
4513 if test -n "$enable_targets" ; then
4514 for t in `echo $enable_targets | sed 's/,/ /g'`; do
4515 if test $t = "all"; then
4516 all_targets=yes
4517 continue
4519 result=`$ac_config_sub $t 2>/dev/null`
4520 if test -n "$result" ; then
4521 canon_targets="$canon_targets $result"
4522 # else
4523 # # Permit "all", etc. We don't support it yet though.
4524 # canon_targets="$canon_targets $t"
4526 done
4527 _gas_uniq_list="$canon_targets"
4528 _gas_uniq_newlist=""
4529 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4530 case $_gas_uniq_i in
4531 _gas_uniq_dummy) ;;
4532 *) case " $_gas_uniq_newlist " in
4533 *" $_gas_uniq_i "*) ;;
4534 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4535 esac ;;
4536 esac
4537 done
4538 canon_targets=$_gas_uniq_newlist
4542 emulations=""
4544 for this_target in $target $canon_targets ; do
4546 targ=${this_target}
4547 . ${srcdir}/configure.tgt
4549 case ${target_cpu} in
4550 crisv32)
4552 cat >>confdefs.h <<_ACEOF
4553 #define DEFAULT_CRIS_ARCH $arch
4554 _ACEOF
4557 esac
4559 if test ${this_target} = $target ; then
4560 target_cpu_type=${cpu_type}
4561 elif test ${target_cpu_type} != ${cpu_type} ; then
4562 continue
4565 generic_target=${cpu_type}-${target_vendor}-${target_os}
4566 case ${generic_target} in
4567 i386-*-sco3.2v5*)
4568 if test ${this_target} = $target; then
4570 cat >>confdefs.h <<\_ACEOF
4571 #define SCO_ELF 1
4572 _ACEOF
4577 i386-*-msdosdjgpp* \
4578 | i386-*-go32* \
4579 | i386-go32-rtems*)
4581 cat >>confdefs.h <<\_ACEOF
4582 #define STRICTCOFF 1
4583 _ACEOF
4587 i860-*-*)
4588 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4589 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4592 mips-sony-bsd*)
4594 mips-*-bsd*)
4595 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4596 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4597 { (exit 1); exit 1; }; }
4600 ppc-*-aix5.*)
4602 cat >>confdefs.h <<\_ACEOF
4603 #define AIX_WEAK_SUPPORT 1
4604 _ACEOF
4607 ppc-*-linux-*)
4608 case "$endian" in
4609 big) ;;
4610 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4611 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4612 { (exit 1); exit 1; }; } ;;
4613 esac
4615 ppc-*-solaris*)
4616 if test ${this_target} = $target; then
4618 cat >>confdefs.h <<\_ACEOF
4619 #define TARGET_SOLARIS_COMMENT 1
4620 _ACEOF
4623 if test x${endian} = xbig; then
4624 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4625 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4626 { (exit 1); exit 1; }; }
4630 sh*-*-symbianelf*)
4632 cat >>confdefs.h <<\_ACEOF
4633 #define TARGET_SYMBIAN 1
4634 _ACEOF
4637 esac
4639 if test ${this_target} = $target ; then
4640 endian_def=
4641 if test x${endian} = xbig; then
4642 endian_def=1
4643 elif test x${endian} = xlittle; then
4644 endian_def=0
4646 if test x${endian_def} != x; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4650 _ACEOF
4655 # Other random stuff.
4657 case ${cpu_type} in
4658 mips)
4659 # Set mips_cpu to the name of the default CPU.
4660 case ${target_cpu} in
4661 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4662 mips_cpu=from-abi
4664 mipsisa32 | mipsisa32el)
4665 mips_cpu=mips32
4667 mipsisa32r2 | mipsisa32r2el)
4668 mips_cpu=mips32r2
4670 mipsisa64 | mipsisa64el)
4671 mips_cpu=mips64
4673 mipsisa64r2 | mipsisa64r2el)
4674 mips_cpu=mips64r2
4676 mipstx39 | mipstx39el)
4677 mips_cpu=r3900
4679 mips64vr | mips64vrel)
4680 mips_cpu=vr4100
4682 mipsisa32r2* | mipsisa64r2*)
4683 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4685 mips64* | mipsisa64* | mipsisa32*)
4686 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4689 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4690 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4691 { (exit 1); exit 1; }; }
4693 esac
4694 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4695 # binaries. It's a GNU extension that some OSes don't understand.
4696 # The value only matters on ELF targets.
4697 case ${target} in
4698 *-*-irix*)
4699 use_e_mips_abi_o32=0
4702 use_e_mips_abi_o32=1
4704 esac
4705 # Decide whether to generate 32-bit or 64-bit code by default.
4706 # Used to resolve -march=from-abi when an embedded ABI is selected.
4707 case ${target} in
4708 mips64*-*-* | mipsisa64*-*-*)
4709 mips_default_64bit=1
4712 mips_default_64bit=0
4714 esac
4715 # Decide which ABI to target by default.
4716 case ${target} in
4717 mips64*-linux* | mips-sgi-irix6*)
4718 mips_default_abi=N32_ABI
4720 mips*-linux*)
4721 mips_default_abi=O32_ABI
4723 mips64*-openbsd*)
4724 mips_default_abi=N64_ABI
4727 mips_default_abi=NO_ABI
4729 esac
4731 cat >>confdefs.h <<_ACEOF
4732 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4733 _ACEOF
4736 cat >>confdefs.h <<_ACEOF
4737 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4738 _ACEOF
4741 cat >>confdefs.h <<_ACEOF
4742 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4743 _ACEOF
4746 cat >>confdefs.h <<_ACEOF
4747 #define MIPS_DEFAULT_ABI $mips_default_abi
4748 _ACEOF
4751 esac
4753 # Do we need the opcodes library?
4754 case ${cpu_type} in
4755 vax | i386 | tic30)
4759 need_opcodes=yes
4761 case "${enable_shared}" in
4762 yes) shared_opcodes=true ;;
4763 *opcodes*) shared_opcodes=true ;;
4764 *) shared_opcodes=false ;;
4765 esac
4767 esac
4769 # Any other special object files needed ?
4770 case ${cpu_type} in
4772 bfin)
4773 echo ${extra_objects} | grep -s "bfin-parse.o"
4774 if test $? -ne 0 ; then
4775 extra_objects="$extra_objects bfin-parse.o"
4778 echo ${extra_objects} | grep -s "bfin-lex.o"
4779 if test $? -ne 0 ; then
4780 extra_objects="$extra_objects bfin-lex.o"
4784 fr30 | ip2k | iq2000 | m32r | openrisc)
4785 using_cgen=yes
4788 m32c)
4789 using_cgen=yes
4791 frv)
4792 using_cgen=yes
4794 m68k)
4795 case ${extra_objects} in
4796 *m68k-parse.o*) ;;
4797 *) extra_objects="$extra_objects m68k-parse.o" ;;
4798 esac
4801 mips)
4802 echo ${extra_objects} | grep -s "itbl-parse.o"
4803 if test $? -ne 0 ; then
4804 extra_objects="$extra_objects itbl-parse.o"
4807 echo ${extra_objects} | grep -s "itbl-lex.o"
4808 if test $? -ne 0 ; then
4809 extra_objects="$extra_objects itbl-lex.o"
4812 echo ${extra_objects} | grep -s "itbl-ops.o"
4813 if test $? -ne 0 ; then
4814 extra_objects="$extra_objects itbl-ops.o"
4819 using_cgen=yes
4822 i386 | s390 | sparc)
4823 if test $this_target = $target ; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define DEFAULT_ARCH "${arch}"
4827 _ACEOF
4832 xstormy16)
4833 using_cgen=yes
4836 xc16x)
4837 using_cgen=yes
4840 xtensa)
4841 echo ${extra_objects} | grep -s "xtensa-relax.o"
4842 if test $? -ne 0 ; then
4843 extra_objects="$extra_objects xtensa-relax.o"
4849 esac
4851 if test $using_cgen = yes ; then
4852 case "x${extra_objects}" in
4853 *cgen.o*) ;;
4854 *) extra_objects="$extra_objects cgen.o" ;;
4855 esac
4858 # See if we really can support this configuration with the emulation code.
4860 if test $this_target = $target ; then
4861 obj_format=$fmt
4862 te_file=$em
4865 # From target name and format, produce a list of supported emulations.
4867 case ${generic_target}-${fmt} in
4868 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4869 mips*-*-linux*-*) case "$endian" in
4870 big) emulation="mipsbelf mipslelf mipself" ;;
4871 *) emulation="mipslelf mipsbelf mipself" ;;
4872 esac ;;
4873 mips-*-lnews*-ecoff) ;;
4874 mips-*-*-ecoff) case "$endian" in
4875 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4876 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4877 esac ;;
4878 mips-*-*-elf) case "$endian" in
4879 big) emulation="mipsbelf mipslelf mipself" ;;
4880 *) emulation="mipslelf mipsbelf mipself" ;;
4881 esac ;;
4882 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4883 # i386-pc-pe-coff != i386-pc-coff.
4884 i386-*-pe-coff) ;;
4885 # Uncommenting the next line will turn on support for i386 AOUT
4886 # for the default linux configuration
4887 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4889 i386-*-aout) emulation="i386aout" ;;
4890 i386-*-coff) emulation="i386coff" ;;
4891 i386-*-elf) emulation="i386elf" ;;
4893 # Always all formats. The first stated emulation becomes the default.
4894 cris-*-*aout*) emulation="crisaout criself" ;;
4895 cris-*-*) emulation="criself crisaout" ;;
4896 esac
4898 emulations="$emulations $emulation"
4900 done
4902 # Turn on all targets if possible
4903 if test ${all_targets} = "yes"; then
4904 case ${target_cpu_type} in
4905 i386)
4906 case ${obj_format} in
4907 aout)
4908 emulations="$emulations i386coff i386elf"
4910 coff)
4911 emulations="$emulations i386aout i386elf"
4913 elf)
4914 emulations="$emulations i386aout i386coff"
4916 esac
4918 esac
4921 # Assign floating point type. Most processors with FP support
4922 # IEEE FP. On those that don't support FP at all, usually IEEE
4923 # is emulated.
4924 case ${target_cpu} in
4925 vax | tahoe ) atof=${target_cpu} ;;
4926 pdp11) atof=vax ;;
4927 *) atof=ieee ;;
4928 esac
4930 case "${obj_format}" in
4931 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4932 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4933 { (exit 1); exit 1; }; } ;;
4934 esac
4936 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4937 cgen_cpu_prefix=""
4938 if test $using_cgen = yes ; then
4939 case ${target_cpu} in
4940 *) cgen_cpu_prefix=${target_cpu} ;;
4941 esac
4944 cat >>confdefs.h <<\_ACEOF
4945 #define USING_CGEN 1
4946 _ACEOF
4951 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4952 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4953 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4954 { (exit 1); exit 1; }; }
4957 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4958 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4959 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4960 { (exit 1); exit 1; }; }
4963 # Some COFF configurations want these random other flags set.
4964 case ${obj_format} in
4965 coff)
4966 case ${target_cpu_type} in
4967 i386)
4968 cat >>confdefs.h <<\_ACEOF
4969 #define I386COFF 1
4970 _ACEOF
4972 m68k)
4973 cat >>confdefs.h <<\_ACEOF
4974 #define M68KCOFF 1
4975 _ACEOF
4977 m88k)
4978 cat >>confdefs.h <<\_ACEOF
4979 #define M88KCOFF 1
4980 _ACEOF
4982 esac
4984 esac
4986 # Getting this done right is going to be a bitch. Each configuration specified
4987 # with --enable-targets=... should be checked for environment, format, cpu
4988 # setting.
4990 # For each configuration, the necessary object file support code must be linked
4991 # in. This might be only one, it might be up to four. The necessary emulation
4992 # code needs to be provided, too.
4994 # And then there's "--enable-targets=all"....
4996 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4998 formats="${obj_format}"
4999 emfiles=""
5000 EMULATIONS=""
5001 _gas_uniq_list="$emulations"
5002 _gas_uniq_newlist=""
5003 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5004 case $_gas_uniq_i in
5005 _gas_uniq_dummy) ;;
5006 *) case " $_gas_uniq_newlist " in
5007 *" $_gas_uniq_i "*) ;;
5008 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5009 esac ;;
5010 esac
5011 done
5012 emulations=$_gas_uniq_newlist
5014 for em in . $emulations ; do
5015 case $em in
5016 .) continue ;;
5017 mipsbelf | mipslelf | mipself)
5018 fmt=elf file=mipself ;;
5019 mipsbecoff | mipslecoff | mipsecoff)
5020 fmt=ecoff file=mipsecoff ;;
5021 *coff)
5022 fmt=coff file=$em ;;
5023 *aout)
5024 fmt=aout file=$em ;;
5025 *elf)
5026 fmt=elf file=$em ;;
5027 esac
5028 formats="$formats $fmt"
5029 emfiles="$emfiles e-$file.o"
5030 EMULATIONS="$EMULATIONS &$em,"
5031 done
5032 _gas_uniq_list="$formats"
5033 _gas_uniq_newlist=""
5034 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5035 case $_gas_uniq_i in
5036 _gas_uniq_dummy) ;;
5037 *) case " $_gas_uniq_newlist " in
5038 *" $_gas_uniq_i "*) ;;
5039 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5040 esac ;;
5041 esac
5042 done
5043 formats=$_gas_uniq_newlist
5045 _gas_uniq_list="$emfiles"
5046 _gas_uniq_newlist=""
5047 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5048 case $_gas_uniq_i in
5049 _gas_uniq_dummy) ;;
5050 *) case " $_gas_uniq_newlist " in
5051 *" $_gas_uniq_i "*) ;;
5052 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5053 esac ;;
5054 esac
5055 done
5056 emfiles=$_gas_uniq_newlist
5058 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
5059 for fmt in $formats ; do
5060 case $fmt in
5061 aout)
5062 cat >>confdefs.h <<\_ACEOF
5063 #define OBJ_MAYBE_AOUT 1
5064 _ACEOF
5066 bout)
5067 cat >>confdefs.h <<\_ACEOF
5068 #define OBJ_MAYBE_BOUT 1
5069 _ACEOF
5071 coff)
5072 cat >>confdefs.h <<\_ACEOF
5073 #define OBJ_MAYBE_COFF 1
5074 _ACEOF
5076 ecoff)
5077 cat >>confdefs.h <<\_ACEOF
5078 #define OBJ_MAYBE_ECOFF 1
5079 _ACEOF
5081 elf)
5082 cat >>confdefs.h <<\_ACEOF
5083 #define OBJ_MAYBE_ELF 1
5084 _ACEOF
5086 generic)
5087 cat >>confdefs.h <<\_ACEOF
5088 #define OBJ_MAYBE_GENERIC 1
5089 _ACEOF
5091 ieee)
5092 cat >>confdefs.h <<\_ACEOF
5093 #define OBJ_MAYBE_IEEE 1
5094 _ACEOF
5096 som)
5097 cat >>confdefs.h <<\_ACEOF
5098 #define OBJ_MAYBE_SOM 1
5099 _ACEOF
5101 esac
5102 extra_objects="$extra_objects obj-$fmt.o"
5103 done
5104 obj_format=multi
5106 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
5107 DEFAULT_EMULATION=`set . $emulations ; echo $2`
5108 # e-mips* has more than one emulation per file, e-i386* has just one at the
5109 # moment. If only one emulation is specified, then don't define
5110 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5111 case "${obj_format}${emfiles}" in
5112 multi* | *mips*)
5113 extra_objects="$extra_objects $emfiles"
5115 cat >>confdefs.h <<\_ACEOF
5116 #define USE_EMULATIONS 1
5117 _ACEOF
5119 esac
5123 cat >>confdefs.h <<_ACEOF
5124 #define EMULATIONS $EMULATIONS
5125 _ACEOF
5128 cat >>confdefs.h <<_ACEOF
5129 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
5130 _ACEOF
5133 reject_dev_configs=yes
5135 case ${reject_dev_configs}-${dev} in
5136 yes-yes) # Oops.
5137 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5138 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5139 { (exit 1); exit 1; }; }
5141 esac
5149 # do we need the opcodes library?
5150 case "${need_opcodes}" in
5151 yes)
5152 OPCODES_LIB=../opcodes/libopcodes.la
5154 esac
5156 BFDLIB=../bfd/libbfd.la
5157 BFDVER_H=../bfd/bfdver.h
5158 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
5167 cat >>confdefs.h <<_ACEOF
5168 #define TARGET_ALIAS "${target_alias}"
5169 _ACEOF
5172 cat >>confdefs.h <<_ACEOF
5173 #define TARGET_CANONICAL "${target}"
5174 _ACEOF
5177 cat >>confdefs.h <<_ACEOF
5178 #define TARGET_CPU "${target_cpu}"
5179 _ACEOF
5182 cat >>confdefs.h <<_ACEOF
5183 #define TARGET_VENDOR "${target_vendor}"
5184 _ACEOF
5187 cat >>confdefs.h <<_ACEOF
5188 #define TARGET_OS "${target_os}"
5189 _ACEOF
5192 ac_ext=c
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197 if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_prog_CC+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 if test -n "$CC"; then
5206 ac_cv_prog_CC="$CC" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5224 CC=$ac_cv_prog_CC
5225 if test -n "$CC"; then
5226 echo "$as_me:$LINENO: result: $CC" >&5
5227 echo "${ECHO_T}$CC" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5234 if test -z "$ac_cv_prog_CC"; then
5235 ac_ct_CC=$CC
5236 # Extract the first word of "gcc", so it can be a program name with args.
5237 set dummy gcc; ac_word=$2
5238 echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 if test -n "$ac_ct_CC"; then
5244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_ac_ct_CC="gcc"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5263 if test -n "$ac_ct_CC"; then
5264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5265 echo "${ECHO_T}$ac_ct_CC" >&6
5266 else
5267 echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5271 CC=$ac_ct_CC
5272 else
5273 CC="$ac_cv_prog_CC"
5276 if test -z "$CC"; then
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}cc; ac_word=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_CC+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285 if test -n "$CC"; then
5286 ac_cv_prog_CC="$CC" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_CC="${ac_tool_prefix}cc"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5304 CC=$ac_cv_prog_CC
5305 if test -n "$CC"; then
5306 echo "$as_me:$LINENO: result: $CC" >&5
5307 echo "${ECHO_T}$CC" >&6
5308 else
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5314 if test -z "$ac_cv_prog_CC"; then
5315 ac_ct_CC=$CC
5316 # Extract the first word of "cc", so it can be a program name with args.
5317 set dummy cc; ac_word=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 if test -n "$ac_ct_CC"; then
5324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_CC="cc"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5343 if test -n "$ac_ct_CC"; then
5344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5345 echo "${ECHO_T}$ac_ct_CC" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5351 CC=$ac_ct_CC
5352 else
5353 CC="$ac_cv_prog_CC"
5357 if test -z "$CC"; then
5358 # Extract the first word of "cc", so it can be a program name with args.
5359 set dummy cc; ac_word=$2
5360 echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5362 if test "${ac_cv_prog_CC+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 if test -n "$CC"; then
5366 ac_cv_prog_CC="$CC" # Let the user override the test.
5367 else
5368 ac_prog_rejected=no
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5377 ac_prog_rejected=yes
5378 continue
5380 ac_cv_prog_CC="cc"
5381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5384 done
5385 done
5387 if test $ac_prog_rejected = yes; then
5388 # We found a bogon in the path, so make sure we never use it.
5389 set dummy $ac_cv_prog_CC
5390 shift
5391 if test $# != 0; then
5392 # We chose a different compiler from the bogus one.
5393 # However, it has the same basename, so the bogon will be chosen
5394 # first if we set CC to just the basename; use the full file name.
5395 shift
5396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5401 CC=$ac_cv_prog_CC
5402 if test -n "$CC"; then
5403 echo "$as_me:$LINENO: result: $CC" >&5
5404 echo "${ECHO_T}$CC" >&6
5405 else
5406 echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6
5411 if test -z "$CC"; then
5412 if test -n "$ac_tool_prefix"; then
5413 for ac_prog in cl
5415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5417 echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5419 if test "${ac_cv_prog_CC+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422 if test -n "$CC"; then
5423 ac_cv_prog_CC="$CC" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5441 CC=$ac_cv_prog_CC
5442 if test -n "$CC"; then
5443 echo "$as_me:$LINENO: result: $CC" >&5
5444 echo "${ECHO_T}$CC" >&6
5445 else
5446 echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6
5450 test -n "$CC" && break
5451 done
5453 if test -z "$CC"; then
5454 ac_ct_CC=$CC
5455 for ac_prog in cl
5457 # Extract the first word of "$ac_prog", so it can be a program name with args.
5458 set dummy $ac_prog; ac_word=$2
5459 echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 if test -n "$ac_ct_CC"; then
5465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_ac_ct_CC="$ac_prog"
5475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5478 done
5479 done
5483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5484 if test -n "$ac_ct_CC"; then
5485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5486 echo "${ECHO_T}$ac_ct_CC" >&6
5487 else
5488 echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6
5492 test -n "$ac_ct_CC" && break
5493 done
5495 CC=$ac_ct_CC
5501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5502 See \`config.log' for more details." >&5
5503 echo "$as_me: error: no acceptable C compiler found in \$PATH
5504 See \`config.log' for more details." >&2;}
5505 { (exit 1); exit 1; }; }
5507 # Provide some information about the compiler.
5508 echo "$as_me:$LINENO:" \
5509 "checking for C compiler version" >&5
5510 ac_compiler=`set X $ac_compile; echo $2`
5511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5512 (eval $ac_compiler --version </dev/null >&5) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }
5516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5517 (eval $ac_compiler -v </dev/null >&5) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }
5521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5522 (eval $ac_compiler -V </dev/null >&5) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }
5527 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5528 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532 cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h. */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5540 main ()
5542 #ifndef __GNUC__
5543 choke me
5544 #endif
5547 return 0;
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 ac_compiler_gnu=yes
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 ac_compiler_gnu=no
5579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5583 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5584 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5585 GCC=`test $ac_compiler_gnu = yes && echo yes`
5586 ac_test_CFLAGS=${CFLAGS+set}
5587 ac_save_CFLAGS=$CFLAGS
5588 CFLAGS="-g"
5589 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5591 if test "${ac_cv_prog_cc_g+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5602 main ()
5606 return 0;
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -z "$ac_c_werror_flag"
5619 || test ! -s conftest.err'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; } &&
5625 { ac_try='test -s conftest.$ac_objext'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; }; then
5631 ac_cv_prog_cc_g=yes
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 ac_cv_prog_cc_g=no
5638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5640 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5641 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5642 if test "$ac_test_CFLAGS" = set; then
5643 CFLAGS=$ac_save_CFLAGS
5644 elif test $ac_cv_prog_cc_g = yes; then
5645 if test "$GCC" = yes; then
5646 CFLAGS="-g -O2"
5647 else
5648 CFLAGS="-g"
5650 else
5651 if test "$GCC" = yes; then
5652 CFLAGS="-O2"
5653 else
5654 CFLAGS=
5657 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5658 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5659 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662 ac_cv_prog_cc_stdc=no
5663 ac_save_CC=$CC
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <stdarg.h>
5671 #include <stdio.h>
5672 #include <sys/types.h>
5673 #include <sys/stat.h>
5674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5675 struct buf { int x; };
5676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5677 static char *e (p, i)
5678 char **p;
5679 int i;
5681 return p[i];
5683 static char *f (char * (*g) (char **, int), char **p, ...)
5685 char *s;
5686 va_list v;
5687 va_start (v,p);
5688 s = g (p, va_arg (v,int));
5689 va_end (v);
5690 return s;
5693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5694 function prototypes and stuff, but not '\xHH' hex character constants.
5695 These don't provoke an error unfortunately, instead are silently treated
5696 as 'x'. The following induces an error, until -std1 is added to get
5697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5698 array size at least. It's necessary to write '\x00'==0 to get something
5699 that's true only with -std1. */
5700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5702 int test (int i, double x);
5703 struct s1 {int (*f) (int a);};
5704 struct s2 {int (*f) (double a);};
5705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5706 int argc;
5707 char **argv;
5709 main ()
5711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5713 return 0;
5715 _ACEOF
5716 # Don't try gcc -ansi; that turns off useful extensions and
5717 # breaks some systems' header files.
5718 # AIX -qlanglvl=ansi
5719 # Ultrix and OSF/1 -std1
5720 # HP-UX 10.20 and later -Ae
5721 # HP-UX older versions -Aa -D_HPUX_SOURCE
5722 # SVR4 -Xc -D__EXTENSIONS__
5723 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5725 CC="$ac_save_CC $ac_arg"
5726 rm -f conftest.$ac_objext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_prog_cc_stdc=$ac_arg
5749 break
5750 else
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5755 rm -f conftest.err conftest.$ac_objext
5756 done
5757 rm -f conftest.$ac_ext conftest.$ac_objext
5758 CC=$ac_save_CC
5762 case "x$ac_cv_prog_cc_stdc" in
5763 x|xno)
5764 echo "$as_me:$LINENO: result: none needed" >&5
5765 echo "${ECHO_T}none needed" >&6 ;;
5767 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5768 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5769 CC="$CC $ac_cv_prog_cc_stdc" ;;
5770 esac
5772 # Some people use a C++ compiler to compile C. Since we use `exit',
5773 # in C++ we need to declare it. In case someone uses the same compiler
5774 # for both compiling C and C++ we need to have the C++ compiler decide
5775 # the declaration of exit, since it's the most demanding environment.
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #ifndef __cplusplus
5778 choke me
5779 #endif
5780 _ACEOF
5781 rm -f conftest.$ac_objext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_c_werror_flag"
5791 || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 for ac_declaration in \
5804 '' \
5805 'extern "C" void std::exit (int) throw (); using std::exit;' \
5806 'extern "C" void std::exit (int); using std::exit;' \
5807 'extern "C" void exit (int) throw ();' \
5808 'extern "C" void exit (int);' \
5809 'void exit (int);'
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_declaration
5818 #include <stdlib.h>
5820 main ()
5822 exit (42);
5824 return 0;
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829 (eval $ac_compile) 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest.$ac_objext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5850 else
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 continue
5856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 $ac_declaration
5865 main ()
5867 exit (42);
5869 return 0;
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 break
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5901 done
5902 rm -f conftest*
5903 if test -n "$ac_declaration"; then
5904 echo '#ifdef __cplusplus' >>confdefs.h
5905 echo $ac_declaration >>confdefs.h
5906 echo '#endif' >>confdefs.h
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5915 ac_ext=c
5916 ac_cpp='$CPP $CPPFLAGS'
5917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5922 for ac_prog in 'bison -y' byacc
5924 # Extract the first word of "$ac_prog", so it can be a program name with args.
5925 set dummy $ac_prog; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_YACC+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 if test -n "$YACC"; then
5932 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_YACC="$ac_prog"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5945 done
5946 done
5950 YACC=$ac_cv_prog_YACC
5951 if test -n "$YACC"; then
5952 echo "$as_me:$LINENO: result: $YACC" >&5
5953 echo "${ECHO_T}$YACC" >&6
5954 else
5955 echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5959 test -n "$YACC" && break
5960 done
5961 test -n "$YACC" || YACC="yacc"
5963 for ac_prog in flex lex
5965 # Extract the first word of "$ac_prog", so it can be a program name with args.
5966 set dummy $ac_prog; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_LEX+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 if test -n "$LEX"; then
5973 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_LEX="$ac_prog"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5986 done
5987 done
5991 LEX=$ac_cv_prog_LEX
5992 if test -n "$LEX"; then
5993 echo "$as_me:$LINENO: result: $LEX" >&5
5994 echo "${ECHO_T}$LEX" >&6
5995 else
5996 echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6
6000 test -n "$LEX" && break
6001 done
6002 test -n "$LEX" || LEX=":"
6004 if test -z "$LEXLIB"
6005 then
6006 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6007 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
6008 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011 ac_check_lib_save_LIBS=$LIBS
6012 LIBS="-lfl $LIBS"
6013 cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h. */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6020 /* Override any gcc2 internal prototype to avoid an error. */
6021 #ifdef __cplusplus
6022 extern "C"
6023 #endif
6024 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */
6026 char yywrap ();
6028 main ()
6030 yywrap ();
6032 return 0;
6034 _ACEOF
6035 rm -f conftest.$ac_objext conftest$ac_exeext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6037 (eval $ac_link) 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag"
6045 || test ! -s conftest.err'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; } &&
6051 { ac_try='test -s conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_lib_fl_yywrap=yes
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 ac_cv_lib_fl_yywrap=no
6064 rm -f conftest.err conftest.$ac_objext \
6065 conftest$ac_exeext conftest.$ac_ext
6066 LIBS=$ac_check_lib_save_LIBS
6068 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6069 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6070 if test $ac_cv_lib_fl_yywrap = yes; then
6071 LEXLIB="-lfl"
6072 else
6073 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6074 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6075 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078 ac_check_lib_save_LIBS=$LIBS
6079 LIBS="-ll $LIBS"
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6087 /* Override any gcc2 internal prototype to avoid an error. */
6088 #ifdef __cplusplus
6089 extern "C"
6090 #endif
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6093 char yywrap ();
6095 main ()
6097 yywrap ();
6099 return 0;
6101 _ACEOF
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -z "$ac_c_werror_flag"
6112 || test ! -s conftest.err'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_lib_l_yywrap=yes
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6129 ac_cv_lib_l_yywrap=no
6131 rm -f conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133 LIBS=$ac_check_lib_save_LIBS
6135 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6136 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6137 if test $ac_cv_lib_l_yywrap = yes; then
6138 LEXLIB="-ll"
6145 if test "x$LEX" != "x:"; then
6146 echo "$as_me:$LINENO: checking lex output file root" >&5
6147 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6148 if test "${ac_cv_prog_lex_root+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151 # The minimal lex program is just a single line: %%. But some broken lexes
6152 # (Solaris, I think it was) want two %% lines, so accommodate them.
6153 cat >conftest.l <<_ACEOF
6156 _ACEOF
6157 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6158 (eval $LEX conftest.l) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }
6162 if test -f lex.yy.c; then
6163 ac_cv_prog_lex_root=lex.yy
6164 elif test -f lexyy.c; then
6165 ac_cv_prog_lex_root=lexyy
6166 else
6167 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6168 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6169 { (exit 1); exit 1; }; }
6172 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6173 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6174 rm -f conftest.l
6175 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6177 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6178 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6179 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182 # POSIX says lex can declare yytext either as a pointer or an array; the
6183 # default is implementation-dependent. Figure out which it is, since
6184 # not all implementations provide the %pointer and %array declarations.
6185 ac_cv_prog_lex_yytext_pointer=no
6186 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6187 ac_save_LIBS=$LIBS
6188 LIBS="$LIBS $LEXLIB"
6189 cat >conftest.$ac_ext <<_ACEOF
6190 `cat $LEX_OUTPUT_ROOT.c`
6191 _ACEOF
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194 (eval $ac_link) 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } &&
6201 { ac_try='test -z "$ac_c_werror_flag"
6202 || test ! -s conftest.err'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; } &&
6208 { ac_try='test -s conftest$ac_exeext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_cv_prog_lex_yytext_pointer=yes
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6220 rm -f conftest.err conftest.$ac_objext \
6221 conftest$ac_exeext conftest.$ac_ext
6222 LIBS=$ac_save_LIBS
6223 rm -f "${LEX_OUTPUT_ROOT}.c"
6226 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6227 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6228 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6230 cat >>confdefs.h <<\_ACEOF
6231 #define YYTEXT_POINTER 1
6232 _ACEOF
6237 if test "$LEX" = :; then
6238 LEX=${am_missing_run}flex
6241 ALL_LINGUAS="fr tr es rw"
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6245 echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6247 if test "${ac_cv_prog_RANLIB+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 if test -n "$RANLIB"; then
6251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6264 done
6265 done
6269 RANLIB=$ac_cv_prog_RANLIB
6270 if test -n "$RANLIB"; then
6271 echo "$as_me:$LINENO: result: $RANLIB" >&5
6272 echo "${ECHO_T}$RANLIB" >&6
6273 else
6274 echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6
6279 if test -z "$ac_cv_prog_RANLIB"; then
6280 ac_ct_RANLIB=$RANLIB
6281 # Extract the first word of "ranlib", so it can be a program name with args.
6282 set dummy ranlib; ac_word=$2
6283 echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 if test -n "$ac_ct_RANLIB"; then
6289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_ac_ct_RANLIB="ranlib"
6299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6302 done
6303 done
6305 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6309 if test -n "$ac_ct_RANLIB"; then
6310 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6311 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314 echo "${ECHO_T}no" >&6
6317 RANLIB=$ac_ct_RANLIB
6318 else
6319 RANLIB="$ac_cv_prog_RANLIB"
6322 ac_ext=c
6323 ac_cpp='$CPP $CPPFLAGS'
6324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6328 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6329 # On Suns, sometimes $CPP names a directory.
6330 if test -n "$CPP" && test -d "$CPP"; then
6331 CPP=
6333 if test -z "$CPP"; then
6334 if test "${ac_cv_prog_CPP+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 # Double quotes because CPP needs to be expanded
6338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6340 ac_preproc_ok=false
6341 for ac_c_preproc_warn_flag in '' yes
6343 # Use a header file that comes with gcc, so configuring glibc
6344 # with a fresh cross-compiler works.
6345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6346 # <limits.h> exists even on freestanding compilers.
6347 # On the NeXT, cc -E runs the code through the compiler's parser,
6348 # not just through cpp. "Syntax error" is here to catch this case.
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #ifdef __STDC__
6356 # include <limits.h>
6357 #else
6358 # include <assert.h>
6359 #endif
6360 Syntax error
6361 _ACEOF
6362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6364 ac_status=$?
6365 grep -v '^ *+' conftest.er1 >conftest.err
6366 rm -f conftest.er1
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } >/dev/null; then
6370 if test -s conftest.err; then
6371 ac_cpp_err=$ac_c_preproc_warn_flag
6372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6373 else
6374 ac_cpp_err=
6376 else
6377 ac_cpp_err=yes
6379 if test -z "$ac_cpp_err"; then
6381 else
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6385 # Broken: fails on valid input.
6386 continue
6388 rm -f conftest.err conftest.$ac_ext
6390 # OK, works on sane cases. Now check whether non-existent headers
6391 # can be detected and how.
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h. */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 #include <ac_nonexistent.h>
6399 _ACEOF
6400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } >/dev/null; then
6408 if test -s conftest.err; then
6409 ac_cpp_err=$ac_c_preproc_warn_flag
6410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6411 else
6412 ac_cpp_err=
6414 else
6415 ac_cpp_err=yes
6417 if test -z "$ac_cpp_err"; then
6418 # Broken: success on invalid input.
6419 continue
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 # Passes both tests.
6425 ac_preproc_ok=:
6426 break
6428 rm -f conftest.err conftest.$ac_ext
6430 done
6431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6432 rm -f conftest.err conftest.$ac_ext
6433 if $ac_preproc_ok; then
6434 break
6437 done
6438 ac_cv_prog_CPP=$CPP
6441 CPP=$ac_cv_prog_CPP
6442 else
6443 ac_cv_prog_CPP=$CPP
6445 echo "$as_me:$LINENO: result: $CPP" >&5
6446 echo "${ECHO_T}$CPP" >&6
6447 ac_preproc_ok=false
6448 for ac_c_preproc_warn_flag in '' yes
6450 # Use a header file that comes with gcc, so configuring glibc
6451 # with a fresh cross-compiler works.
6452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6453 # <limits.h> exists even on freestanding compilers.
6454 # On the NeXT, cc -E runs the code through the compiler's parser,
6455 # not just through cpp. "Syntax error" is here to catch this case.
6456 cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h. */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 #ifdef __STDC__
6463 # include <limits.h>
6464 #else
6465 # include <assert.h>
6466 #endif
6467 Syntax error
6468 _ACEOF
6469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } >/dev/null; then
6477 if test -s conftest.err; then
6478 ac_cpp_err=$ac_c_preproc_warn_flag
6479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6480 else
6481 ac_cpp_err=
6483 else
6484 ac_cpp_err=yes
6486 if test -z "$ac_cpp_err"; then
6488 else
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 # Broken: fails on valid input.
6493 continue
6495 rm -f conftest.err conftest.$ac_ext
6497 # OK, works on sane cases. Now check whether non-existent headers
6498 # can be detected and how.
6499 cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h. */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 #include <ac_nonexistent.h>
6506 _ACEOF
6507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } >/dev/null; then
6515 if test -s conftest.err; then
6516 ac_cpp_err=$ac_c_preproc_warn_flag
6517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6518 else
6519 ac_cpp_err=
6521 else
6522 ac_cpp_err=yes
6524 if test -z "$ac_cpp_err"; then
6525 # Broken: success on invalid input.
6526 continue
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 # Passes both tests.
6532 ac_preproc_ok=:
6533 break
6535 rm -f conftest.err conftest.$ac_ext
6537 done
6538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6539 rm -f conftest.err conftest.$ac_ext
6540 if $ac_preproc_ok; then
6542 else
6543 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6544 See \`config.log' for more details." >&5
6545 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6546 See \`config.log' for more details." >&2;}
6547 { (exit 1); exit 1; }; }
6550 ac_ext=c
6551 ac_cpp='$CPP $CPPFLAGS'
6552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557 echo "$as_me:$LINENO: checking for egrep" >&5
6558 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6559 if test "${ac_cv_prog_egrep+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6563 then ac_cv_prog_egrep='grep -E'
6564 else ac_cv_prog_egrep='egrep'
6567 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6568 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6569 EGREP=$ac_cv_prog_egrep
6572 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6573 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6574 if test "${ac_cv_header_stdc+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 #include <stdlib.h>
6584 #include <stdarg.h>
6585 #include <string.h>
6586 #include <float.h>
6589 main ()
6593 return 0;
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest.$ac_objext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_header_stdc=yes
6619 else
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 ac_cv_header_stdc=no
6625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6627 if test $ac_cv_header_stdc = yes; then
6628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 #include <string.h>
6637 _ACEOF
6638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6639 $EGREP "memchr" >/dev/null 2>&1; then
6641 else
6642 ac_cv_header_stdc=no
6644 rm -f conftest*
6648 if test $ac_cv_header_stdc = yes; then
6649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <stdlib.h>
6658 _ACEOF
6659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6660 $EGREP "free" >/dev/null 2>&1; then
6662 else
6663 ac_cv_header_stdc=no
6665 rm -f conftest*
6669 if test $ac_cv_header_stdc = yes; then
6670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6671 if test "$cross_compiling" = yes; then
6673 else
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <ctype.h>
6681 #if ((' ' & 0x0FF) == 0x020)
6682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6684 #else
6685 # define ISLOWER(c) \
6686 (('a' <= (c) && (c) <= 'i') \
6687 || ('j' <= (c) && (c) <= 'r') \
6688 || ('s' <= (c) && (c) <= 'z'))
6689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6690 #endif
6692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6694 main ()
6696 int i;
6697 for (i = 0; i < 256; i++)
6698 if (XOR (islower (i), ISLOWER (i))
6699 || toupper (i) != TOUPPER (i))
6700 exit(2);
6701 exit (0);
6703 _ACEOF
6704 rm -f conftest$ac_exeext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6706 (eval $ac_link) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6716 else
6717 echo "$as_me: program exited with status $ac_status" >&5
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ( exit $ac_status )
6722 ac_cv_header_stdc=no
6724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6730 if test $ac_cv_header_stdc = yes; then
6732 cat >>confdefs.h <<\_ACEOF
6733 #define STDC_HEADERS 1
6734 _ACEOF
6738 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6739 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6740 if test "${ac_cv_c_const+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 cat >conftest.$ac_ext <<_ACEOF
6744 /* confdefs.h. */
6745 _ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6751 main ()
6753 /* FIXME: Include the comments suggested by Paul. */
6754 #ifndef __cplusplus
6755 /* Ultrix mips cc rejects this. */
6756 typedef int charset[2];
6757 const charset x;
6758 /* SunOS 4.1.1 cc rejects this. */
6759 char const *const *ccp;
6760 char **p;
6761 /* NEC SVR4.0.2 mips cc rejects this. */
6762 struct point {int x, y;};
6763 static struct point const zero = {0,0};
6764 /* AIX XL C 1.02.0.0 rejects this.
6765 It does not let you subtract one const X* pointer from another in
6766 an arm of an if-expression whose if-part is not a constant
6767 expression */
6768 const char *g = "string";
6769 ccp = &g + (g ? g-g : 0);
6770 /* HPUX 7.0 cc rejects these. */
6771 ++ccp;
6772 p = (char**) ccp;
6773 ccp = (char const *const *) p;
6774 { /* SCO 3.2v4 cc rejects this. */
6775 char *t;
6776 char const *s = 0 ? (char *) 0 : (char const *) 0;
6778 *t++ = 0;
6780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6781 int x[] = {25, 17};
6782 const int *foo = &x[0];
6783 ++foo;
6785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6786 typedef const int *iptr;
6787 iptr p = 0;
6788 ++p;
6790 { /* AIX XL C 1.02.0.0 rejects this saying
6791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6792 struct s { int j; const int *ap[3]; };
6793 struct s *b; b->j = 5;
6795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6796 const int foo = 10;
6798 #endif
6801 return 0;
6803 _ACEOF
6804 rm -f conftest.$ac_objext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6806 (eval $ac_compile) 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -z "$ac_c_werror_flag"
6814 || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest.$ac_objext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_cv_c_const=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_c_const=no
6833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6835 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6836 echo "${ECHO_T}$ac_cv_c_const" >&6
6837 if test $ac_cv_c_const = no; then
6839 cat >>confdefs.h <<\_ACEOF
6840 #define const
6841 _ACEOF
6845 echo "$as_me:$LINENO: checking for inline" >&5
6846 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6847 if test "${ac_cv_c_inline+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 ac_cv_c_inline=no
6851 for ac_kw in inline __inline__ __inline; do
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #ifndef __cplusplus
6859 typedef int foo_t;
6860 static $ac_kw foo_t static_foo () {return 0; }
6861 $ac_kw foo_t foo () {return 0; }
6862 #endif
6864 _ACEOF
6865 rm -f conftest.$ac_objext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867 (eval $ac_compile) 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try='test -z "$ac_c_werror_flag"
6875 || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try='test -s conftest.$ac_objext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_c_inline=$ac_kw; break
6888 else
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6894 done
6897 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6898 echo "${ECHO_T}$ac_cv_c_inline" >&6
6901 case $ac_cv_c_inline in
6902 inline | yes) ;;
6904 case $ac_cv_c_inline in
6905 no) ac_val=;;
6906 *) ac_val=$ac_cv_c_inline;;
6907 esac
6908 cat >>confdefs.h <<_ACEOF
6909 #ifndef __cplusplus
6910 #define inline $ac_val
6911 #endif
6912 _ACEOF
6914 esac
6916 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6926 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6927 inttypes.h stdint.h unistd.h
6929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6930 echo "$as_me:$LINENO: checking for $ac_header" >&5
6931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935 cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h. */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 $ac_includes_default
6943 #include <$ac_header>
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest.$ac_objext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 eval "$as_ac_Header=yes"
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 eval "$as_ac_Header=no"
6974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6979 cat >>confdefs.h <<_ACEOF
6980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6981 _ACEOF
6985 done
6988 echo "$as_me:$LINENO: checking for off_t" >&5
6989 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6990 if test "${ac_cv_type_off_t+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 $ac_includes_default
7001 main ()
7003 if ((off_t *) 0)
7004 return 0;
7005 if (sizeof (off_t))
7006 return 0;
7008 return 0;
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest.$ac_objext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 ac_cv_type_off_t=yes
7034 else
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 ac_cv_type_off_t=no
7040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7043 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7044 if test $ac_cv_type_off_t = yes; then
7046 else
7048 cat >>confdefs.h <<_ACEOF
7049 #define off_t long
7050 _ACEOF
7054 echo "$as_me:$LINENO: checking for size_t" >&5
7055 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7056 if test "${ac_cv_type_size_t+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 $ac_includes_default
7067 main ()
7069 if ((size_t *) 0)
7070 return 0;
7071 if (sizeof (size_t))
7072 return 0;
7074 return 0;
7076 _ACEOF
7077 rm -f conftest.$ac_objext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -z "$ac_c_werror_flag"
7087 || test ! -s conftest.err'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 (eval $ac_try) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; } &&
7093 { ac_try='test -s conftest.$ac_objext'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 (eval $ac_try) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 ac_cv_type_size_t=yes
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ac_cv_type_size_t=no
7106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7108 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7109 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7110 if test $ac_cv_type_size_t = yes; then
7112 else
7114 cat >>confdefs.h <<_ACEOF
7115 #define size_t unsigned
7116 _ACEOF
7120 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7121 # for constant arguments. Useless!
7122 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7123 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7124 if test "${ac_cv_working_alloca_h+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127 cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h. */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7133 #include <alloca.h>
7135 main ()
7137 char *p = (char *) alloca (2 * sizeof (int));
7139 return 0;
7141 _ACEOF
7142 rm -f conftest.$ac_objext conftest$ac_exeext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144 (eval $ac_link) 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -z "$ac_c_werror_flag"
7152 || test ! -s conftest.err'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 (eval $ac_try) 2>&5
7155 ac_status=$?
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; } &&
7158 { ac_try='test -s conftest$ac_exeext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_cv_working_alloca_h=yes
7165 else
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 ac_cv_working_alloca_h=no
7171 rm -f conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7174 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7175 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7176 if test $ac_cv_working_alloca_h = yes; then
7178 cat >>confdefs.h <<\_ACEOF
7179 #define HAVE_ALLOCA_H 1
7180 _ACEOF
7184 echo "$as_me:$LINENO: checking for alloca" >&5
7185 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7186 if test "${ac_cv_func_alloca_works+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h. */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 #ifdef __GNUC__
7196 # define alloca __builtin_alloca
7197 #else
7198 # ifdef _MSC_VER
7199 # include <malloc.h>
7200 # define alloca _alloca
7201 # else
7202 # if HAVE_ALLOCA_H
7203 # include <alloca.h>
7204 # else
7205 # ifdef _AIX
7206 #pragma alloca
7207 # else
7208 # ifndef alloca /* predefined by HP cc +Olibcalls */
7209 char *alloca ();
7210 # endif
7211 # endif
7212 # endif
7213 # endif
7214 #endif
7217 main ()
7219 char *p = (char *) alloca (1);
7221 return 0;
7223 _ACEOF
7224 rm -f conftest.$ac_objext conftest$ac_exeext
7225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7226 (eval $ac_link) 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } &&
7233 { ac_try='test -z "$ac_c_werror_flag"
7234 || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 (eval $ac_try) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_func_alloca_works=yes
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ac_cv_func_alloca_works=no
7253 rm -f conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7256 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7257 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7259 if test $ac_cv_func_alloca_works = yes; then
7261 cat >>confdefs.h <<\_ACEOF
7262 #define HAVE_ALLOCA 1
7263 _ACEOF
7265 else
7266 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7267 # that cause trouble. Some versions do not even contain alloca or
7268 # contain a buggy version. If you still want to use their alloca,
7269 # use ar to extract alloca.o from them instead of compiling alloca.c.
7271 ALLOCA=alloca.$ac_objext
7273 cat >>confdefs.h <<\_ACEOF
7274 #define C_ALLOCA 1
7275 _ACEOF
7278 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7279 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7280 if test "${ac_cv_os_cray+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 #if defined(CRAY) && ! defined(CRAY2)
7290 webecray
7291 #else
7292 wenotbecray
7293 #endif
7295 _ACEOF
7296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7297 $EGREP "webecray" >/dev/null 2>&1; then
7298 ac_cv_os_cray=yes
7299 else
7300 ac_cv_os_cray=no
7302 rm -f conftest*
7305 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7306 echo "${ECHO_T}$ac_cv_os_cray" >&6
7307 if test $ac_cv_os_cray = yes; then
7308 for ac_func in _getb67 GETB67 getb67; do
7309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7310 echo "$as_me:$LINENO: checking for $ac_func" >&5
7311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7312 if eval "test \"\${$as_ac_var+set}\" = set"; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7323 #define $ac_func innocuous_$ac_func
7325 /* System header to define __stub macros and hopefully few prototypes,
7326 which can conflict with char $ac_func (); below.
7327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7328 <limits.h> exists even on freestanding compilers. */
7330 #ifdef __STDC__
7331 # include <limits.h>
7332 #else
7333 # include <assert.h>
7334 #endif
7336 #undef $ac_func
7338 /* Override any gcc2 internal prototype to avoid an error. */
7339 #ifdef __cplusplus
7340 extern "C"
7342 #endif
7343 /* We use char because int might match the return type of a gcc2
7344 builtin and then its argument prototype would still apply. */
7345 char $ac_func ();
7346 /* The GNU C library defines this for functions which it implements
7347 to always fail with ENOSYS. Some functions are actually named
7348 something starting with __ and the normal name is an alias. */
7349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7350 choke me
7351 #else
7352 char (*f) () = $ac_func;
7353 #endif
7354 #ifdef __cplusplus
7356 #endif
7359 main ()
7361 return f != $ac_func;
7363 return 0;
7365 _ACEOF
7366 rm -f conftest.$ac_objext conftest$ac_exeext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7368 (eval $ac_link) 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try='test -z "$ac_c_werror_flag"
7376 || test ! -s conftest.err'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 (eval $ac_try) 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try='test -s conftest$ac_exeext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 (eval $ac_try) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7388 eval "$as_ac_var=yes"
7389 else
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7393 eval "$as_ac_var=no"
7395 rm -f conftest.err conftest.$ac_objext \
7396 conftest$ac_exeext conftest.$ac_ext
7398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7400 if test `eval echo '${'$as_ac_var'}'` = yes; then
7402 cat >>confdefs.h <<_ACEOF
7403 #define CRAY_STACKSEG_END $ac_func
7404 _ACEOF
7406 break
7409 done
7412 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7413 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7414 if test "${ac_cv_c_stack_direction+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 if test "$cross_compiling" = yes; then
7418 ac_cv_c_stack_direction=0
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7427 find_stack_direction ()
7429 static char *addr = 0;
7430 auto char dummy;
7431 if (addr == 0)
7433 addr = &dummy;
7434 return find_stack_direction ();
7436 else
7437 return (&dummy > addr) ? 1 : -1;
7441 main ()
7443 exit (find_stack_direction () < 0);
7445 _ACEOF
7446 rm -f conftest$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_c_stack_direction=1
7458 else
7459 echo "$as_me: program exited with status $ac_status" >&5
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 ( exit $ac_status )
7464 ac_cv_c_stack_direction=-1
7466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7469 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7470 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7472 cat >>confdefs.h <<_ACEOF
7473 #define STACK_DIRECTION $ac_cv_c_stack_direction
7474 _ACEOF
7481 for ac_header in stdlib.h unistd.h
7483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7485 echo "$as_me:$LINENO: checking for $ac_header" >&5
7486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7492 else
7493 # Is the header compilable?
7494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h. */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 $ac_includes_default
7503 #include <$ac_header>
7504 _ACEOF
7505 rm -f conftest.$ac_objext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -z "$ac_c_werror_flag"
7515 || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest.$ac_objext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 ac_header_compiler=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 ac_header_compiler=no
7534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7536 echo "${ECHO_T}$ac_header_compiler" >&6
7538 # Is the header present?
7539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 #include <$ac_header>
7548 _ACEOF
7549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } >/dev/null; then
7557 if test -s conftest.err; then
7558 ac_cpp_err=$ac_c_preproc_warn_flag
7559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7560 else
7561 ac_cpp_err=
7563 else
7564 ac_cpp_err=yes
7566 if test -z "$ac_cpp_err"; then
7567 ac_header_preproc=yes
7568 else
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 ac_header_preproc=no
7574 rm -f conftest.err conftest.$ac_ext
7575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7576 echo "${ECHO_T}$ac_header_preproc" >&6
7578 # So? What about this header?
7579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7580 yes:no: )
7581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7585 ac_header_preproc=yes
7587 no:yes:* )
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7601 cat <<\_ASBOX
7602 ## ------------------------------------------ ##
7603 ## Report this to the AC_PACKAGE_NAME lists. ##
7604 ## ------------------------------------------ ##
7605 _ASBOX
7607 sed "s/^/$as_me: WARNING: /" >&2
7609 esac
7610 echo "$as_me:$LINENO: checking for $ac_header" >&5
7611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 eval "$as_ac_Header=\$ac_header_preproc"
7617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7622 cat >>confdefs.h <<_ACEOF
7623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7624 _ACEOF
7628 done
7631 for ac_func in getpagesize
7633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7634 echo "$as_me:$LINENO: checking for $ac_func" >&5
7635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7636 if eval "test \"\${$as_ac_var+set}\" = set"; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h. */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7647 #define $ac_func innocuous_$ac_func
7649 /* System header to define __stub macros and hopefully few prototypes,
7650 which can conflict with char $ac_func (); below.
7651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7652 <limits.h> exists even on freestanding compilers. */
7654 #ifdef __STDC__
7655 # include <limits.h>
7656 #else
7657 # include <assert.h>
7658 #endif
7660 #undef $ac_func
7662 /* Override any gcc2 internal prototype to avoid an error. */
7663 #ifdef __cplusplus
7664 extern "C"
7666 #endif
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7669 char $ac_func ();
7670 /* The GNU C library defines this for functions which it implements
7671 to always fail with ENOSYS. Some functions are actually named
7672 something starting with __ and the normal name is an alias. */
7673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7674 choke me
7675 #else
7676 char (*f) () = $ac_func;
7677 #endif
7678 #ifdef __cplusplus
7680 #endif
7683 main ()
7685 return f != $ac_func;
7687 return 0;
7689 _ACEOF
7690 rm -f conftest.$ac_objext conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692 (eval $ac_link) 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -z "$ac_c_werror_flag"
7700 || test ! -s conftest.err'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 (eval $ac_try) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; } &&
7706 { ac_try='test -s conftest$ac_exeext'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 eval "$as_ac_var=yes"
7713 else
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 eval "$as_ac_var=no"
7719 rm -f conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7724 if test `eval echo '${'$as_ac_var'}'` = yes; then
7725 cat >>confdefs.h <<_ACEOF
7726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7727 _ACEOF
7730 done
7732 echo "$as_me:$LINENO: checking for working mmap" >&5
7733 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7734 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737 if test "$cross_compiling" = yes; then
7738 ac_cv_func_mmap_fixed_mapped=no
7739 else
7740 cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h. */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 $ac_includes_default
7747 /* malloc might have been renamed as rpl_malloc. */
7748 #undef malloc
7750 /* Thanks to Mike Haertel and Jim Avera for this test.
7751 Here is a matrix of mmap possibilities:
7752 mmap private not fixed
7753 mmap private fixed at somewhere currently unmapped
7754 mmap private fixed at somewhere already mapped
7755 mmap shared not fixed
7756 mmap shared fixed at somewhere currently unmapped
7757 mmap shared fixed at somewhere already mapped
7758 For private mappings, we should verify that changes cannot be read()
7759 back from the file, nor mmap's back from the file at a different
7760 address. (There have been systems where private was not correctly
7761 implemented like the infamous i386 svr4.0, and systems where the
7762 VM page cache was not coherent with the file system buffer cache
7763 like early versions of FreeBSD and possibly contemporary NetBSD.)
7764 For shared mappings, we should conversely verify that changes get
7765 propagated back to all the places they're supposed to be.
7767 Grep wants private fixed already mapped.
7768 The main things grep needs to know about mmap are:
7769 * does it exist and is it safe to write into the mmap'd area
7770 * how to use it (BSD variants) */
7772 #include <fcntl.h>
7773 #include <sys/mman.h>
7775 #if !STDC_HEADERS && !HAVE_STDLIB_H
7776 char *malloc ();
7777 #endif
7779 /* This mess was copied from the GNU getpagesize.h. */
7780 #if !HAVE_GETPAGESIZE
7781 /* Assume that all systems that can run configure have sys/param.h. */
7782 # if !HAVE_SYS_PARAM_H
7783 # define HAVE_SYS_PARAM_H 1
7784 # endif
7786 # ifdef _SC_PAGESIZE
7787 # define getpagesize() sysconf(_SC_PAGESIZE)
7788 # else /* no _SC_PAGESIZE */
7789 # if HAVE_SYS_PARAM_H
7790 # include <sys/param.h>
7791 # ifdef EXEC_PAGESIZE
7792 # define getpagesize() EXEC_PAGESIZE
7793 # else /* no EXEC_PAGESIZE */
7794 # ifdef NBPG
7795 # define getpagesize() NBPG * CLSIZE
7796 # ifndef CLSIZE
7797 # define CLSIZE 1
7798 # endif /* no CLSIZE */
7799 # else /* no NBPG */
7800 # ifdef NBPC
7801 # define getpagesize() NBPC
7802 # else /* no NBPC */
7803 # ifdef PAGESIZE
7804 # define getpagesize() PAGESIZE
7805 # endif /* PAGESIZE */
7806 # endif /* no NBPC */
7807 # endif /* no NBPG */
7808 # endif /* no EXEC_PAGESIZE */
7809 # else /* no HAVE_SYS_PARAM_H */
7810 # define getpagesize() 8192 /* punt totally */
7811 # endif /* no HAVE_SYS_PARAM_H */
7812 # endif /* no _SC_PAGESIZE */
7814 #endif /* no HAVE_GETPAGESIZE */
7817 main ()
7819 char *data, *data2, *data3;
7820 int i, pagesize;
7821 int fd;
7823 pagesize = getpagesize ();
7825 /* First, make a file with some known garbage in it. */
7826 data = (char *) malloc (pagesize);
7827 if (!data)
7828 exit (1);
7829 for (i = 0; i < pagesize; ++i)
7830 *(data + i) = rand ();
7831 umask (0);
7832 fd = creat ("conftest.mmap", 0600);
7833 if (fd < 0)
7834 exit (1);
7835 if (write (fd, data, pagesize) != pagesize)
7836 exit (1);
7837 close (fd);
7839 /* Next, try to mmap the file at a fixed address which already has
7840 something else allocated at it. If we can, also make sure that
7841 we see the same garbage. */
7842 fd = open ("conftest.mmap", O_RDWR);
7843 if (fd < 0)
7844 exit (1);
7845 data2 = (char *) malloc (2 * pagesize);
7846 if (!data2)
7847 exit (1);
7848 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7849 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7850 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7851 exit (1);
7852 for (i = 0; i < pagesize; ++i)
7853 if (*(data + i) != *(data2 + i))
7854 exit (1);
7856 /* Finally, make sure that changes to the mapped area do not
7857 percolate back to the file as seen by read(). (This is a bug on
7858 some variants of i386 svr4.0.) */
7859 for (i = 0; i < pagesize; ++i)
7860 *(data2 + i) = *(data2 + i) + 1;
7861 data3 = (char *) malloc (pagesize);
7862 if (!data3)
7863 exit (1);
7864 if (read (fd, data3, pagesize) != pagesize)
7865 exit (1);
7866 for (i = 0; i < pagesize; ++i)
7867 if (*(data + i) != *(data3 + i))
7868 exit (1);
7869 close (fd);
7870 exit (0);
7872 _ACEOF
7873 rm -f conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_func_mmap_fixed_mapped=yes
7885 else
7886 echo "$as_me: program exited with status $ac_status" >&5
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ( exit $ac_status )
7891 ac_cv_func_mmap_fixed_mapped=no
7893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7896 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7897 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7898 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7900 cat >>confdefs.h <<\_ACEOF
7901 #define HAVE_MMAP 1
7902 _ACEOF
7905 rm -f conftest.mmap
7917 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7918 unistd.h values.h sys/param.h
7920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922 echo "$as_me:$LINENO: checking for $ac_header" >&5
7923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929 else
7930 # Is the header compilable?
7931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h. */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7939 $ac_includes_default
7940 #include <$ac_header>
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944 (eval $ac_compile) 2>conftest.er1
7945 ac_status=$?
7946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } &&
7951 { ac_try='test -z "$ac_c_werror_flag"
7952 || test ! -s conftest.err'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 (eval $ac_try) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; } &&
7958 { ac_try='test -s conftest.$ac_objext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 ac_header_compiler=yes
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 ac_header_compiler=no
7971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7973 echo "${ECHO_T}$ac_header_compiler" >&6
7975 # Is the header present?
7976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7978 cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h. */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <$ac_header>
7985 _ACEOF
7986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } >/dev/null; then
7994 if test -s conftest.err; then
7995 ac_cpp_err=$ac_c_preproc_warn_flag
7996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7997 else
7998 ac_cpp_err=
8000 else
8001 ac_cpp_err=yes
8003 if test -z "$ac_cpp_err"; then
8004 ac_header_preproc=yes
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_header_preproc=no
8011 rm -f conftest.err conftest.$ac_ext
8012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8013 echo "${ECHO_T}$ac_header_preproc" >&6
8015 # So? What about this header?
8016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8017 yes:no: )
8018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8022 ac_header_preproc=yes
8024 no:yes:* )
8025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8038 cat <<\_ASBOX
8039 ## ------------------------------------------ ##
8040 ## Report this to the AC_PACKAGE_NAME lists. ##
8041 ## ------------------------------------------ ##
8042 _ASBOX
8044 sed "s/^/$as_me: WARNING: /" >&2
8046 esac
8047 echo "$as_me:$LINENO: checking for $ac_header" >&5
8048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 eval "$as_ac_Header=\$ac_header_preproc"
8054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8059 cat >>confdefs.h <<_ACEOF
8060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8061 _ACEOF
8065 done
8077 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
8078 __argz_count __argz_stringify __argz_next
8080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8081 echo "$as_me:$LINENO: checking for $ac_func" >&5
8082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8083 if eval "test \"\${$as_ac_var+set}\" = set"; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086 cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h. */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8094 #define $ac_func innocuous_$ac_func
8096 /* System header to define __stub macros and hopefully few prototypes,
8097 which can conflict with char $ac_func (); below.
8098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8099 <limits.h> exists even on freestanding compilers. */
8101 #ifdef __STDC__
8102 # include <limits.h>
8103 #else
8104 # include <assert.h>
8105 #endif
8107 #undef $ac_func
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 #ifdef __cplusplus
8111 extern "C"
8113 #endif
8114 /* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8116 char $ac_func ();
8117 /* The GNU C library defines this for functions which it implements
8118 to always fail with ENOSYS. Some functions are actually named
8119 something starting with __ and the normal name is an alias. */
8120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8121 choke me
8122 #else
8123 char (*f) () = $ac_func;
8124 #endif
8125 #ifdef __cplusplus
8127 #endif
8130 main ()
8132 return f != $ac_func;
8134 return 0;
8136 _ACEOF
8137 rm -f conftest.$ac_objext conftest$ac_exeext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8139 (eval $ac_link) 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest$ac_exeext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 eval "$as_ac_var=yes"
8160 else
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 eval "$as_ac_var=no"
8166 rm -f conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8171 if test `eval echo '${'$as_ac_var'}'` = yes; then
8172 cat >>confdefs.h <<_ACEOF
8173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8174 _ACEOF
8177 done
8180 if test "${ac_cv_func_stpcpy+set}" != "set"; then
8182 for ac_func in stpcpy
8184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8185 echo "$as_me:$LINENO: checking for $ac_func" >&5
8186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8187 if eval "test \"\${$as_ac_var+set}\" = set"; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8198 #define $ac_func innocuous_$ac_func
8200 /* System header to define __stub macros and hopefully few prototypes,
8201 which can conflict with char $ac_func (); below.
8202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8203 <limits.h> exists even on freestanding compilers. */
8205 #ifdef __STDC__
8206 # include <limits.h>
8207 #else
8208 # include <assert.h>
8209 #endif
8211 #undef $ac_func
8213 /* Override any gcc2 internal prototype to avoid an error. */
8214 #ifdef __cplusplus
8215 extern "C"
8217 #endif
8218 /* We use char because int might match the return type of a gcc2
8219 builtin and then its argument prototype would still apply. */
8220 char $ac_func ();
8221 /* The GNU C library defines this for functions which it implements
8222 to always fail with ENOSYS. Some functions are actually named
8223 something starting with __ and the normal name is an alias. */
8224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8225 choke me
8226 #else
8227 char (*f) () = $ac_func;
8228 #endif
8229 #ifdef __cplusplus
8231 #endif
8234 main ()
8236 return f != $ac_func;
8238 return 0;
8240 _ACEOF
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243 (eval $ac_link) 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -z "$ac_c_werror_flag"
8251 || test ! -s conftest.err'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 eval "$as_ac_var=yes"
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 eval "$as_ac_var=no"
8270 rm -f conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8275 if test `eval echo '${'$as_ac_var'}'` = yes; then
8276 cat >>confdefs.h <<_ACEOF
8277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8278 _ACEOF
8281 done
8284 if test "${ac_cv_func_stpcpy}" = "yes"; then
8286 cat >>confdefs.h <<\_ACEOF
8287 #define HAVE_STPCPY 1
8288 _ACEOF
8292 if test $ac_cv_header_locale_h = yes; then
8293 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8294 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8295 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298 cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h. */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 #include <locale.h>
8306 main ()
8308 return LC_MESSAGES
8310 return 0;
8312 _ACEOF
8313 rm -f conftest.$ac_objext conftest$ac_exeext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8315 (eval $ac_link) 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try='test -z "$ac_c_werror_flag"
8323 || test ! -s conftest.err'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; } &&
8329 { ac_try='test -s conftest$ac_exeext'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 am_cv_val_LC_MESSAGES=yes
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 am_cv_val_LC_MESSAGES=no
8342 rm -f conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
8345 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8346 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8347 if test $am_cv_val_LC_MESSAGES = yes; then
8349 cat >>confdefs.h <<\_ACEOF
8350 #define HAVE_LC_MESSAGES 1
8351 _ACEOF
8355 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8356 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8357 # Check whether --enable-nls or --disable-nls was given.
8358 if test "${enable_nls+set}" = set; then
8359 enableval="$enable_nls"
8360 USE_NLS=$enableval
8361 else
8362 USE_NLS=yes
8364 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8365 echo "${ECHO_T}$USE_NLS" >&6
8368 USE_INCLUDED_LIBINTL=no
8370 if test "$USE_NLS" = "yes"; then
8371 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8372 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8374 # Check whether --with-included-gettext or --without-included-gettext was given.
8375 if test "${with_included_gettext+set}" = set; then
8376 withval="$with_included_gettext"
8377 nls_cv_force_use_gnu_gettext=$withval
8378 else
8379 nls_cv_force_use_gnu_gettext=no
8381 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8382 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8384 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8385 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8386 nls_cv_header_intl=
8387 nls_cv_header_libgt=
8388 CATOBJEXT=
8390 if test "${ac_cv_header_libintl_h+set}" = set; then
8391 echo "$as_me:$LINENO: checking for libintl.h" >&5
8392 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8393 if test "${ac_cv_header_libintl_h+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8397 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8398 else
8399 # Is the header compilable?
8400 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8401 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 $ac_includes_default
8409 #include <libintl.h>
8410 _ACEOF
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413 (eval $ac_compile) 2>conftest.er1
8414 ac_status=$?
8415 grep -v '^ *+' conftest.er1 >conftest.err
8416 rm -f conftest.er1
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -z "$ac_c_werror_flag"
8421 || test ! -s conftest.err'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; } &&
8427 { ac_try='test -s conftest.$ac_objext'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 ac_header_compiler=yes
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 ac_header_compiler=no
8440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8442 echo "${ECHO_T}$ac_header_compiler" >&6
8444 # Is the header present?
8445 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8446 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 #include <libintl.h>
8454 _ACEOF
8455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } >/dev/null; then
8463 if test -s conftest.err; then
8464 ac_cpp_err=$ac_c_preproc_warn_flag
8465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8466 else
8467 ac_cpp_err=
8469 else
8470 ac_cpp_err=yes
8472 if test -z "$ac_cpp_err"; then
8473 ac_header_preproc=yes
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_header_preproc=no
8480 rm -f conftest.err conftest.$ac_ext
8481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8482 echo "${ECHO_T}$ac_header_preproc" >&6
8484 # So? What about this header?
8485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8486 yes:no: )
8487 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8488 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8490 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8491 ac_header_preproc=yes
8493 no:yes:* )
8494 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8495 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8497 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8499 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8501 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8503 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8504 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8505 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8507 cat <<\_ASBOX
8508 ## ------------------------------------------ ##
8509 ## Report this to the AC_PACKAGE_NAME lists. ##
8510 ## ------------------------------------------ ##
8511 _ASBOX
8513 sed "s/^/$as_me: WARNING: /" >&2
8515 esac
8516 echo "$as_me:$LINENO: checking for libintl.h" >&5
8517 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8518 if test "${ac_cv_header_libintl_h+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 ac_cv_header_libintl_h=$ac_header_preproc
8523 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8524 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8527 if test $ac_cv_header_libintl_h = yes; then
8528 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8529 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8530 if test "${gt_cv_func_gettext_libc+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 #include <libintl.h>
8541 main ()
8543 return (int) gettext ("")
8545 return 0;
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 gt_cv_func_gettext_libc=yes
8571 else
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 gt_cv_func_gettext_libc=no
8577 rm -f conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8580 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8581 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8583 if test "$gt_cv_func_gettext_libc" != "yes"; then
8584 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8585 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8586 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589 ac_check_lib_save_LIBS=$LIBS
8590 LIBS="-lintl $LIBS"
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8598 /* Override any gcc2 internal prototype to avoid an error. */
8599 #ifdef __cplusplus
8600 extern "C"
8601 #endif
8602 /* We use char because int might match the return type of a gcc2
8603 builtin and then its argument prototype would still apply. */
8604 char bindtextdomain ();
8606 main ()
8608 bindtextdomain ();
8610 return 0;
8612 _ACEOF
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>conftest.er1
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_c_werror_flag"
8623 || test ! -s conftest.err'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_lib_intl_bindtextdomain=yes
8636 else
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_cv_lib_intl_bindtextdomain=no
8642 rm -f conftest.err conftest.$ac_objext \
8643 conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_lib_save_LIBS
8646 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8647 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8648 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8649 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8650 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8651 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8662 main ()
8664 return (int) gettext ("")
8666 return 0;
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8671 (eval $ac_link) 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag"
8679 || test ! -s conftest.err'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 (eval $ac_try) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; } &&
8685 { ac_try='test -s conftest$ac_exeext'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 gt_cv_func_gettext_libintl=yes
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 gt_cv_func_gettext_libintl=no
8698 rm -f conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8701 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8702 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8707 if test "$gt_cv_func_gettext_libc" = "yes" \
8708 || test "$gt_cv_func_gettext_libintl" = "yes"; then
8710 cat >>confdefs.h <<\_ACEOF
8711 #define HAVE_GETTEXT 1
8712 _ACEOF
8714 # Extract the first word of "msgfmt", so it can be a program name with args.
8715 set dummy msgfmt; ac_word=$2
8716 echo "$as_me:$LINENO: checking for $ac_word" >&5
8717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8718 if test "${ac_cv_path_MSGFMT+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721 case "$MSGFMT" in
8723 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8727 for ac_dir in $PATH; do
8728 test -z "$ac_dir" && ac_dir=.
8729 if test -f $ac_dir/$ac_word; then
8730 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8731 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8732 break
8735 done
8736 IFS="$ac_save_ifs"
8737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8739 esac
8741 MSGFMT="$ac_cv_path_MSGFMT"
8742 if test -n "$MSGFMT"; then
8743 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8744 echo "${ECHO_T}$MSGFMT" >&6
8745 else
8746 echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6
8749 if test "$MSGFMT" != "no"; then
8751 for ac_func in dcgettext
8753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8754 echo "$as_me:$LINENO: checking for $ac_func" >&5
8755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8756 if eval "test \"\${$as_ac_var+set}\" = set"; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8767 #define $ac_func innocuous_$ac_func
8769 /* System header to define __stub macros and hopefully few prototypes,
8770 which can conflict with char $ac_func (); below.
8771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8772 <limits.h> exists even on freestanding compilers. */
8774 #ifdef __STDC__
8775 # include <limits.h>
8776 #else
8777 # include <assert.h>
8778 #endif
8780 #undef $ac_func
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 #ifdef __cplusplus
8784 extern "C"
8786 #endif
8787 /* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
8789 char $ac_func ();
8790 /* The GNU C library defines this for functions which it implements
8791 to always fail with ENOSYS. Some functions are actually named
8792 something starting with __ and the normal name is an alias. */
8793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8794 choke me
8795 #else
8796 char (*f) () = $ac_func;
8797 #endif
8798 #ifdef __cplusplus
8800 #endif
8803 main ()
8805 return f != $ac_func;
8807 return 0;
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag"
8820 || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 eval "$as_ac_var=yes"
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 eval "$as_ac_var=no"
8839 rm -f conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8844 if test `eval echo '${'$as_ac_var'}'` = yes; then
8845 cat >>confdefs.h <<_ACEOF
8846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8847 _ACEOF
8850 done
8852 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8853 set dummy gmsgfmt; ac_word=$2
8854 echo "$as_me:$LINENO: checking for $ac_word" >&5
8855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8856 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859 case $GMSGFMT in
8860 [\\/]* | ?:[\\/]*)
8861 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 break 2
8875 done
8876 done
8878 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8880 esac
8882 GMSGFMT=$ac_cv_path_GMSGFMT
8884 if test -n "$GMSGFMT"; then
8885 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8886 echo "${ECHO_T}$GMSGFMT" >&6
8887 else
8888 echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8892 # Extract the first word of "xgettext", so it can be a program name with args.
8893 set dummy xgettext; ac_word=$2
8894 echo "$as_me:$LINENO: checking for $ac_word" >&5
8895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8896 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 case "$XGETTEXT" in
8901 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8905 for ac_dir in $PATH; do
8906 test -z "$ac_dir" && ac_dir=.
8907 if test -f $ac_dir/$ac_word; then
8908 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8909 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8910 break
8913 done
8914 IFS="$ac_save_ifs"
8915 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8917 esac
8919 XGETTEXT="$ac_cv_path_XGETTEXT"
8920 if test -n "$XGETTEXT"; then
8921 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8922 echo "${ECHO_T}$XGETTEXT" >&6
8923 else
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h. */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8936 main ()
8938 extern int _nl_msg_cat_cntr;
8939 return _nl_msg_cat_cntr
8941 return 0;
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag"
8954 || test ! -s conftest.err'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 CATOBJEXT=.gmo
8967 DATADIRNAME=share
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 CATOBJEXT=.mo
8973 DATADIRNAME=lib
8975 rm -f conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977 INSTOBJEXT=.mo
8986 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8987 # Neither gettext nor catgets in included in the C library.
8988 # Fall back on GNU gettext library (assuming it is present).
8989 nls_cv_use_gnu_gettext=yes
8993 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8994 INTLOBJS="\$(GETTOBJS)"
8995 # Extract the first word of "msgfmt", so it can be a program name with args.
8996 set dummy msgfmt; ac_word=$2
8997 echo "$as_me:$LINENO: checking for $ac_word" >&5
8998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8999 if test "${ac_cv_path_MSGFMT+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002 case "$MSGFMT" in
9004 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9008 for ac_dir in $PATH; do
9009 test -z "$ac_dir" && ac_dir=.
9010 if test -f $ac_dir/$ac_word; then
9011 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
9012 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9013 break
9016 done
9017 IFS="$ac_save_ifs"
9018 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
9020 esac
9022 MSGFMT="$ac_cv_path_MSGFMT"
9023 if test -n "$MSGFMT"; then
9024 echo "$as_me:$LINENO: result: $MSGFMT" >&5
9025 echo "${ECHO_T}$MSGFMT" >&6
9026 else
9027 echo "$as_me:$LINENO: result: no" >&5
9028 echo "${ECHO_T}no" >&6
9031 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9032 set dummy gmsgfmt; ac_word=$2
9033 echo "$as_me:$LINENO: checking for $ac_word" >&5
9034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9035 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 case $GMSGFMT in
9039 [\\/]* | ?:[\\/]*)
9040 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 for as_dir in $PATH
9046 IFS=$as_save_IFS
9047 test -z "$as_dir" && as_dir=.
9048 for ac_exec_ext in '' $ac_executable_extensions; do
9049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9050 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9052 break 2
9054 done
9055 done
9057 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9059 esac
9061 GMSGFMT=$ac_cv_path_GMSGFMT
9063 if test -n "$GMSGFMT"; then
9064 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9065 echo "${ECHO_T}$GMSGFMT" >&6
9066 else
9067 echo "$as_me:$LINENO: result: no" >&5
9068 echo "${ECHO_T}no" >&6
9071 # Extract the first word of "xgettext", so it can be a program name with args.
9072 set dummy xgettext; ac_word=$2
9073 echo "$as_me:$LINENO: checking for $ac_word" >&5
9074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9075 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 case "$XGETTEXT" in
9080 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9084 for ac_dir in $PATH; do
9085 test -z "$ac_dir" && ac_dir=.
9086 if test -f $ac_dir/$ac_word; then
9087 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9088 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9089 break
9092 done
9093 IFS="$ac_save_ifs"
9094 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9096 esac
9098 XGETTEXT="$ac_cv_path_XGETTEXT"
9099 if test -n "$XGETTEXT"; then
9100 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9101 echo "${ECHO_T}$XGETTEXT" >&6
9102 else
9103 echo "$as_me:$LINENO: result: no" >&5
9104 echo "${ECHO_T}no" >&6
9108 USE_INCLUDED_LIBINTL=yes
9109 CATOBJEXT=.gmo
9110 INSTOBJEXT=.mo
9111 DATADIRNAME=share
9112 INTLDEPS='$(top_builddir)/../intl/libintl.a'
9113 INTLLIBS=$INTLDEPS
9114 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9115 nls_cv_header_intl=libintl.h
9116 nls_cv_header_libgt=libgettext.h
9119 if test "$XGETTEXT" != ":"; then
9120 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9122 else
9123 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
9124 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
9125 XGETTEXT=":"
9129 # We need to process the po/ directory.
9130 POSUB=po
9131 else
9132 DATADIRNAME=share
9133 nls_cv_header_intl=libintl.h
9134 nls_cv_header_libgt=libgettext.h
9137 # If this is used in GNU gettext we have to set USE_NLS to `yes'
9138 # because some of the sources are only built for this goal.
9139 if test "$PACKAGE" = gettext; then
9140 USE_NLS=yes
9141 USE_INCLUDED_LIBINTL=yes
9144 for lang in $ALL_LINGUAS; do
9145 GMOFILES="$GMOFILES $lang.gmo"
9146 POFILES="$POFILES $lang.po"
9147 done
9160 if test "x$CATOBJEXT" != "x"; then
9162 cat >>confdefs.h <<\_ACEOF
9163 #define ENABLE_NLS 1
9164 _ACEOF
9169 if test "x$CATOBJEXT" != "x"; then
9170 if test "x$ALL_LINGUAS" = "x"; then
9171 LINGUAS=
9172 else
9173 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9174 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9175 NEW_LINGUAS=
9176 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9177 case "$ALL_LINGUAS" in
9178 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9179 esac
9180 done
9181 LINGUAS=$NEW_LINGUAS
9182 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9183 echo "${ECHO_T}$LINGUAS" >&6
9186 if test -n "$LINGUAS"; then
9187 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9191 if test $ac_cv_header_locale_h = yes; then
9192 INCLUDE_LOCALE_H="#include <locale.h>"
9193 else
9194 INCLUDE_LOCALE_H="\
9195 /* The system does not provide the header <locale.h>. Take care yourself. */"
9199 if test -f $srcdir/po2tbl.sed.in; then
9200 if test "$CATOBJEXT" = ".cat"; then
9201 if test "${ac_cv_header_linux_version_h+set}" = set; then
9202 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9203 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9204 if test "${ac_cv_header_linux_version_h+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9208 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9209 else
9210 # Is the header compilable?
9211 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9212 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9213 cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h. */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219 $ac_includes_default
9220 #include <linux/version.h>
9221 _ACEOF
9222 rm -f conftest.$ac_objext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9224 (eval $ac_compile) 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -z "$ac_c_werror_flag"
9232 || test ! -s conftest.err'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; } &&
9238 { ac_try='test -s conftest.$ac_objext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 ac_header_compiler=yes
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_header_compiler=no
9251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9253 echo "${ECHO_T}$ac_header_compiler" >&6
9255 # Is the header present?
9256 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9257 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 #include <linux/version.h>
9265 _ACEOF
9266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } >/dev/null; then
9274 if test -s conftest.err; then
9275 ac_cpp_err=$ac_c_preproc_warn_flag
9276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9277 else
9278 ac_cpp_err=
9280 else
9281 ac_cpp_err=yes
9283 if test -z "$ac_cpp_err"; then
9284 ac_header_preproc=yes
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 ac_header_preproc=no
9291 rm -f conftest.err conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9293 echo "${ECHO_T}$ac_header_preproc" >&6
9295 # So? What about this header?
9296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9297 yes:no: )
9298 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9299 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9301 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9302 ac_header_preproc=yes
9304 no:yes:* )
9305 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9306 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9308 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9310 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9312 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9313 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9314 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9315 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9316 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9318 cat <<\_ASBOX
9319 ## ------------------------------------------ ##
9320 ## Report this to the AC_PACKAGE_NAME lists. ##
9321 ## ------------------------------------------ ##
9322 _ASBOX
9324 sed "s/^/$as_me: WARNING: /" >&2
9326 esac
9327 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9328 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9329 if test "${ac_cv_header_linux_version_h+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332 ac_cv_header_linux_version_h=$ac_header_preproc
9334 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9335 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9338 if test $ac_cv_header_linux_version_h = yes; then
9339 msgformat=linux
9340 else
9341 msgformat=xopen
9346 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
9348 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
9349 $srcdir/po2tbl.sed.in > po2tbl.sed
9352 if test "$PACKAGE" = "gettext"; then
9353 GT_NO="#NO#"
9354 GT_YES=
9355 else
9356 GT_NO=
9357 GT_YES="#YES#"
9362 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
9368 if test -f $srcdir/po/POTFILES.in; then
9369 test -d po || mkdir po
9370 if test "x$srcdir" != "x."; then
9371 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9372 posrcprefix="$srcdir/"
9373 else
9374 posrcprefix="../$srcdir/"
9376 else
9377 posrcprefix="../"
9379 rm -f po/POTFILES
9380 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9381 < $srcdir/po/POTFILES.in > po/POTFILES
9385 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9386 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9387 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9388 if test "${enable_maintainer_mode+set}" = set; then
9389 enableval="$enable_maintainer_mode"
9390 USE_MAINTAINER_MODE=$enableval
9391 else
9392 USE_MAINTAINER_MODE=no
9394 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9395 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9398 if test $USE_MAINTAINER_MODE = yes; then
9399 MAINTAINER_MODE_TRUE=
9400 MAINTAINER_MODE_FALSE='#'
9401 else
9402 MAINTAINER_MODE_TRUE='#'
9403 MAINTAINER_MODE_FALSE=
9406 MAINT=$MAINTAINER_MODE_TRUE
9420 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
9422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424 echo "$as_me:$LINENO: checking for $ac_header" >&5
9425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9431 else
9432 # Is the header compilable?
9433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9435 cat >conftest.$ac_ext <<_ACEOF
9436 /* confdefs.h. */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9441 $ac_includes_default
9442 #include <$ac_header>
9443 _ACEOF
9444 rm -f conftest.$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446 (eval $ac_compile) 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest.$ac_objext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 (eval $ac_try) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_header_compiler=yes
9467 else
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_header_compiler=no
9473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9475 echo "${ECHO_T}$ac_header_compiler" >&6
9477 # Is the header present?
9478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9480 cat >conftest.$ac_ext <<_ACEOF
9481 /* confdefs.h. */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 #include <$ac_header>
9487 _ACEOF
9488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } >/dev/null; then
9496 if test -s conftest.err; then
9497 ac_cpp_err=$ac_c_preproc_warn_flag
9498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9499 else
9500 ac_cpp_err=
9502 else
9503 ac_cpp_err=yes
9505 if test -z "$ac_cpp_err"; then
9506 ac_header_preproc=yes
9507 else
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_header_preproc=no
9513 rm -f conftest.err conftest.$ac_ext
9514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9515 echo "${ECHO_T}$ac_header_preproc" >&6
9517 # So? What about this header?
9518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9519 yes:no: )
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9524 ac_header_preproc=yes
9526 no:yes:* )
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9540 cat <<\_ASBOX
9541 ## ------------------------------------------ ##
9542 ## Report this to the AC_PACKAGE_NAME lists. ##
9543 ## ------------------------------------------ ##
9544 _ASBOX
9546 sed "s/^/$as_me: WARNING: /" >&2
9548 esac
9549 echo "$as_me:$LINENO: checking for $ac_header" >&5
9550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554 eval "$as_ac_Header=\$ac_header_preproc"
9556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9561 cat >>confdefs.h <<_ACEOF
9562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9563 _ACEOF
9567 done
9570 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9571 # people who are not cross-compiling but are compiling cross-assemblers.
9572 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9573 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
9574 if test "${host}" = "${target}"; then
9575 cross_gas=no
9576 else
9577 cross_gas=yes
9579 cat >>confdefs.h <<\_ACEOF
9580 #define CROSS_COMPILE 1
9581 _ACEOF
9584 echo "$as_me:$LINENO: result: $cross_gas" >&5
9585 echo "${ECHO_T}$cross_gas" >&6
9587 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9588 # for constant arguments. Useless!
9589 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9590 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9591 if test "${ac_cv_working_alloca_h+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <alloca.h>
9602 main ()
9604 char *p = (char *) alloca (2 * sizeof (int));
9606 return 0;
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611 (eval $ac_link) 2>conftest.er1
9612 ac_status=$?
9613 grep -v '^ *+' conftest.er1 >conftest.err
9614 rm -f conftest.er1
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try='test -z "$ac_c_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_working_alloca_h=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_cv_working_alloca_h=no
9638 rm -f conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9641 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9642 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9643 if test $ac_cv_working_alloca_h = yes; then
9645 cat >>confdefs.h <<\_ACEOF
9646 #define HAVE_ALLOCA_H 1
9647 _ACEOF
9651 echo "$as_me:$LINENO: checking for alloca" >&5
9652 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9653 if test "${ac_cv_func_alloca_works+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 #ifdef __GNUC__
9663 # define alloca __builtin_alloca
9664 #else
9665 # ifdef _MSC_VER
9666 # include <malloc.h>
9667 # define alloca _alloca
9668 # else
9669 # if HAVE_ALLOCA_H
9670 # include <alloca.h>
9671 # else
9672 # ifdef _AIX
9673 #pragma alloca
9674 # else
9675 # ifndef alloca /* predefined by HP cc +Olibcalls */
9676 char *alloca ();
9677 # endif
9678 # endif
9679 # endif
9680 # endif
9681 #endif
9684 main ()
9686 char *p = (char *) alloca (1);
9688 return 0;
9690 _ACEOF
9691 rm -f conftest.$ac_objext conftest$ac_exeext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9693 (eval $ac_link) 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag"
9701 || test ! -s conftest.err'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 (eval $ac_try) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_cv_func_alloca_works=yes
9714 else
9715 echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9718 ac_cv_func_alloca_works=no
9720 rm -f conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9723 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9724 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9726 if test $ac_cv_func_alloca_works = yes; then
9728 cat >>confdefs.h <<\_ACEOF
9729 #define HAVE_ALLOCA 1
9730 _ACEOF
9732 else
9733 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9734 # that cause trouble. Some versions do not even contain alloca or
9735 # contain a buggy version. If you still want to use their alloca,
9736 # use ar to extract alloca.o from them instead of compiling alloca.c.
9738 ALLOCA=alloca.$ac_objext
9740 cat >>confdefs.h <<\_ACEOF
9741 #define C_ALLOCA 1
9742 _ACEOF
9745 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9746 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9747 if test "${ac_cv_os_cray+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h. */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 #if defined(CRAY) && ! defined(CRAY2)
9757 webecray
9758 #else
9759 wenotbecray
9760 #endif
9762 _ACEOF
9763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9764 $EGREP "webecray" >/dev/null 2>&1; then
9765 ac_cv_os_cray=yes
9766 else
9767 ac_cv_os_cray=no
9769 rm -f conftest*
9772 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9773 echo "${ECHO_T}$ac_cv_os_cray" >&6
9774 if test $ac_cv_os_cray = yes; then
9775 for ac_func in _getb67 GETB67 getb67; do
9776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9777 echo "$as_me:$LINENO: checking for $ac_func" >&5
9778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9779 if eval "test \"\${$as_ac_var+set}\" = set"; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9790 #define $ac_func innocuous_$ac_func
9792 /* System header to define __stub macros and hopefully few prototypes,
9793 which can conflict with char $ac_func (); below.
9794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9795 <limits.h> exists even on freestanding compilers. */
9797 #ifdef __STDC__
9798 # include <limits.h>
9799 #else
9800 # include <assert.h>
9801 #endif
9803 #undef $ac_func
9805 /* Override any gcc2 internal prototype to avoid an error. */
9806 #ifdef __cplusplus
9807 extern "C"
9809 #endif
9810 /* We use char because int might match the return type of a gcc2
9811 builtin and then its argument prototype would still apply. */
9812 char $ac_func ();
9813 /* The GNU C library defines this for functions which it implements
9814 to always fail with ENOSYS. Some functions are actually named
9815 something starting with __ and the normal name is an alias. */
9816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9817 choke me
9818 #else
9819 char (*f) () = $ac_func;
9820 #endif
9821 #ifdef __cplusplus
9823 #endif
9826 main ()
9828 return f != $ac_func;
9830 return 0;
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9835 (eval $ac_link) 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } &&
9842 { ac_try='test -z "$ac_c_werror_flag"
9843 || test ! -s conftest.err'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 (eval $ac_try) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; } &&
9849 { ac_try='test -s conftest$ac_exeext'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 eval "$as_ac_var=yes"
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 eval "$as_ac_var=no"
9862 rm -f conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext
9865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9867 if test `eval echo '${'$as_ac_var'}'` = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define CRAY_STACKSEG_END $ac_func
9871 _ACEOF
9873 break
9876 done
9879 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9880 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9881 if test "${ac_cv_c_stack_direction+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 if test "$cross_compiling" = yes; then
9885 ac_cv_c_stack_direction=0
9886 else
9887 cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h. */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9894 find_stack_direction ()
9896 static char *addr = 0;
9897 auto char dummy;
9898 if (addr == 0)
9900 addr = &dummy;
9901 return find_stack_direction ();
9903 else
9904 return (&dummy > addr) ? 1 : -1;
9908 main ()
9910 exit (find_stack_direction () < 0);
9912 _ACEOF
9913 rm -f conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_c_stack_direction=1
9925 else
9926 echo "$as_me: program exited with status $ac_status" >&5
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9930 ( exit $ac_status )
9931 ac_cv_c_stack_direction=-1
9933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9936 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9937 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9939 cat >>confdefs.h <<_ACEOF
9940 #define STACK_DIRECTION $ac_cv_c_stack_direction
9941 _ACEOF
9946 echo "$as_me:$LINENO: checking for inline" >&5
9947 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9948 if test "${ac_cv_c_inline+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951 ac_cv_c_inline=no
9952 for ac_kw in inline __inline__ __inline; do
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 #ifndef __cplusplus
9960 typedef int foo_t;
9961 static $ac_kw foo_t static_foo () {return 0; }
9962 $ac_kw foo_t foo () {return 0; }
9963 #endif
9965 _ACEOF
9966 rm -f conftest.$ac_objext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9968 (eval $ac_compile) 2>conftest.er1
9969 ac_status=$?
9970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag"
9976 || test ! -s conftest.err'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest.$ac_objext'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_c_inline=$ac_kw; break
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9995 done
9998 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9999 echo "${ECHO_T}$ac_cv_c_inline" >&6
10002 case $ac_cv_c_inline in
10003 inline | yes) ;;
10005 case $ac_cv_c_inline in
10006 no) ac_val=;;
10007 *) ac_val=$ac_cv_c_inline;;
10008 esac
10009 cat >>confdefs.h <<_ACEOF
10010 #ifndef __cplusplus
10011 #define inline $ac_val
10012 #endif
10013 _ACEOF
10015 esac
10018 # VMS doesn't have unlink.
10021 for ac_func in unlink remove
10023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10024 echo "$as_me:$LINENO: checking for $ac_func" >&5
10025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10026 if eval "test \"\${$as_ac_var+set}\" = set"; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h. */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10037 #define $ac_func innocuous_$ac_func
10039 /* System header to define __stub macros and hopefully few prototypes,
10040 which can conflict with char $ac_func (); below.
10041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10042 <limits.h> exists even on freestanding compilers. */
10044 #ifdef __STDC__
10045 # include <limits.h>
10046 #else
10047 # include <assert.h>
10048 #endif
10050 #undef $ac_func
10052 /* Override any gcc2 internal prototype to avoid an error. */
10053 #ifdef __cplusplus
10054 extern "C"
10056 #endif
10057 /* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */
10059 char $ac_func ();
10060 /* The GNU C library defines this for functions which it implements
10061 to always fail with ENOSYS. Some functions are actually named
10062 something starting with __ and the normal name is an alias. */
10063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10064 choke me
10065 #else
10066 char (*f) () = $ac_func;
10067 #endif
10068 #ifdef __cplusplus
10070 #endif
10073 main ()
10075 return f != $ac_func;
10077 return 0;
10079 _ACEOF
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 eval "$as_ac_var=yes"
10103 else
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10107 eval "$as_ac_var=no"
10109 rm -f conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10114 if test `eval echo '${'$as_ac_var'}'` = yes; then
10115 cat >>confdefs.h <<_ACEOF
10116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10117 _ACEOF
10118 break
10120 done
10123 # Some systems don't have sbrk().
10125 for ac_func in sbrk
10127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10128 echo "$as_me:$LINENO: checking for $ac_func" >&5
10129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10130 if eval "test \"\${$as_ac_var+set}\" = set"; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h. */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10141 #define $ac_func innocuous_$ac_func
10143 /* System header to define __stub macros and hopefully few prototypes,
10144 which can conflict with char $ac_func (); below.
10145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10146 <limits.h> exists even on freestanding compilers. */
10148 #ifdef __STDC__
10149 # include <limits.h>
10150 #else
10151 # include <assert.h>
10152 #endif
10154 #undef $ac_func
10156 /* Override any gcc2 internal prototype to avoid an error. */
10157 #ifdef __cplusplus
10158 extern "C"
10160 #endif
10161 /* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10163 char $ac_func ();
10164 /* The GNU C library defines this for functions which it implements
10165 to always fail with ENOSYS. Some functions are actually named
10166 something starting with __ and the normal name is an alias. */
10167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10168 choke me
10169 #else
10170 char (*f) () = $ac_func;
10171 #endif
10172 #ifdef __cplusplus
10174 #endif
10177 main ()
10179 return f != $ac_func;
10181 return 0;
10183 _ACEOF
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186 (eval $ac_link) 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag"
10194 || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; } &&
10200 { ac_try='test -s conftest$ac_exeext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 eval "$as_ac_var=yes"
10207 else
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 eval "$as_ac_var=no"
10213 rm -f conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10218 if test `eval echo '${'$as_ac_var'}'` = yes; then
10219 cat >>confdefs.h <<_ACEOF
10220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10221 _ACEOF
10224 done
10227 # do we need the math library?
10228 case "${need_libm}" in
10229 yes)
10230 LIBM=
10231 case $host in
10232 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
10233 # These system don't have libm
10234 # on darwin the libm is a symbolic link to libSystem.dylib
10236 *-ncr-sysv4.3*)
10237 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
10238 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
10239 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242 ac_check_lib_save_LIBS=$LIBS
10243 LIBS="-lmw $LIBS"
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10251 /* Override any gcc2 internal prototype to avoid an error. */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 /* We use char because int might match the return type of a gcc2
10256 builtin and then its argument prototype would still apply. */
10257 char _mwvalidcheckl ();
10259 main ()
10261 _mwvalidcheckl ();
10263 return 0;
10265 _ACEOF
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
10275 { ac_try='test -z "$ac_c_werror_flag"
10276 || test ! -s conftest.err'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_cv_lib_mw__mwvalidcheckl=yes
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_cv_lib_mw__mwvalidcheckl=no
10295 rm -f conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10297 LIBS=$ac_check_lib_save_LIBS
10299 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
10300 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
10301 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
10302 LIBM="-lmw"
10305 echo "$as_me:$LINENO: checking for main in -lm" >&5
10306 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10307 if test "${ac_cv_lib_m_main+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310 ac_check_lib_save_LIBS=$LIBS
10311 LIBS="-lm $LIBS"
10312 cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h. */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10321 main ()
10323 main ();
10325 return 0;
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330 (eval $ac_link) 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -z "$ac_c_werror_flag"
10338 || test ! -s conftest.err'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; } &&
10344 { ac_try='test -s conftest$ac_exeext'
10345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 ac_cv_lib_m_main=yes
10351 else
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 ac_cv_lib_m_main=no
10357 rm -f conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10359 LIBS=$ac_check_lib_save_LIBS
10361 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10362 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10363 if test $ac_cv_lib_m_main = yes; then
10364 LIBM="$LIBM -lm"
10369 echo "$as_me:$LINENO: checking for main in -lm" >&5
10370 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10371 if test "${ac_cv_lib_m_main+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374 ac_check_lib_save_LIBS=$LIBS
10375 LIBS="-lm $LIBS"
10376 cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h. */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10385 main ()
10387 main ();
10389 return 0;
10391 _ACEOF
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394 (eval $ac_link) 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -z "$ac_c_werror_flag"
10402 || test ! -s conftest.err'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; } &&
10408 { ac_try='test -s conftest$ac_exeext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_cv_lib_m_main=yes
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 ac_cv_lib_m_main=no
10421 rm -f conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10425 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10426 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10427 if test $ac_cv_lib_m_main = yes; then
10428 LIBM="-lm"
10432 esac
10436 esac
10438 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
10439 # enough, but on some of those systems, the assert macro relies on requoting
10440 # working properly!
10441 echo "$as_me:$LINENO: checking for working assert macro" >&5
10442 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
10443 if test "${gas_cv_assert_ok+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446 cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h. */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452 #include <assert.h>
10453 #include <stdio.h>
10455 main ()
10458 /* check for requoting problems */
10459 static int a, b, c, d;
10460 static char *s;
10461 assert (!strcmp(s, "foo bar baz quux"));
10462 /* check for newline handling */
10463 assert (a == b
10464 || c == d);
10467 return 0;
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472 (eval $ac_link) 2>conftest.er1
10473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag"
10480 || test ! -s conftest.err'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest$ac_exeext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10489 ac_status=$?
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 gas_cv_assert_ok=yes
10493 else
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 gas_cv_assert_ok=no
10499 rm -f conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10502 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
10503 echo "${ECHO_T}$gas_cv_assert_ok" >&6
10504 test $gas_cv_assert_ok = yes ||
10505 cat >>confdefs.h <<\_ACEOF
10506 #define BROKEN_ASSERT 1
10507 _ACEOF
10511 # On some systems, the system header files may not declare malloc, realloc,
10512 # and free. There are places where gas needs these functions to have been
10513 # declared -- such as when taking their addresses.
10514 gas_test_headers="
10515 #ifdef HAVE_MEMORY_H
10516 #include <memory.h>
10517 #endif
10518 #ifdef HAVE_STRING_H
10519 #include <string.h>
10520 #else
10521 #ifdef HAVE_STRINGS_H
10522 #include <strings.h>
10523 #endif
10524 #endif
10525 #ifdef HAVE_STDLIB_H
10526 #include <stdlib.h>
10527 #endif
10528 #ifdef HAVE_UNISTD_H
10529 #include <unistd.h>
10530 #endif
10533 # Does errno.h declare errno, or do we have to add a separate declaration
10534 # for it?
10536 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10537 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10538 if test "${gas_cv_decl_needed_errno+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10548 #ifdef HAVE_ERRNO_H
10549 #include <errno.h>
10550 #endif
10553 main ()
10556 typedef int f;
10557 f x;
10558 x = (f) errno;
10561 return 0;
10563 _ACEOF
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566 (eval $ac_link) 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag"
10574 || test ! -s conftest.err'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest$ac_exeext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 gas_cv_decl_needed_errno=no
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 gas_cv_decl_needed_errno=yes
10593 rm -f conftest.err conftest.$ac_objext \
10594 conftest$ac_exeext conftest.$ac_ext
10596 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10597 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10598 if test $gas_cv_decl_needed_errno = yes; then
10600 cat >>confdefs.h <<\_ACEOF
10601 #define NEED_DECLARATION_ERRNO 1
10602 _ACEOF
10607 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
10608 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
10609 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h. */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <unistd.h>
10620 main ()
10622 extern int getopt (int, char *const*, const char *);
10624 return 0;
10626 _ACEOF
10627 rm -f conftest.$ac_objext
10628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10629 (eval $ac_compile) 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -z "$ac_c_werror_flag"
10637 || test ! -s conftest.err'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; } &&
10643 { ac_try='test -s conftest.$ac_objext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 gas_cv_decl_getopt_unistd_h=yes
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 gas_cv_decl_getopt_unistd_h=no
10656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10659 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
10660 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
10661 if test $gas_cv_decl_getopt_unistd_h = yes; then
10663 cat >>confdefs.h <<\_ACEOF
10664 #define HAVE_DECL_GETOPT 1
10665 _ACEOF
10670 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10671 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10672 if test "${gas_cv_decl_needed_environ+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h. */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 $gas_test_headers
10683 main ()
10686 typedef char **f;
10687 f x;
10688 x = (f) environ;
10691 return 0;
10693 _ACEOF
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696 (eval $ac_link) 2>conftest.er1
10697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -z "$ac_c_werror_flag"
10704 || test ! -s conftest.err'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest$ac_exeext'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 gas_cv_decl_needed_environ=no
10717 else
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 gas_cv_decl_needed_environ=yes
10723 rm -f conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10726 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10727 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10728 if test $gas_cv_decl_needed_environ = yes; then
10730 cat >>confdefs.h <<\_ACEOF
10731 #define NEED_DECLARATION_ENVIRON 1
10732 _ACEOF
10737 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
10738 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
10739 if test "${gas_cv_decl_needed_ffs+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 $gas_test_headers
10750 main ()
10753 typedef int (*f)(int);
10754 f x;
10755 x = (f) ffs;
10758 return 0;
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10763 (eval $ac_link) 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_c_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 gas_cv_decl_needed_ffs=no
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 gas_cv_decl_needed_ffs=yes
10790 rm -f conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10793 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
10794 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
10795 if test $gas_cv_decl_needed_ffs = yes; then
10797 cat >>confdefs.h <<\_ACEOF
10798 #define NEED_DECLARATION_FFS 1
10799 _ACEOF
10804 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
10805 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
10806 if test "${gas_cv_decl_needed_free+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 $gas_test_headers
10817 main ()
10820 typedef void (*f)();
10821 f x;
10822 x = (f) free;
10825 return 0;
10827 _ACEOF
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830 (eval $ac_link) 2>conftest.er1
10831 ac_status=$?
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag"
10838 || test ! -s conftest.err'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest$ac_exeext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 gas_cv_decl_needed_free=no
10851 else
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 gas_cv_decl_needed_free=yes
10857 rm -f conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10860 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10861 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10862 if test $gas_cv_decl_needed_free = yes; then
10864 cat >>confdefs.h <<\_ACEOF
10865 #define NEED_DECLARATION_FREE 1
10866 _ACEOF
10871 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
10872 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
10873 if test "${gas_cv_decl_needed_malloc+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 $gas_test_headers
10884 main ()
10887 typedef char *(*f)();
10888 f x;
10889 x = (f) malloc;
10892 return 0;
10894 _ACEOF
10895 rm -f conftest.$ac_objext conftest$ac_exeext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10897 (eval $ac_link) 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -z "$ac_c_werror_flag"
10905 || test ! -s conftest.err'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest$ac_exeext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 gas_cv_decl_needed_malloc=no
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 gas_cv_decl_needed_malloc=yes
10924 rm -f conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10927 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
10928 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
10929 if test $gas_cv_decl_needed_malloc = yes; then
10931 cat >>confdefs.h <<\_ACEOF
10932 #define NEED_DECLARATION_MALLOC 1
10933 _ACEOF
10938 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10939 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10940 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943 cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h. */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 $gas_test_headers
10951 main ()
10954 typedef char *(*f)();
10955 f x;
10956 x = (f) sbrk;
10959 return 0;
10961 _ACEOF
10962 rm -f conftest.$ac_objext conftest$ac_exeext
10963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10964 (eval $ac_link) 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -z "$ac_c_werror_flag"
10972 || test ! -s conftest.err'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; } &&
10978 { ac_try='test -s conftest$ac_exeext'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; }; then
10984 gas_cv_decl_needed_sbrk=no
10985 else
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10989 gas_cv_decl_needed_sbrk=yes
10991 rm -f conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
10994 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10995 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10996 if test $gas_cv_decl_needed_sbrk = yes; then
10998 cat >>confdefs.h <<\_ACEOF
10999 #define NEED_DECLARATION_SBRK 1
11000 _ACEOF
11005 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
11006 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
11007 if test "${gas_cv_decl_needed_strstr+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010 cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h. */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 $gas_test_headers
11018 main ()
11021 typedef char *(*f)();
11022 f x;
11023 x = (f) strstr;
11026 return 0;
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -z "$ac_c_werror_flag"
11039 || test ! -s conftest.err'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 gas_cv_decl_needed_strstr=no
11052 else
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 gas_cv_decl_needed_strstr=yes
11058 rm -f conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11061 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
11062 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
11063 if test $gas_cv_decl_needed_strstr = yes; then
11065 cat >>confdefs.h <<\_ACEOF
11066 #define NEED_DECLARATION_STRSTR 1
11067 _ACEOF
11072 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11073 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11074 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077 cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h. */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 $ac_includes_default
11085 main ()
11087 #ifndef vsnprintf
11088 char *p = (char *) vsnprintf;
11089 #endif
11092 return 0;
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -z "$ac_c_werror_flag"
11105 || test ! -s conftest.err'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; } &&
11111 { ac_try='test -s conftest.$ac_objext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_cv_have_decl_vsnprintf=yes
11118 else
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 ac_cv_have_decl_vsnprintf=no
11124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11126 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11127 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11128 if test $ac_cv_have_decl_vsnprintf = yes; then
11130 cat >>confdefs.h <<_ACEOF
11131 #define HAVE_DECL_VSNPRINTF 1
11132 _ACEOF
11135 else
11136 cat >>confdefs.h <<_ACEOF
11137 #define HAVE_DECL_VSNPRINTF 0
11138 _ACEOF
11151 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
11153 ac_config_commands="$ac_config_commands default"
11156 cat >confcache <<\_ACEOF
11157 # This file is a shell script that caches the results of configure
11158 # tests run on this system so they can be shared between configure
11159 # scripts and configure runs, see configure's option --config-cache.
11160 # It is not useful on other systems. If it contains results you don't
11161 # want to keep, you may remove or edit it.
11163 # config.status only pays attention to the cache file if you give it
11164 # the --recheck option to rerun configure.
11166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11168 # following values.
11170 _ACEOF
11172 # The following way of writing the cache mishandles newlines in values,
11173 # but we know of no workaround that is simple, portable, and efficient.
11174 # So, don't put newlines in cache variables' values.
11175 # Ultrix sh set writes to stderr and can't be redirected directly,
11176 # and sets the high bit in the cache file unless we assign to the vars.
11178 (set) 2>&1 |
11179 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11180 *ac_space=\ *)
11181 # `set' does not quote correctly, so add quotes (double-quote
11182 # substitution turns \\\\ into \\, and sed turns \\ into \).
11183 sed -n \
11184 "s/'/'\\\\''/g;
11185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11188 # `set' quotes correctly as required by POSIX, so do not add quotes.
11189 sed -n \
11190 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11192 esac;
11194 sed '
11195 t clear
11196 : clear
11197 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11198 t end
11199 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11200 : end' >>confcache
11201 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11202 if test -w $cache_file; then
11203 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11204 cat confcache >$cache_file
11205 else
11206 echo "not updating unwritable cache $cache_file"
11209 rm -f confcache
11211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11212 # Let make expand exec_prefix.
11213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11215 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11216 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11217 # trailing colons and then remove the whole line if VPATH becomes empty
11218 # (actually we leave an empty line to preserve line numbers).
11219 if test "x$srcdir" = x.; then
11220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11221 s/:*\$(srcdir):*/:/;
11222 s/:*\${srcdir}:*/:/;
11223 s/:*@srcdir@:*/:/;
11224 s/^\([^=]*=[ ]*\):*/\1/;
11225 s/:*$//;
11226 s/^[^=]*=[ ]*$//;
11230 DEFS=-DHAVE_CONFIG_H
11232 ac_libobjs=
11233 ac_ltlibobjs=
11234 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11235 # 1. Remove the extension, and $U if already installed.
11236 ac_i=`echo "$ac_i" |
11237 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11238 # 2. Add them.
11239 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11240 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11241 done
11242 LIBOBJS=$ac_libobjs
11244 LTLIBOBJS=$ac_ltlibobjs
11247 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11248 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11249 Usually this means the macro was only invoked conditionally." >&5
11250 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11251 Usually this means the macro was only invoked conditionally." >&2;}
11252 { (exit 1); exit 1; }; }
11254 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11255 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11256 Usually this means the macro was only invoked conditionally." >&5
11257 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11258 Usually this means the macro was only invoked conditionally." >&2;}
11259 { (exit 1); exit 1; }; }
11261 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11262 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11263 Usually this means the macro was only invoked conditionally." >&5
11264 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11265 Usually this means the macro was only invoked conditionally." >&2;}
11266 { (exit 1); exit 1; }; }
11269 : ${CONFIG_STATUS=./config.status}
11270 ac_clean_files_save=$ac_clean_files
11271 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11272 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11273 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11274 cat >$CONFIG_STATUS <<_ACEOF
11275 #! $SHELL
11276 # Generated by $as_me.
11277 # Run this file to recreate the current configuration.
11278 # Compiler output produced by configure, useful for debugging
11279 # configure, is in config.log if it exists.
11281 debug=false
11282 ac_cs_recheck=false
11283 ac_cs_silent=false
11284 SHELL=\${CONFIG_SHELL-$SHELL}
11285 _ACEOF
11287 cat >>$CONFIG_STATUS <<\_ACEOF
11288 ## --------------------- ##
11289 ## M4sh Initialization. ##
11290 ## --------------------- ##
11292 # Be Bourne compatible
11293 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11294 emulate sh
11295 NULLCMD=:
11296 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11297 # is contrary to our usage. Disable this feature.
11298 alias -g '${1+"$@"}'='"$@"'
11299 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11300 set -o posix
11302 DUALCASE=1; export DUALCASE # for MKS sh
11304 # Support unset when possible.
11305 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11306 as_unset=unset
11307 else
11308 as_unset=false
11312 # Work around bugs in pre-3.0 UWIN ksh.
11313 $as_unset ENV MAIL MAILPATH
11314 PS1='$ '
11315 PS2='> '
11316 PS4='+ '
11318 # NLS nuisances.
11319 for as_var in \
11320 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11321 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11322 LC_TELEPHONE LC_TIME
11324 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11325 eval $as_var=C; export $as_var
11326 else
11327 $as_unset $as_var
11329 done
11331 # Required to use basename.
11332 if expr a : '\(a\)' >/dev/null 2>&1; then
11333 as_expr=expr
11334 else
11335 as_expr=false
11338 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11339 as_basename=basename
11340 else
11341 as_basename=false
11345 # Name of the executable.
11346 as_me=`$as_basename "$0" ||
11347 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11348 X"$0" : 'X\(//\)$' \| \
11349 X"$0" : 'X\(/\)$' \| \
11350 . : '\(.\)' 2>/dev/null ||
11351 echo X/"$0" |
11352 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11353 /^X\/\(\/\/\)$/{ s//\1/; q; }
11354 /^X\/\(\/\).*/{ s//\1/; q; }
11355 s/.*/./; q'`
11358 # PATH needs CR, and LINENO needs CR and PATH.
11359 # Avoid depending upon Character Ranges.
11360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11363 as_cr_digits='0123456789'
11364 as_cr_alnum=$as_cr_Letters$as_cr_digits
11366 # The user is always right.
11367 if test "${PATH_SEPARATOR+set}" != set; then
11368 echo "#! /bin/sh" >conf$$.sh
11369 echo "exit 0" >>conf$$.sh
11370 chmod +x conf$$.sh
11371 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11372 PATH_SEPARATOR=';'
11373 else
11374 PATH_SEPARATOR=:
11376 rm -f conf$$.sh
11380 as_lineno_1=$LINENO
11381 as_lineno_2=$LINENO
11382 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11383 test "x$as_lineno_1" != "x$as_lineno_2" &&
11384 test "x$as_lineno_3" = "x$as_lineno_2" || {
11385 # Find who we are. Look in the path if we contain no path at all
11386 # relative or not.
11387 case $0 in
11388 *[\\/]* ) as_myself=$0 ;;
11389 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11395 done
11398 esac
11399 # We did not find ourselves, most probably we were run as `sh COMMAND'
11400 # in which case we are not to be found in the path.
11401 if test "x$as_myself" = x; then
11402 as_myself=$0
11404 if test ! -f "$as_myself"; then
11405 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11406 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11407 { (exit 1); exit 1; }; }
11409 case $CONFIG_SHELL in
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for as_base in sh bash ksh sh5; do
11417 case $as_dir in
11419 if ("$as_dir/$as_base" -c '
11420 as_lineno_1=$LINENO
11421 as_lineno_2=$LINENO
11422 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11423 test "x$as_lineno_1" != "x$as_lineno_2" &&
11424 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11425 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11426 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11427 CONFIG_SHELL=$as_dir/$as_base
11428 export CONFIG_SHELL
11429 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11430 fi;;
11431 esac
11432 done
11433 done
11435 esac
11437 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11438 # uniformly replaced by the line number. The first 'sed' inserts a
11439 # line-number line before each line; the second 'sed' does the real
11440 # work. The second script uses 'N' to pair each line-number line
11441 # with the numbered line, and appends trailing '-' during
11442 # substitution so that $LINENO is not a special case at line end.
11443 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11444 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11445 sed '=' <$as_myself |
11446 sed '
11448 s,$,-,
11449 : loop
11450 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11451 t loop
11452 s,-$,,
11453 s,^['$as_cr_digits']*\n,,
11454 ' >$as_me.lineno &&
11455 chmod +x $as_me.lineno ||
11456 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11457 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11458 { (exit 1); exit 1; }; }
11460 # Don't try to exec as it changes $[0], causing all sort of problems
11461 # (the dirname of $[0] is not the place where we might find the
11462 # original and so on. Autoconf is especially sensible to this).
11463 . ./$as_me.lineno
11464 # Exit status is that of the last command.
11465 exit
11469 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11470 *c*,-n*) ECHO_N= ECHO_C='
11471 ' ECHO_T=' ' ;;
11472 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11473 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11474 esac
11476 if expr a : '\(a\)' >/dev/null 2>&1; then
11477 as_expr=expr
11478 else
11479 as_expr=false
11482 rm -f conf$$ conf$$.exe conf$$.file
11483 echo >conf$$.file
11484 if ln -s conf$$.file conf$$ 2>/dev/null; then
11485 # We could just check for DJGPP; but this test a) works b) is more generic
11486 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11487 if test -f conf$$.exe; then
11488 # Don't use ln at all; we don't have any links
11489 as_ln_s='cp -p'
11490 else
11491 as_ln_s='ln -s'
11493 elif ln conf$$.file conf$$ 2>/dev/null; then
11494 as_ln_s=ln
11495 else
11496 as_ln_s='cp -p'
11498 rm -f conf$$ conf$$.exe conf$$.file
11500 if mkdir -p . 2>/dev/null; then
11501 as_mkdir_p=:
11502 else
11503 test -d ./-p && rmdir ./-p
11504 as_mkdir_p=false
11507 as_executable_p="test -f"
11509 # Sed expression to map a string onto a valid CPP name.
11510 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11512 # Sed expression to map a string onto a valid variable name.
11513 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11516 # IFS
11517 # We need space, tab and new line, in precisely that order.
11518 as_nl='
11520 IFS=" $as_nl"
11522 # CDPATH.
11523 $as_unset CDPATH
11525 exec 6>&1
11527 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11528 # report actual input values of CONFIG_FILES etc. instead of their
11529 # values after options handling. Logging --version etc. is OK.
11530 exec 5>>config.log
11532 echo
11533 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11534 ## Running $as_me. ##
11535 _ASBOX
11536 } >&5
11537 cat >&5 <<_CSEOF
11539 This file was extended by $as_me, which was
11540 generated by GNU Autoconf 2.59. Invocation command line was
11542 CONFIG_FILES = $CONFIG_FILES
11543 CONFIG_HEADERS = $CONFIG_HEADERS
11544 CONFIG_LINKS = $CONFIG_LINKS
11545 CONFIG_COMMANDS = $CONFIG_COMMANDS
11546 $ $0 $@
11548 _CSEOF
11549 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11550 echo >&5
11551 _ACEOF
11553 # Files that config.status was made for.
11554 if test -n "$ac_config_files"; then
11555 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11558 if test -n "$ac_config_headers"; then
11559 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11562 if test -n "$ac_config_links"; then
11563 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11566 if test -n "$ac_config_commands"; then
11567 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11570 cat >>$CONFIG_STATUS <<\_ACEOF
11572 ac_cs_usage="\
11573 \`$as_me' instantiates files from templates according to the
11574 current configuration.
11576 Usage: $0 [OPTIONS] [FILE]...
11578 -h, --help print this help, then exit
11579 -V, --version print version number, then exit
11580 -q, --quiet do not print progress messages
11581 -d, --debug don't remove temporary files
11582 --recheck update $as_me by reconfiguring in the same conditions
11583 --file=FILE[:TEMPLATE]
11584 instantiate the configuration file FILE
11585 --header=FILE[:TEMPLATE]
11586 instantiate the configuration header FILE
11588 Configuration files:
11589 $config_files
11591 Configuration headers:
11592 $config_headers
11594 Configuration commands:
11595 $config_commands
11597 Report bugs to <bug-autoconf@gnu.org>."
11598 _ACEOF
11600 cat >>$CONFIG_STATUS <<_ACEOF
11601 ac_cs_version="\\
11602 config.status
11603 configured by $0, generated by GNU Autoconf 2.59,
11604 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11606 Copyright (C) 2003 Free Software Foundation, Inc.
11607 This config.status script is free software; the Free Software Foundation
11608 gives unlimited permission to copy, distribute and modify it."
11609 srcdir=$srcdir
11610 INSTALL="$INSTALL"
11611 _ACEOF
11613 cat >>$CONFIG_STATUS <<\_ACEOF
11614 # If no file are specified by the user, then we need to provide default
11615 # value. By we need to know if files were specified by the user.
11616 ac_need_defaults=:
11617 while test $# != 0
11619 case $1 in
11620 --*=*)
11621 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11622 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11623 ac_shift=:
11626 ac_option=$1
11627 ac_optarg=$2
11628 ac_shift=shift
11630 *) # This is not an option, so the user has probably given explicit
11631 # arguments.
11632 ac_option=$1
11633 ac_need_defaults=false;;
11634 esac
11636 case $ac_option in
11637 # Handling of the options.
11638 _ACEOF
11639 cat >>$CONFIG_STATUS <<\_ACEOF
11640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11641 ac_cs_recheck=: ;;
11642 --version | --vers* | -V )
11643 echo "$ac_cs_version"; exit 0 ;;
11644 --he | --h)
11645 # Conflict between --help and --header
11646 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11647 Try \`$0 --help' for more information." >&5
11648 echo "$as_me: error: ambiguous option: $1
11649 Try \`$0 --help' for more information." >&2;}
11650 { (exit 1); exit 1; }; };;
11651 --help | --hel | -h )
11652 echo "$ac_cs_usage"; exit 0 ;;
11653 --debug | --d* | -d )
11654 debug=: ;;
11655 --file | --fil | --fi | --f )
11656 $ac_shift
11657 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11658 ac_need_defaults=false;;
11659 --header | --heade | --head | --hea )
11660 $ac_shift
11661 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11662 ac_need_defaults=false;;
11663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11664 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11665 ac_cs_silent=: ;;
11667 # This is an error.
11668 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11669 Try \`$0 --help' for more information." >&5
11670 echo "$as_me: error: unrecognized option: $1
11671 Try \`$0 --help' for more information." >&2;}
11672 { (exit 1); exit 1; }; } ;;
11674 *) ac_config_targets="$ac_config_targets $1" ;;
11676 esac
11677 shift
11678 done
11680 ac_configure_extra_args=
11682 if $ac_cs_silent; then
11683 exec 6>/dev/null
11684 ac_configure_extra_args="$ac_configure_extra_args --silent"
11687 _ACEOF
11688 cat >>$CONFIG_STATUS <<_ACEOF
11689 if \$ac_cs_recheck; then
11690 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11691 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11694 _ACEOF
11696 cat >>$CONFIG_STATUS <<_ACEOF
11698 # INIT-COMMANDS section.
11701 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11702 target_cpu_type=${target_cpu_type}
11703 cgen_cpu_prefix=${cgen_cpu_prefix}
11704 obj_format=${obj_format}
11705 te_file=${te_file}
11707 _ACEOF
11711 cat >>$CONFIG_STATUS <<\_ACEOF
11712 for ac_config_target in $ac_config_targets
11714 case "$ac_config_target" in
11715 # Handling of arguments.
11716 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
11717 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
11718 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11719 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11720 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11721 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11722 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11723 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11724 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11725 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11726 { (exit 1); exit 1; }; };;
11727 esac
11728 done
11730 # If the user did not use the arguments to specify the items to instantiate,
11731 # then the envvar interface is used. Set only those that are not.
11732 # We use the long form for the default assignment because of an extremely
11733 # bizarre bug on SunOS 4.1.3.
11734 if $ac_need_defaults; then
11735 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11736 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11737 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11740 # Have a temporary directory for convenience. Make it in the build tree
11741 # simply because there is no reason to put it here, and in addition,
11742 # creating and moving files from /tmp can sometimes cause problems.
11743 # Create a temporary directory, and hook for its removal unless debugging.
11744 $debug ||
11746 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11747 trap '{ (exit 1); exit 1; }' 1 2 13 15
11750 # Create a (secure) tmp directory for tmp files.
11753 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11754 test -n "$tmp" && test -d "$tmp"
11755 } ||
11757 tmp=./confstat$$-$RANDOM
11758 (umask 077 && mkdir $tmp)
11759 } ||
11761 echo "$me: cannot create a temporary directory in ." >&2
11762 { (exit 1); exit 1; }
11765 _ACEOF
11767 cat >>$CONFIG_STATUS <<_ACEOF
11770 # CONFIG_FILES section.
11773 # No need to generate the scripts if there are no CONFIG_FILES.
11774 # This happens for instance when ./config.status config.h
11775 if test -n "\$CONFIG_FILES"; then
11776 # Protect against being on the right side of a sed subst in config.status.
11777 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11778 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11779 s,@SHELL@,$SHELL,;t t
11780 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11781 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11782 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11783 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11784 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11785 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11786 s,@exec_prefix@,$exec_prefix,;t t
11787 s,@prefix@,$prefix,;t t
11788 s,@program_transform_name@,$program_transform_name,;t t
11789 s,@bindir@,$bindir,;t t
11790 s,@sbindir@,$sbindir,;t t
11791 s,@libexecdir@,$libexecdir,;t t
11792 s,@datadir@,$datadir,;t t
11793 s,@sysconfdir@,$sysconfdir,;t t
11794 s,@sharedstatedir@,$sharedstatedir,;t t
11795 s,@localstatedir@,$localstatedir,;t t
11796 s,@libdir@,$libdir,;t t
11797 s,@includedir@,$includedir,;t t
11798 s,@oldincludedir@,$oldincludedir,;t t
11799 s,@infodir@,$infodir,;t t
11800 s,@mandir@,$mandir,;t t
11801 s,@build_alias@,$build_alias,;t t
11802 s,@host_alias@,$host_alias,;t t
11803 s,@target_alias@,$target_alias,;t t
11804 s,@DEFS@,$DEFS,;t t
11805 s,@ECHO_C@,$ECHO_C,;t t
11806 s,@ECHO_N@,$ECHO_N,;t t
11807 s,@ECHO_T@,$ECHO_T,;t t
11808 s,@LIBS@,$LIBS,;t t
11809 s,@build@,$build,;t t
11810 s,@build_cpu@,$build_cpu,;t t
11811 s,@build_vendor@,$build_vendor,;t t
11812 s,@build_os@,$build_os,;t t
11813 s,@host@,$host,;t t
11814 s,@host_cpu@,$host_cpu,;t t
11815 s,@host_vendor@,$host_vendor,;t t
11816 s,@host_os@,$host_os,;t t
11817 s,@target@,$target,;t t
11818 s,@target_cpu@,$target_cpu,;t t
11819 s,@target_vendor@,$target_vendor,;t t
11820 s,@target_os@,$target_os,;t t
11821 s,@CC@,$CC,;t t
11822 s,@CFLAGS@,$CFLAGS,;t t
11823 s,@LDFLAGS@,$LDFLAGS,;t t
11824 s,@CPPFLAGS@,$CPPFLAGS,;t t
11825 s,@ac_ct_CC@,$ac_ct_CC,;t t
11826 s,@EXEEXT@,$EXEEXT,;t t
11827 s,@OBJEXT@,$OBJEXT,;t t
11828 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11829 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11830 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11831 s,@CYGPATH_W@,$CYGPATH_W,;t t
11832 s,@PACKAGE@,$PACKAGE,;t t
11833 s,@VERSION@,$VERSION,;t t
11834 s,@ACLOCAL@,$ACLOCAL,;t t
11835 s,@AUTOCONF@,$AUTOCONF,;t t
11836 s,@AUTOMAKE@,$AUTOMAKE,;t t
11837 s,@AUTOHEADER@,$AUTOHEADER,;t t
11838 s,@MAKEINFO@,$MAKEINFO,;t t
11839 s,@install_sh@,$install_sh,;t t
11840 s,@STRIP@,$STRIP,;t t
11841 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11842 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11843 s,@mkdir_p@,$mkdir_p,;t t
11844 s,@AWK@,$AWK,;t t
11845 s,@SET_MAKE@,$SET_MAKE,;t t
11846 s,@am__leading_dot@,$am__leading_dot,;t t
11847 s,@AMTAR@,$AMTAR,;t t
11848 s,@am__tar@,$am__tar,;t t
11849 s,@am__untar@,$am__untar,;t t
11850 s,@DEPDIR@,$DEPDIR,;t t
11851 s,@am__include@,$am__include,;t t
11852 s,@am__quote@,$am__quote,;t t
11853 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11854 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11855 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11856 s,@CCDEPMODE@,$CCDEPMODE,;t t
11857 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11858 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11859 s,@LN_S@,$LN_S,;t t
11860 s,@RANLIB@,$RANLIB,;t t
11861 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11862 s,@LIBTOOL@,$LIBTOOL,;t t
11863 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
11864 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11865 s,@NO_WERROR@,$NO_WERROR,;t t
11866 s,@GDBINIT@,$GDBINIT,;t t
11867 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
11868 s,@extra_objects@,$extra_objects,;t t
11869 s,@target_cpu_type@,$target_cpu_type,;t t
11870 s,@obj_format@,$obj_format,;t t
11871 s,@te_file@,$te_file,;t t
11872 s,@install_tooldir@,$install_tooldir,;t t
11873 s,@atof@,$atof,;t t
11874 s,@BFDLIB@,$BFDLIB,;t t
11875 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
11876 s,@BFDVER_H@,$BFDVER_H,;t t
11877 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
11878 s,@YACC@,$YACC,;t t
11879 s,@LEX@,$LEX,;t t
11880 s,@LEXLIB@,$LEXLIB,;t t
11881 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11882 s,@CPP@,$CPP,;t t
11883 s,@EGREP@,$EGREP,;t t
11884 s,@ALLOCA@,$ALLOCA,;t t
11885 s,@USE_NLS@,$USE_NLS,;t t
11886 s,@MSGFMT@,$MSGFMT,;t t
11887 s,@GMSGFMT@,$GMSGFMT,;t t
11888 s,@XGETTEXT@,$XGETTEXT,;t t
11889 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11890 s,@CATALOGS@,$CATALOGS,;t t
11891 s,@CATOBJEXT@,$CATOBJEXT,;t t
11892 s,@DATADIRNAME@,$DATADIRNAME,;t t
11893 s,@GMOFILES@,$GMOFILES,;t t
11894 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11895 s,@INTLDEPS@,$INTLDEPS,;t t
11896 s,@INTLLIBS@,$INTLLIBS,;t t
11897 s,@INTLOBJS@,$INTLOBJS,;t t
11898 s,@POFILES@,$POFILES,;t t
11899 s,@POSUB@,$POSUB,;t t
11900 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11901 s,@GT_NO@,$GT_NO,;t t
11902 s,@GT_YES@,$GT_YES,;t t
11903 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11904 s,@l@,$l,;t t
11905 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11906 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11907 s,@MAINT@,$MAINT,;t t
11908 s,@LIBM@,$LIBM,;t t
11909 s,@datarootdir@,$datarootdir,;t t
11910 s,@docdir@,$docdir,;t t
11911 s,@htmldir@,$htmldir,;t t
11912 s,@LIBOBJS@,$LIBOBJS,;t t
11913 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11914 CEOF
11916 _ACEOF
11918 cat >>$CONFIG_STATUS <<\_ACEOF
11919 # Split the substitutions into bite-sized pieces for seds with
11920 # small command number limits, like on Digital OSF/1 and HP-UX.
11921 ac_max_sed_lines=48
11922 ac_sed_frag=1 # Number of current file.
11923 ac_beg=1 # First line for current file.
11924 ac_end=$ac_max_sed_lines # Line after last line for current file.
11925 ac_more_lines=:
11926 ac_sed_cmds=
11927 while $ac_more_lines; do
11928 if test $ac_beg -gt 1; then
11929 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11930 else
11931 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11933 if test ! -s $tmp/subs.frag; then
11934 ac_more_lines=false
11935 else
11936 # The purpose of the label and of the branching condition is to
11937 # speed up the sed processing (if there are no `@' at all, there
11938 # is no need to browse any of the substitutions).
11939 # These are the two extra sed commands mentioned above.
11940 (echo ':t
11941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11942 if test -z "$ac_sed_cmds"; then
11943 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11944 else
11945 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11947 ac_sed_frag=`expr $ac_sed_frag + 1`
11948 ac_beg=$ac_end
11949 ac_end=`expr $ac_end + $ac_max_sed_lines`
11951 done
11952 if test -z "$ac_sed_cmds"; then
11953 ac_sed_cmds=cat
11955 fi # test -n "$CONFIG_FILES"
11957 _ACEOF
11958 cat >>$CONFIG_STATUS <<\_ACEOF
11959 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11961 case $ac_file in
11962 - | *:- | *:-:* ) # input from stdin
11963 cat >$tmp/stdin
11964 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11966 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11968 * ) ac_file_in=$ac_file.in ;;
11969 esac
11971 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11972 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11974 X"$ac_file" : 'X\(//\)[^/]' \| \
11975 X"$ac_file" : 'X\(//\)$' \| \
11976 X"$ac_file" : 'X\(/\)' \| \
11977 . : '\(.\)' 2>/dev/null ||
11978 echo X"$ac_file" |
11979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11981 /^X\(\/\/\)$/{ s//\1/; q; }
11982 /^X\(\/\).*/{ s//\1/; q; }
11983 s/.*/./; q'`
11984 { if $as_mkdir_p; then
11985 mkdir -p "$ac_dir"
11986 else
11987 as_dir="$ac_dir"
11988 as_dirs=
11989 while test ! -d "$as_dir"; do
11990 as_dirs="$as_dir $as_dirs"
11991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11993 X"$as_dir" : 'X\(//\)[^/]' \| \
11994 X"$as_dir" : 'X\(//\)$' \| \
11995 X"$as_dir" : 'X\(/\)' \| \
11996 . : '\(.\)' 2>/dev/null ||
11997 echo X"$as_dir" |
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 done
12004 test ! -n "$as_dirs" || mkdir $as_dirs
12005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12006 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12007 { (exit 1); exit 1; }; }; }
12009 ac_builddir=.
12011 if test "$ac_dir" != .; then
12012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12013 # A "../" for each directory in $ac_dir_suffix.
12014 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12015 else
12016 ac_dir_suffix= ac_top_builddir=
12019 case $srcdir in
12020 .) # No --srcdir option. We are building in place.
12021 ac_srcdir=.
12022 if test -z "$ac_top_builddir"; then
12023 ac_top_srcdir=.
12024 else
12025 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12026 fi ;;
12027 [\\/]* | ?:[\\/]* ) # Absolute path.
12028 ac_srcdir=$srcdir$ac_dir_suffix;
12029 ac_top_srcdir=$srcdir ;;
12030 *) # Relative path.
12031 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12032 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12033 esac
12035 # Do not use `cd foo && pwd` to compute absolute paths, because
12036 # the directories may not exist.
12037 case `pwd` in
12038 .) ac_abs_builddir="$ac_dir";;
12040 case "$ac_dir" in
12041 .) ac_abs_builddir=`pwd`;;
12042 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12043 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12044 esac;;
12045 esac
12046 case $ac_abs_builddir in
12047 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12049 case ${ac_top_builddir}. in
12050 .) ac_abs_top_builddir=$ac_abs_builddir;;
12051 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12052 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12053 esac;;
12054 esac
12055 case $ac_abs_builddir in
12056 .) ac_abs_srcdir=$ac_srcdir;;
12058 case $ac_srcdir in
12059 .) ac_abs_srcdir=$ac_abs_builddir;;
12060 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12061 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12062 esac;;
12063 esac
12064 case $ac_abs_builddir in
12065 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12067 case $ac_top_srcdir in
12068 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12069 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12070 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12071 esac;;
12072 esac
12075 case $INSTALL in
12076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12077 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12078 esac
12080 if test x"$ac_file" != x-; then
12081 { echo "$as_me:$LINENO: creating $ac_file" >&5
12082 echo "$as_me: creating $ac_file" >&6;}
12083 rm -f "$ac_file"
12085 # Let's still pretend it is `configure' which instantiates (i.e., don't
12086 # use $as_me), people would be surprised to read:
12087 # /* config.h. Generated by config.status. */
12088 if test x"$ac_file" = x-; then
12089 configure_input=
12090 else
12091 configure_input="$ac_file. "
12093 configure_input=$configure_input"Generated from `echo $ac_file_in |
12094 sed 's,.*/,,'` by configure."
12096 # First look for the input files in the build tree, otherwise in the
12097 # src tree.
12098 ac_file_inputs=`IFS=:
12099 for f in $ac_file_in; do
12100 case $f in
12101 -) echo $tmp/stdin ;;
12102 [\\/$]*)
12103 # Absolute (can't be DOS-style, as IFS=:)
12104 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12105 echo "$as_me: error: cannot find input file: $f" >&2;}
12106 { (exit 1); exit 1; }; }
12107 echo "$f";;
12108 *) # Relative
12109 if test -f "$f"; then
12110 # Build tree
12111 echo "$f"
12112 elif test -f "$srcdir/$f"; then
12113 # Source tree
12114 echo "$srcdir/$f"
12115 else
12116 # /dev/null tree
12117 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12118 echo "$as_me: error: cannot find input file: $f" >&2;}
12119 { (exit 1); exit 1; }; }
12120 fi;;
12121 esac
12122 done` || { (exit 1); exit 1; }
12123 _ACEOF
12124 cat >>$CONFIG_STATUS <<_ACEOF
12125 sed "$ac_vpsub
12126 $extrasub
12127 _ACEOF
12128 cat >>$CONFIG_STATUS <<\_ACEOF
12130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12131 s,@configure_input@,$configure_input,;t t
12132 s,@srcdir@,$ac_srcdir,;t t
12133 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12134 s,@top_srcdir@,$ac_top_srcdir,;t t
12135 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12136 s,@builddir@,$ac_builddir,;t t
12137 s,@abs_builddir@,$ac_abs_builddir,;t t
12138 s,@top_builddir@,$ac_top_builddir,;t t
12139 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12140 s,@INSTALL@,$ac_INSTALL,;t t
12141 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12142 rm -f $tmp/stdin
12143 if test x"$ac_file" != x-; then
12144 mv $tmp/out $ac_file
12145 else
12146 cat $tmp/out
12147 rm -f $tmp/out
12150 done
12151 _ACEOF
12152 cat >>$CONFIG_STATUS <<\_ACEOF
12155 # CONFIG_HEADER section.
12158 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12159 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12161 # ac_d sets the value in "#define NAME VALUE" lines.
12162 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12163 ac_dB='[ ].*$,\1#\2'
12164 ac_dC=' '
12165 ac_dD=',;t'
12166 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12167 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12168 ac_uB='$,\1#\2define\3'
12169 ac_uC=' '
12170 ac_uD=',;t'
12172 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12173 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12174 case $ac_file in
12175 - | *:- | *:-:* ) # input from stdin
12176 cat >$tmp/stdin
12177 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12178 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12179 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12181 * ) ac_file_in=$ac_file.in ;;
12182 esac
12184 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12185 echo "$as_me: creating $ac_file" >&6;}
12187 # First look for the input files in the build tree, otherwise in the
12188 # src tree.
12189 ac_file_inputs=`IFS=:
12190 for f in $ac_file_in; do
12191 case $f in
12192 -) echo $tmp/stdin ;;
12193 [\\/$]*)
12194 # Absolute (can't be DOS-style, as IFS=:)
12195 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12196 echo "$as_me: error: cannot find input file: $f" >&2;}
12197 { (exit 1); exit 1; }; }
12198 # Do quote $f, to prevent DOS paths from being IFS'd.
12199 echo "$f";;
12200 *) # Relative
12201 if test -f "$f"; then
12202 # Build tree
12203 echo "$f"
12204 elif test -f "$srcdir/$f"; then
12205 # Source tree
12206 echo "$srcdir/$f"
12207 else
12208 # /dev/null tree
12209 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12210 echo "$as_me: error: cannot find input file: $f" >&2;}
12211 { (exit 1); exit 1; }; }
12212 fi;;
12213 esac
12214 done` || { (exit 1); exit 1; }
12215 # Remove the trailing spaces.
12216 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12218 _ACEOF
12220 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12221 # `conftest.undefs', that substitutes the proper values into
12222 # config.h.in to produce config.h. The first handles `#define'
12223 # templates, and the second `#undef' templates.
12224 # And first: Protect against being on the right side of a sed subst in
12225 # config.status. Protect against being in an unquoted here document
12226 # in config.status.
12227 rm -f conftest.defines conftest.undefs
12228 # Using a here document instead of a string reduces the quoting nightmare.
12229 # Putting comments in sed scripts is not portable.
12231 # `end' is used to avoid that the second main sed command (meant for
12232 # 0-ary CPP macros) applies to n-ary macro definitions.
12233 # See the Autoconf documentation for `clear'.
12234 cat >confdef2sed.sed <<\_ACEOF
12235 s/[\\&,]/\\&/g
12236 s,[\\$`],\\&,g
12237 t clear
12238 : clear
12239 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12240 t end
12241 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12242 : end
12243 _ACEOF
12244 # If some macros were called several times there might be several times
12245 # the same #defines, which is useless. Nevertheless, we may not want to
12246 # sort them, since we want the *last* AC-DEFINE to be honored.
12247 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12248 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12249 rm -f confdef2sed.sed
12251 # This sed command replaces #undef with comments. This is necessary, for
12252 # example, in the case of _POSIX_SOURCE, which is predefined and required
12253 # on some systems where configure will not decide to define it.
12254 cat >>conftest.undefs <<\_ACEOF
12255 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12256 _ACEOF
12258 # Break up conftest.defines because some shells have a limit on the size
12259 # of here documents, and old seds have small limits too (100 cmds).
12260 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12261 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12262 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12263 echo ' :' >>$CONFIG_STATUS
12264 rm -f conftest.tail
12265 while grep . conftest.defines >/dev/null
12267 # Write a limited-size here document to $tmp/defines.sed.
12268 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12269 # Speed up: don't consider the non `#define' lines.
12270 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12271 # Work around the forget-to-reset-the-flag bug.
12272 echo 't clr' >>$CONFIG_STATUS
12273 echo ': clr' >>$CONFIG_STATUS
12274 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12275 echo 'CEOF
12276 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12277 rm -f $tmp/in
12278 mv $tmp/out $tmp/in
12279 ' >>$CONFIG_STATUS
12280 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12281 rm -f conftest.defines
12282 mv conftest.tail conftest.defines
12283 done
12284 rm -f conftest.defines
12285 echo ' fi # grep' >>$CONFIG_STATUS
12286 echo >>$CONFIG_STATUS
12288 # Break up conftest.undefs because some shells have a limit on the size
12289 # of here documents, and old seds have small limits too (100 cmds).
12290 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12291 rm -f conftest.tail
12292 while grep . conftest.undefs >/dev/null
12294 # Write a limited-size here document to $tmp/undefs.sed.
12295 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12296 # Speed up: don't consider the non `#undef'
12297 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12298 # Work around the forget-to-reset-the-flag bug.
12299 echo 't clr' >>$CONFIG_STATUS
12300 echo ': clr' >>$CONFIG_STATUS
12301 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12302 echo 'CEOF
12303 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12304 rm -f $tmp/in
12305 mv $tmp/out $tmp/in
12306 ' >>$CONFIG_STATUS
12307 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12308 rm -f conftest.undefs
12309 mv conftest.tail conftest.undefs
12310 done
12311 rm -f conftest.undefs
12313 cat >>$CONFIG_STATUS <<\_ACEOF
12314 # Let's still pretend it is `configure' which instantiates (i.e., don't
12315 # use $as_me), people would be surprised to read:
12316 # /* config.h. Generated by config.status. */
12317 if test x"$ac_file" = x-; then
12318 echo "/* Generated by configure. */" >$tmp/config.h
12319 else
12320 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12322 cat $tmp/in >>$tmp/config.h
12323 rm -f $tmp/in
12324 if test x"$ac_file" != x-; then
12325 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12326 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12327 echo "$as_me: $ac_file is unchanged" >&6;}
12328 else
12329 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12331 X"$ac_file" : 'X\(//\)[^/]' \| \
12332 X"$ac_file" : 'X\(//\)$' \| \
12333 X"$ac_file" : 'X\(/\)' \| \
12334 . : '\(.\)' 2>/dev/null ||
12335 echo X"$ac_file" |
12336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12338 /^X\(\/\/\)$/{ s//\1/; q; }
12339 /^X\(\/\).*/{ s//\1/; q; }
12340 s/.*/./; q'`
12341 { if $as_mkdir_p; then
12342 mkdir -p "$ac_dir"
12343 else
12344 as_dir="$ac_dir"
12345 as_dirs=
12346 while test ! -d "$as_dir"; do
12347 as_dirs="$as_dir $as_dirs"
12348 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12350 X"$as_dir" : 'X\(//\)[^/]' \| \
12351 X"$as_dir" : 'X\(//\)$' \| \
12352 X"$as_dir" : 'X\(/\)' \| \
12353 . : '\(.\)' 2>/dev/null ||
12354 echo X"$as_dir" |
12355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12357 /^X\(\/\/\)$/{ s//\1/; q; }
12358 /^X\(\/\).*/{ s//\1/; q; }
12359 s/.*/./; q'`
12360 done
12361 test ! -n "$as_dirs" || mkdir $as_dirs
12362 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12363 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12364 { (exit 1); exit 1; }; }; }
12366 rm -f $ac_file
12367 mv $tmp/config.h $ac_file
12369 else
12370 cat $tmp/config.h
12371 rm -f $tmp/config.h
12373 # Compute $ac_file's index in $config_headers.
12374 _am_stamp_count=1
12375 for _am_header in $config_headers :; do
12376 case $_am_header in
12377 $ac_file | $ac_file:* )
12378 break ;;
12380 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12381 esac
12382 done
12383 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12384 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12385 X$ac_file : 'X\(//\)[^/]' \| \
12386 X$ac_file : 'X\(//\)$' \| \
12387 X$ac_file : 'X\(/\)' \| \
12388 . : '\(.\)' 2>/dev/null ||
12389 echo X$ac_file |
12390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12392 /^X\(\/\/\)$/{ s//\1/; q; }
12393 /^X\(\/\).*/{ s//\1/; q; }
12394 s/.*/./; q'`/stamp-h$_am_stamp_count
12395 done
12396 _ACEOF
12397 cat >>$CONFIG_STATUS <<\_ACEOF
12400 # CONFIG_COMMANDS section.
12402 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12403 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12404 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12405 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12406 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12407 X"$ac_dest" : 'X\(//\)[^/]' \| \
12408 X"$ac_dest" : 'X\(//\)$' \| \
12409 X"$ac_dest" : 'X\(/\)' \| \
12410 . : '\(.\)' 2>/dev/null ||
12411 echo X"$ac_dest" |
12412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12414 /^X\(\/\/\)$/{ s//\1/; q; }
12415 /^X\(\/\).*/{ s//\1/; q; }
12416 s/.*/./; q'`
12417 { if $as_mkdir_p; then
12418 mkdir -p "$ac_dir"
12419 else
12420 as_dir="$ac_dir"
12421 as_dirs=
12422 while test ! -d "$as_dir"; do
12423 as_dirs="$as_dir $as_dirs"
12424 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12426 X"$as_dir" : 'X\(//\)[^/]' \| \
12427 X"$as_dir" : 'X\(//\)$' \| \
12428 X"$as_dir" : 'X\(/\)' \| \
12429 . : '\(.\)' 2>/dev/null ||
12430 echo X"$as_dir" |
12431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12433 /^X\(\/\/\)$/{ s//\1/; q; }
12434 /^X\(\/\).*/{ s//\1/; q; }
12435 s/.*/./; q'`
12436 done
12437 test ! -n "$as_dirs" || mkdir $as_dirs
12438 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12439 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12440 { (exit 1); exit 1; }; }; }
12442 ac_builddir=.
12444 if test "$ac_dir" != .; then
12445 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12446 # A "../" for each directory in $ac_dir_suffix.
12447 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12448 else
12449 ac_dir_suffix= ac_top_builddir=
12452 case $srcdir in
12453 .) # No --srcdir option. We are building in place.
12454 ac_srcdir=.
12455 if test -z "$ac_top_builddir"; then
12456 ac_top_srcdir=.
12457 else
12458 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12459 fi ;;
12460 [\\/]* | ?:[\\/]* ) # Absolute path.
12461 ac_srcdir=$srcdir$ac_dir_suffix;
12462 ac_top_srcdir=$srcdir ;;
12463 *) # Relative path.
12464 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12465 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12466 esac
12468 # Do not use `cd foo && pwd` to compute absolute paths, because
12469 # the directories may not exist.
12470 case `pwd` in
12471 .) ac_abs_builddir="$ac_dir";;
12473 case "$ac_dir" in
12474 .) ac_abs_builddir=`pwd`;;
12475 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12476 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12477 esac;;
12478 esac
12479 case $ac_abs_builddir in
12480 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12482 case ${ac_top_builddir}. in
12483 .) ac_abs_top_builddir=$ac_abs_builddir;;
12484 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12485 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12486 esac;;
12487 esac
12488 case $ac_abs_builddir in
12489 .) ac_abs_srcdir=$ac_srcdir;;
12491 case $ac_srcdir in
12492 .) ac_abs_srcdir=$ac_abs_builddir;;
12493 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12494 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12495 esac;;
12496 esac
12497 case $ac_abs_builddir in
12498 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12500 case $ac_top_srcdir in
12501 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12502 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12503 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12504 esac;;
12505 esac
12508 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12509 echo "$as_me: executing $ac_dest commands" >&6;}
12510 case $ac_dest in
12511 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12512 # Strip MF so we end up with the name of the file.
12513 mf=`echo "$mf" | sed -e 's/:.*$//'`
12514 # Check whether this is an Automake generated Makefile or not.
12515 # We used to match only the files named `Makefile.in', but
12516 # some people rename them; so instead we look at the file content.
12517 # Grep'ing the first line is not enough: some people post-process
12518 # each Makefile.in and add a new line on top of each file to say so.
12519 # So let's grep whole file.
12520 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12521 dirpart=`(dirname "$mf") 2>/dev/null ||
12522 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12523 X"$mf" : 'X\(//\)[^/]' \| \
12524 X"$mf" : 'X\(//\)$' \| \
12525 X"$mf" : 'X\(/\)' \| \
12526 . : '\(.\)' 2>/dev/null ||
12527 echo X"$mf" |
12528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12530 /^X\(\/\/\)$/{ s//\1/; q; }
12531 /^X\(\/\).*/{ s//\1/; q; }
12532 s/.*/./; q'`
12533 else
12534 continue
12536 # Extract the definition of DEPDIR, am__include, and am__quote
12537 # from the Makefile without running `make'.
12538 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12539 test -z "$DEPDIR" && continue
12540 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12541 test -z "am__include" && continue
12542 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12543 # When using ansi2knr, U may be empty or an underscore; expand it
12544 U=`sed -n 's/^U = //p' < "$mf"`
12545 # Find all dependency output files, they are included files with
12546 # $(DEPDIR) in their names. We invoke sed twice because it is the
12547 # simplest approach to changing $(DEPDIR) to its actual value in the
12548 # expansion.
12549 for file in `sed -n "
12550 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12551 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12552 # Make sure the directory exists.
12553 test -f "$dirpart/$file" && continue
12554 fdir=`(dirname "$file") 2>/dev/null ||
12555 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12556 X"$file" : 'X\(//\)[^/]' \| \
12557 X"$file" : 'X\(//\)$' \| \
12558 X"$file" : 'X\(/\)' \| \
12559 . : '\(.\)' 2>/dev/null ||
12560 echo X"$file" |
12561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12563 /^X\(\/\/\)$/{ s//\1/; q; }
12564 /^X\(\/\).*/{ s//\1/; q; }
12565 s/.*/./; q'`
12566 { if $as_mkdir_p; then
12567 mkdir -p $dirpart/$fdir
12568 else
12569 as_dir=$dirpart/$fdir
12570 as_dirs=
12571 while test ! -d "$as_dir"; do
12572 as_dirs="$as_dir $as_dirs"
12573 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12575 X"$as_dir" : 'X\(//\)[^/]' \| \
12576 X"$as_dir" : 'X\(//\)$' \| \
12577 X"$as_dir" : 'X\(/\)' \| \
12578 . : '\(.\)' 2>/dev/null ||
12579 echo X"$as_dir" |
12580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12582 /^X\(\/\/\)$/{ s//\1/; q; }
12583 /^X\(\/\).*/{ s//\1/; q; }
12584 s/.*/./; q'`
12585 done
12586 test ! -n "$as_dirs" || mkdir $as_dirs
12587 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12588 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12589 { (exit 1); exit 1; }; }; }
12591 # echo "creating $dirpart/$file"
12592 echo '# dummy' > "$dirpart/$file"
12593 done
12594 done
12596 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
12597 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
12598 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
12599 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
12600 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
12601 if test "x$cgen_cpu_prefix" != x ; then
12602 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
12605 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12606 esac
12607 done
12608 _ACEOF
12610 cat >>$CONFIG_STATUS <<\_ACEOF
12612 { (exit 0); exit 0; }
12613 _ACEOF
12614 chmod +x $CONFIG_STATUS
12615 ac_clean_files=$ac_clean_files_save
12618 # configure is writing to config.log, and then calls config.status.
12619 # config.status does its own redirection, appending to config.log.
12620 # Unfortunately, on DOS this fails, as config.log is still kept open
12621 # by configure, so config.status won't be able to write to it; its
12622 # output is simply discarded. So we exec the FD to /dev/null,
12623 # effectively closing config.log, so it can be properly (re)opened and
12624 # appended to by config.status. When coming back to configure, we
12625 # need to make the FD available again.
12626 if test "$no_create" != yes; then
12627 ac_cs_success=:
12628 ac_config_status_args=
12629 test "$silent" = yes &&
12630 ac_config_status_args="$ac_config_status_args --quiet"
12631 exec 5>/dev/null
12632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12633 exec 5>>config.log
12634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12635 # would make configure fail if this is the last instruction.
12636 $ac_cs_success || { (exit 1); exit 1; }