2006-10-26 Joseph S. Myers <joseph@codesourcery.com>
[binutils.git] / gas / configure
blob4a1a68372cd3d69dde6a1046a32de5ba14c4cd3b
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 WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP EGREP ALLOCA 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
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
885 _ACEOF
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900 ac_dir_suffix= ac_top_builddir=
903 case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956 esac
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 cd $ac_popdir
974 done
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979 cat <<\_ACEOF
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
984 _ACEOF
985 exit 0
987 exec 5>config.log
988 cat >&5 <<_ACEOF
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.59. Invocation command line was
995 $ $0 $@
997 _ACEOF
999 cat <<_ASUNAME
1000 ## --------- ##
1001 ## Platform. ##
1002 ## --------- ##
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021 _ASUNAME
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 for as_dir in $PATH
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029 done
1031 } >&5
1033 cat >&5 <<_ACEOF
1036 ## ----------- ##
1037 ## Core tests. ##
1038 ## ----------- ##
1040 _ACEOF
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_configure_args=
1049 ac_configure_args0=
1050 ac_configure_args1=
1051 ac_sep=
1052 ac_must_keep_next=false
1053 for ac_pass in 1 2
1055 for ac_arg
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1071 else
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1081 -* ) ac_must_keep_next=true ;;
1082 esac
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
1088 esac
1089 done
1090 done
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log. We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close' the trap.
1099 trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1102 echo
1104 cat <<\_ASBOX
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1108 _ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120 sed -n \
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 esac;
1125 echo
1127 cat <<\_ASBOX
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1131 _ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142 ## ------------- ##
1143 ## Output files. ##
1144 ## ------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157 ## ----------- ##
1158 ## confdefs.h. ##
1159 ## ----------- ##
1160 _ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1173 for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 done
1176 ac_signal=0
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181 echo >confdefs.h
1183 # Predefined preprocessor variables.
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 _ACEOF
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1224 . "$ac_site_file"
1226 done
1228 if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1239 else
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1245 # Check that the precious variables saved in the cache have kept the same
1246 # value.
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269 echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271 echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1287 done
1288 if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1296 ac_ext=c
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321 ac_aux_dir=
1322 for ac_dir in .. $srcdir/..; do
1323 if test -f $ac_dir/install-sh; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1326 break
1327 elif test -f $ac_dir/install.sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1330 break
1331 elif test -f $ac_dir/shtool; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 break
1336 done
1337 if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1340 { (exit 1); exit 1; }; }
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346 # Make sure we can run config.sub.
1347 $ac_config_sub sun4 >/dev/null 2>&1 ||
1348 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350 { (exit 1); exit 1; }; }
1352 echo "$as_me:$LINENO: checking build system type" >&5
1353 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354 if test "${ac_cv_build+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 else
1357 ac_cv_build_alias=$build_alias
1358 test -z "$ac_cv_build_alias" &&
1359 ac_cv_build_alias=`$ac_config_guess`
1360 test -z "$ac_cv_build_alias" &&
1361 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363 { (exit 1); exit 1; }; }
1364 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1370 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371 echo "${ECHO_T}$ac_cv_build" >&6
1372 build=$ac_cv_build
1373 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378 echo "$as_me:$LINENO: checking host system type" >&5
1379 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380 if test "${ac_cv_host+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383 ac_cv_host_alias=$host_alias
1384 test -z "$ac_cv_host_alias" &&
1385 ac_cv_host_alias=$ac_cv_build_alias
1386 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1392 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393 echo "${ECHO_T}$ac_cv_host" >&6
1394 host=$ac_cv_host
1395 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:$LINENO: checking target system type" >&5
1401 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402 if test "${ac_cv_target+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405 ac_cv_target_alias=$target_alias
1406 test "x$ac_cv_target_alias" = "x" &&
1407 ac_cv_target_alias=$ac_cv_host_alias
1408 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1415 echo "${ECHO_T}$ac_cv_target" >&6
1416 target=$ac_cv_target
1417 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 # The aliases save the names the user supplied, while $host etc.
1423 # will get canonicalized.
1424 test -n "$target_alias" &&
1425 test "$program_prefix$program_suffix$program_transform_name" = \
1426 NONENONEs,x,x, &&
1427 program_prefix=${target_alias}-
1428 ac_ext=c
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433 if test -n "$ac_tool_prefix"; then
1434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1443 else
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1447 IFS=$as_save_IFS
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 break 2
1455 done
1456 done
1460 CC=$ac_cv_prog_CC
1461 if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1464 else
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1470 if test -z "$ac_cv_prog_CC"; then
1471 ac_ct_CC=$CC
1472 # Extract the first word of "gcc", so it can be a program name with args.
1473 set dummy gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_ac_ct_CC="gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1493 done
1494 done
1498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499 if test -n "$ac_ct_CC"; then
1500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501 echo "${ECHO_T}$ac_ct_CC" >&6
1502 else
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 CC=$ac_ct_CC
1508 else
1509 CC="$ac_cv_prog_CC"
1512 if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 if test -n "$CC"; then
1522 ac_cv_prog_CC="$CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_CC="${ac_tool_prefix}cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1535 done
1536 done
1540 CC=$ac_cv_prog_CC
1541 if test -n "$CC"; then
1542 echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1544 else
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1550 if test -z "$ac_cv_prog_CC"; then
1551 ac_ct_CC=$CC
1552 # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 if test -n "$ac_ct_CC"; then
1560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_ac_ct_CC="cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 break 2
1573 done
1574 done
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1582 else
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1587 CC=$ac_ct_CC
1588 else
1589 CC="$ac_cv_prog_CC"
1593 if test -z "$CC"; then
1594 # Extract the first word of "cc", so it can be a program name with args.
1595 set dummy cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 else
1604 ac_prog_rejected=no
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613 ac_prog_rejected=yes
1614 continue
1616 ac_cv_prog_CC="cc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1620 done
1621 done
1623 if test $ac_prog_rejected = yes; then
1624 # We found a bogon in the path, so make sure we never use it.
1625 set dummy $ac_cv_prog_CC
1626 shift
1627 if test $# != 0; then
1628 # We chose a different compiler from the bogus one.
1629 # However, it has the same basename, so the bogon will be chosen
1630 # first if we set CC to just the basename; use the full file name.
1631 shift
1632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637 CC=$ac_cv_prog_CC
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1641 else
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1647 if test -z "$CC"; then
1648 if test -n "$ac_tool_prefix"; then
1649 for ac_prog in cl
1651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1672 done
1673 done
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1686 test -n "$CC" && break
1687 done
1689 if test -z "$CC"; then
1690 ac_ct_CC=$CC
1691 for ac_prog in cl
1693 # Extract the first word of "$ac_prog", so it can be a program name with args.
1694 set dummy $ac_prog; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702 else
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="$ac_prog"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1714 done
1715 done
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1728 test -n "$ac_ct_CC" && break
1729 done
1731 CC=$ac_ct_CC
1737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746 ac_compiler=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1763 cat >conftest.$ac_ext <<_ACEOF
1764 /* confdefs.h. */
1765 _ACEOF
1766 cat confdefs.h >>conftest.$ac_ext
1767 cat >>conftest.$ac_ext <<_ACEOF
1768 /* end confdefs.h. */
1771 main ()
1775 return 0;
1777 _ACEOF
1778 ac_clean_files_save=$ac_clean_files
1779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780 # Try to create an executable without -o first, disregard a.out.
1781 # It will help us diagnose broken compilers, and finding out an intuition
1782 # of exeext.
1783 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787 (eval $ac_link_default) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; then
1791 # Find the output, starting from the most likely. This scheme is
1792 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # resort.
1795 # Be careful to initialize this variable, since it used to be cached.
1796 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1797 ac_cv_exeext=
1798 # b.out is created by i960 compilers.
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 test -f "$ac_file" || continue
1802 case $ac_file in
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805 conftest.$ac_ext )
1806 # This is the source file.
1808 [ab].out )
1809 # We found the default executable, but exeext='' is most
1810 # certainly right.
1811 break;;
1812 *.* )
1813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 # FIXME: I believe we export ac_cv_exeext for Libtool,
1815 # but it would be cool to find out if it's true. Does anybody
1816 # maintain Libtool? --akim.
1817 export ac_cv_exeext
1818 break;;
1820 break;;
1821 esac
1822 done
1823 else
1824 echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&2;}
1831 { (exit 77); exit 77; }; }
1834 ac_exeext=$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_file" >&5
1836 echo "${ECHO_T}$ac_file" >&6
1838 # Check the compiler produces executables we can run. If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843 # If not cross compiling, check that we can run a simple program.
1844 if test "$cross_compiling" != yes; then
1845 if { ac_try='./$ac_file'
1846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 (eval $ac_try) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; }; then
1851 cross_compiling=no
1852 else
1853 if test "$cross_compiling" = maybe; then
1854 cross_compiling=yes
1855 else
1856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&2;}
1862 { (exit 1); exit 1; }; }
1866 echo "$as_me:$LINENO: result: yes" >&5
1867 echo "${ECHO_T}yes" >&6
1869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run. If not, either
1872 # the compiler is broken, or we cross compile.
1873 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876 echo "${ECHO_T}$cross_compiling" >&6
1878 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881 (eval $ac_link) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; then
1885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1888 # `rm'.
1889 for ac_file in conftest.exe conftest conftest.*; do
1890 test -f "$ac_file" || continue
1891 case $ac_file in
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1894 export ac_cv_exeext
1895 break;;
1896 * ) break;;
1897 esac
1898 done
1899 else
1900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&2;}
1904 { (exit 1); exit 1; }; }
1907 rm -f conftest$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909 echo "${ECHO_T}$ac_cv_exeext" >&6
1911 rm -f conftest.$ac_ext
1912 EXEEXT=$ac_cv_exeext
1913 ac_exeext=$EXEEXT
1914 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916 if test "${ac_cv_objext+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h. */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1927 main ()
1931 return 0;
1933 _ACEOF
1934 rm -f conftest.o conftest.obj
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941 case $ac_file in
1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1944 break;;
1945 esac
1946 done
1947 else
1948 echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961 echo "${ECHO_T}$ac_cv_objext" >&6
1962 OBJEXT=$ac_cv_objext
1963 ac_objext=$OBJEXT
1964 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1977 main ()
1979 #ifndef __GNUC__
1980 choke me
1981 #endif
1984 return 0;
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_compiler_gnu=yes
2010 else
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2014 ac_compiler_gnu=no
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2025 CFLAGS="-g"
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h. */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2039 main ()
2043 return 0;
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2049 ac_status=$?
2050 grep -v '^ *+' conftest.er1 >conftest.err
2051 rm -f conftest.er1
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag"
2056 || test ! -s conftest.err'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 (eval $ac_try) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 ac_cv_prog_cc_g=yes
2069 else
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2073 ac_cv_prog_cc_g=no
2075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079 if test "$ac_test_CFLAGS" = set; then
2080 CFLAGS=$ac_save_CFLAGS
2081 elif test $ac_cv_prog_cc_g = yes; then
2082 if test "$GCC" = yes; then
2083 CFLAGS="-g -O2"
2084 else
2085 CFLAGS="-g"
2087 else
2088 if test "$GCC" = yes; then
2089 CFLAGS="-O2"
2090 else
2091 CFLAGS=
2094 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 ac_cv_prog_cc_stdc=no
2100 ac_save_CC=$CC
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h. */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2107 #include <stdarg.h>
2108 #include <stdio.h>
2109 #include <sys/types.h>
2110 #include <sys/stat.h>
2111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112 struct buf { int x; };
2113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (p, i)
2115 char **p;
2116 int i;
2118 return p[i];
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2122 char *s;
2123 va_list v;
2124 va_start (v,p);
2125 s = g (p, va_arg (v,int));
2126 va_end (v);
2127 return s;
2130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2131 function prototypes and stuff, but not '\xHH' hex character constants.
2132 These don't provoke an error unfortunately, instead are silently treated
2133 as 'x'. The following induces an error, until -std1 is added to get
2134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2135 array size at least. It's necessary to write '\x00'==0 to get something
2136 that's true only with -std1. */
2137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139 int test (int i, double x);
2140 struct s1 {int (*f) (int a);};
2141 struct s2 {int (*f) (double a);};
2142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2143 int argc;
2144 char **argv;
2146 main ()
2148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2150 return 0;
2152 _ACEOF
2153 # Don't try gcc -ansi; that turns off useful extensions and
2154 # breaks some systems' header files.
2155 # AIX -qlanglvl=ansi
2156 # Ultrix and OSF/1 -std1
2157 # HP-UX 10.20 and later -Ae
2158 # HP-UX older versions -Aa -D_HPUX_SOURCE
2159 # SVR4 -Xc -D__EXTENSIONS__
2160 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162 CC="$ac_save_CC $ac_arg"
2163 rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>conftest.er1
2166 ac_status=$?
2167 grep -v '^ *+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -z "$ac_c_werror_flag"
2173 || test ! -s conftest.err'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 ac_cv_prog_cc_stdc=$ac_arg
2186 break
2187 else
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2192 rm -f conftest.err conftest.$ac_objext
2193 done
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2195 CC=$ac_save_CC
2199 case "x$ac_cv_prog_cc_stdc" in
2200 x|xno)
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 esac
2209 # Some people use a C++ compiler to compile C. Since we use `exit',
2210 # in C++ we need to declare it. In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #ifndef __cplusplus
2215 choke me
2216 #endif
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2221 ac_status=$?
2222 grep -v '^ *+' conftest.er1 >conftest.err
2223 rm -f conftest.er1
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 for ac_declaration in \
2241 '' \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2246 'void exit (int);'
2248 cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h. */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2254 $ac_declaration
2255 #include <stdlib.h>
2257 main ()
2259 exit (42);
2261 return 0;
2263 _ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2267 ac_status=$?
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_c_werror_flag"
2274 || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2287 else
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 continue
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h. */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2300 $ac_declaration
2302 main ()
2304 exit (42);
2306 return 0;
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 break
2332 else
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 done
2339 rm -f conftest*
2340 if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2346 else
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_ext=c
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2360 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2361 if test "${ac_cv_search_strerror+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 ac_func_search_save_LIBS=$LIBS
2365 ac_cv_search_strerror=no
2366 cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h. */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2373 /* Override any gcc2 internal prototype to avoid an error. */
2374 #ifdef __cplusplus
2375 extern "C"
2376 #endif
2377 /* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379 char strerror ();
2381 main ()
2383 strerror ();
2385 return 0;
2387 _ACEOF
2388 rm -f conftest.$ac_objext conftest$ac_exeext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag"
2398 || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest$ac_exeext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 ac_cv_search_strerror="none required"
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f conftest.err conftest.$ac_objext \
2417 conftest$ac_exeext conftest.$ac_ext
2418 if test "$ac_cv_search_strerror" = no; then
2419 for ac_lib in cposix; do
2420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2421 cat >conftest.$ac_ext <<_ACEOF
2422 /* confdefs.h. */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2428 /* Override any gcc2 internal prototype to avoid an error. */
2429 #ifdef __cplusplus
2430 extern "C"
2431 #endif
2432 /* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */
2434 char strerror ();
2436 main ()
2438 strerror ();
2440 return 0;
2442 _ACEOF
2443 rm -f conftest.$ac_objext conftest$ac_exeext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest$ac_exeext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_search_strerror="-l$ac_lib"
2466 break
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.err conftest.$ac_objext \
2473 conftest$ac_exeext conftest.$ac_ext
2474 done
2476 LIBS=$ac_func_search_save_LIBS
2478 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2479 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2480 if test "$ac_cv_search_strerror" != no; then
2481 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2486 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2487 am__api_version="1.9"
2488 # Find a good install program. We prefer a C program (faster),
2489 # so one script is as good as another. But avoid the broken or
2490 # incompatible versions:
2491 # SysV /etc/install, /usr/sbin/install
2492 # SunOS /usr/etc/install
2493 # IRIX /sbin/install
2494 # AIX /bin/install
2495 # AmigaOS /C/install, which installs bootblocks on floppy discs
2496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499 # OS/2's system install, which has a completely different semantic
2500 # ./install, which can be erroneously created by make from ./install.sh.
2501 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2502 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2503 if test -z "$INSTALL"; then
2504 if test "${ac_cv_path_install+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513 case $as_dir/ in
2514 ./ | .// | /cC/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2517 /usr/ucb/* ) ;;
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2533 else
2534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535 break 3
2538 done
2539 done
2541 esac
2542 done
2546 if test "${ac_cv_path_install+set}" = set; then
2547 INSTALL=$ac_cv_path_install
2548 else
2549 # As a last resort, use the slow shell script. We don't cache a
2550 # path for INSTALL within a source directory, because that will
2551 # break other packages using the cache if that directory is
2552 # removed, or if the path is relative.
2553 INSTALL=$ac_install_sh
2556 echo "$as_me:$LINENO: result: $INSTALL" >&5
2557 echo "${ECHO_T}$INSTALL" >&6
2559 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2560 # It thinks the first close brace ends the variable substitution.
2561 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2565 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2568 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2569 # Just in case
2570 sleep 1
2571 echo timestamp > conftest.file
2572 # Do `set' in a subshell so we don't clobber the current shell's
2573 # arguments. Must try -L first in case configure is actually a
2574 # symlink; some systems play weird games with the mod time of symlinks
2575 # (eg FreeBSD returns the mod time of the symlink's containing
2576 # directory).
2577 if (
2578 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2579 if test "$*" = "X"; then
2580 # -L didn't work.
2581 set X `ls -t $srcdir/configure conftest.file`
2583 rm -f conftest.file
2584 if test "$*" != "X $srcdir/configure conftest.file" \
2585 && test "$*" != "X conftest.file $srcdir/configure"; then
2587 # If neither matched, then we have a broken ls. This can happen
2588 # if, for instance, CONFIG_SHELL is bash and it inherits a
2589 # broken ls alias from the environment. This has actually
2590 # happened. Such a system could not be considered "sane".
2591 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2592 alias in your environment" >&5
2593 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2594 alias in your environment" >&2;}
2595 { (exit 1); exit 1; }; }
2598 test "$2" = conftest.file
2600 then
2601 # Ok.
2603 else
2604 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2605 Check your system clock" >&5
2606 echo "$as_me: error: newly created file is older than distributed files!
2607 Check your system clock" >&2;}
2608 { (exit 1); exit 1; }; }
2610 echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2612 test "$program_prefix" != NONE &&
2613 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2614 # Use a double $ so make ignores it.
2615 test "$program_suffix" != NONE &&
2616 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2617 # Double any \ or $. echo might interpret backslashes.
2618 # By default was `s,x,x', remove it if useless.
2619 cat <<\_ACEOF >conftest.sed
2620 s/[\\$]/&&/g;s/;s,x,x,$//
2621 _ACEOF
2622 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2623 rm conftest.sed
2625 # expand $ac_aux_dir to an absolute path
2626 am_aux_dir=`cd $ac_aux_dir && pwd`
2628 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2629 # Use eval to expand $SHELL
2630 if eval "$MISSING --run true"; then
2631 am_missing_run="$MISSING --run "
2632 else
2633 am_missing_run=
2634 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2635 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2639 # We used to keeping the `.' as first argument, in order to
2640 # allow $(mkdir_p) to be used without argument. As in
2641 # $(mkdir_p) $(somedir)
2642 # where $(somedir) is conditionally defined. However this is wrong
2643 # for two reasons:
2644 # 1. if the package is installed by a user who cannot write `.'
2645 # make install will fail,
2646 # 2. the above comment should most certainly read
2647 # $(mkdir_p) $(DESTDIR)$(somedir)
2648 # so it does not work when $(somedir) is undefined and
2649 # $(DESTDIR) is not.
2650 # To support the latter case, we have to write
2651 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2652 # so the `.' trick is pointless.
2653 mkdir_p='mkdir -p --'
2654 else
2655 # On NextStep and OpenStep, the `mkdir' command does not
2656 # recognize any option. It will interpret all options as
2657 # directories to create, and then abort because `.' already
2658 # exists.
2659 for d in ./-p ./--version;
2661 test -d $d && rmdir $d
2662 done
2663 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2664 if test -f "$ac_aux_dir/mkinstalldirs"; then
2665 mkdir_p='$(mkinstalldirs)'
2666 else
2667 mkdir_p='$(install_sh) -d'
2671 for ac_prog in gawk mawk nawk awk
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677 if test "${ac_cv_prog_AWK+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 if test -n "$AWK"; then
2681 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_AWK="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2694 done
2695 done
2699 AWK=$ac_cv_prog_AWK
2700 if test -n "$AWK"; then
2701 echo "$as_me:$LINENO: result: $AWK" >&5
2702 echo "${ECHO_T}$AWK" >&6
2703 else
2704 echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6
2708 test -n "$AWK" && break
2709 done
2711 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2713 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2714 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 else
2717 cat >conftest.make <<\_ACEOF
2718 all:
2719 @echo 'ac_maketemp="$(MAKE)"'
2720 _ACEOF
2721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2722 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2723 if test -n "$ac_maketemp"; then
2724 eval ac_cv_prog_make_${ac_make}_set=yes
2725 else
2726 eval ac_cv_prog_make_${ac_make}_set=no
2728 rm -f conftest.make
2730 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2731 echo "$as_me:$LINENO: result: yes" >&5
2732 echo "${ECHO_T}yes" >&6
2733 SET_MAKE=
2734 else
2735 echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2737 SET_MAKE="MAKE=${MAKE-make}"
2740 rm -rf .tst 2>/dev/null
2741 mkdir .tst 2>/dev/null
2742 if test -d .tst; then
2743 am__leading_dot=.
2744 else
2745 am__leading_dot=_
2747 rmdir .tst 2>/dev/null
2749 DEPDIR="${am__leading_dot}deps"
2751 ac_config_commands="$ac_config_commands depfiles"
2754 am_make=${MAKE-make}
2755 cat > confinc << 'END'
2756 am__doit:
2757 @echo done
2758 .PHONY: am__doit
2760 # If we don't find an include directive, just comment out the code.
2761 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2763 am__include="#"
2764 am__quote=
2765 _am_result=none
2766 # First try GNU make style include.
2767 echo "include confinc" > confmf
2768 # We grep out `Entering directory' and `Leaving directory'
2769 # messages which can occur if `w' ends up in MAKEFLAGS.
2770 # In particular we don't look at `^make:' because GNU make might
2771 # be invoked under some other name (usually "gmake"), in which
2772 # case it prints its new name instead of `make'.
2773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2774 am__include=include
2775 am__quote=
2776 _am_result=GNU
2778 # Now try BSD make style include.
2779 if test "$am__include" = "#"; then
2780 echo '.include "confinc"' > confmf
2781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2782 am__include=.include
2783 am__quote="\""
2784 _am_result=BSD
2789 echo "$as_me:$LINENO: result: $_am_result" >&5
2790 echo "${ECHO_T}$_am_result" >&6
2791 rm -f confinc confmf
2793 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2794 if test "${enable_dependency_tracking+set}" = set; then
2795 enableval="$enable_dependency_tracking"
2798 if test "x$enable_dependency_tracking" != xno; then
2799 am_depcomp="$ac_aux_dir/depcomp"
2800 AMDEPBACKSLASH='\'
2804 if test "x$enable_dependency_tracking" != xno; then
2805 AMDEP_TRUE=
2806 AMDEP_FALSE='#'
2807 else
2808 AMDEP_TRUE='#'
2809 AMDEP_FALSE=
2814 # test to see if srcdir already configured
2815 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2816 test -f $srcdir/config.status; then
2817 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2818 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2819 { (exit 1); exit 1; }; }
2822 # test whether we have cygpath
2823 if test -z "$CYGPATH_W"; then
2824 if (cygpath --version) >/dev/null 2>/dev/null; then
2825 CYGPATH_W='cygpath -w'
2826 else
2827 CYGPATH_W=echo
2832 # Define the identity of the package.
2833 PACKAGE=gas
2834 VERSION=${BFD_VERSION}
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE "$PACKAGE"
2839 _ACEOF
2842 cat >>confdefs.h <<_ACEOF
2843 #define VERSION "$VERSION"
2844 _ACEOF
2846 # Some tools Automake needs.
2848 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2851 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2854 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2857 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2860 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2862 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2864 # Installed binaries are usually stripped using `strip' when the user
2865 # run `make install-strip'. However `strip' might not be the right
2866 # tool to use in cross-compilation environments, therefore Automake
2867 # will honor the `STRIP' environment variable to overrule this program.
2868 if test "$cross_compiling" != no; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}strip; ac_word=$2
2872 echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874 if test "${ac_cv_prog_STRIP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$STRIP"; then
2878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2891 done
2892 done
2896 STRIP=$ac_cv_prog_STRIP
2897 if test -n "$STRIP"; then
2898 echo "$as_me:$LINENO: result: $STRIP" >&5
2899 echo "${ECHO_T}$STRIP" >&6
2900 else
2901 echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2906 if test -z "$ac_cv_prog_STRIP"; then
2907 ac_ct_STRIP=$STRIP
2908 # Extract the first word of "strip", so it can be a program name with args.
2909 set dummy strip; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$ac_ct_STRIP"; then
2916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_ac_ct_STRIP="strip"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2932 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936 if test -n "$ac_ct_STRIP"; then
2937 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2938 echo "${ECHO_T}$ac_ct_STRIP" >&6
2939 else
2940 echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2944 STRIP=$ac_ct_STRIP
2945 else
2946 STRIP="$ac_cv_prog_STRIP"
2950 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2952 # We need awk for the "check" target. The system "awk" is bad on
2953 # some platforms.
2954 # Always define AMTAR for backward compatibility.
2956 AMTAR=${AMTAR-"${am_missing_run}tar"}
2958 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963 depcc="$CC" am_compiler_list=
2965 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2967 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971 # We make a subdir and do the tests there. Otherwise we can end up
2972 # making bogus files that we don't know about and never remove. For
2973 # instance it was reported that on HP-UX the gcc test will end up
2974 # making a dummy file named `D' -- because `-MD' means `put the output
2975 # in D'.
2976 mkdir conftest.dir
2977 # Copy depcomp to subdir because otherwise we won't find it if we're
2978 # using a relative directory.
2979 cp "$am_depcomp" conftest.dir
2980 cd conftest.dir
2981 # We will build objects and dependencies in a subdirectory because
2982 # it helps to detect inapplicable dependency modes. For instance
2983 # both Tru64's cc and ICC support -MD to output dependencies as a
2984 # side effect of compilation, but ICC will put the dependencies in
2985 # the current directory while Tru64 will put them in the object
2986 # directory.
2987 mkdir sub
2989 am_cv_CC_dependencies_compiler_type=none
2990 if test "$am_compiler_list" = ""; then
2991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2993 for depmode in $am_compiler_list; do
2994 # Setup a source with many dependencies, because some compilers
2995 # like to wrap large dependency lists on column 80 (with \), and
2996 # we should not choose a depcomp mode which is confused by this.
2998 # We need to recreate these files for each test, as the compiler may
2999 # overwrite some of them when testing with obscure command lines.
3000 # This happens at least with the AIX C compiler.
3001 : > sub/conftest.c
3002 for i in 1 2 3 4 5 6; do
3003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3004 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3005 # Solaris 8's {/usr,}/bin/sh.
3006 touch sub/conftst$i.h
3007 done
3008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3010 case $depmode in
3011 nosideeffect)
3012 # after this tag, mechanisms are not by side-effect, so they'll
3013 # only be used when explicitly requested
3014 if test "x$enable_dependency_tracking" = xyes; then
3015 continue
3016 else
3017 break
3020 none) break ;;
3021 esac
3022 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3023 # mode. It turns out that the SunPro C++ compiler does not properly
3024 # handle `-M -o', and we need to detect this.
3025 if depmode=$depmode \
3026 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3027 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3028 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3029 >/dev/null 2>conftest.err &&
3030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3031 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3033 # icc doesn't choke on unknown options, it will just issue warnings
3034 # or remarks (even with -Werror). So we grep stderr for any message
3035 # that says an option was ignored or not supported.
3036 # When given -MP, icc 7.0 and 7.1 complain thusly:
3037 # icc: Command line warning: ignoring option '-M'; no argument required
3038 # The diagnosis changed in icc 8.0:
3039 # icc: Command line remark: option '-MP' not supported
3040 if (grep 'ignoring option' conftest.err ||
3041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3042 am_cv_CC_dependencies_compiler_type=$depmode
3043 break
3046 done
3048 cd ..
3049 rm -rf conftest.dir
3050 else
3051 am_cv_CC_dependencies_compiler_type=none
3055 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3056 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3057 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3062 test "x$enable_dependency_tracking" != xno \
3063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3064 am__fastdepCC_TRUE=
3065 am__fastdepCC_FALSE='#'
3066 else
3067 am__fastdepCC_TRUE='#'
3068 am__fastdepCC_FALSE=
3074 # Check whether --enable-shared or --disable-shared was given.
3075 if test "${enable_shared+set}" = set; then
3076 enableval="$enable_shared"
3077 p=${PACKAGE-default}
3078 case $enableval in
3079 yes) enable_shared=yes ;;
3080 no) enable_shared=no ;;
3082 enable_shared=no
3083 # Look at the argument we got. We use all the common list separators.
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3085 for pkg in $enableval; do
3086 if test "X$pkg" = "X$p"; then
3087 enable_shared=yes
3089 done
3090 IFS="$ac_save_ifs"
3092 esac
3093 else
3094 enable_shared=yes
3096 # Check whether --enable-static or --disable-static was given.
3097 if test "${enable_static+set}" = set; then
3098 enableval="$enable_static"
3099 p=${PACKAGE-default}
3100 case $enableval in
3101 yes) enable_static=yes ;;
3102 no) enable_static=no ;;
3104 enable_static=no
3105 # Look at the argument we got. We use all the common list separators.
3106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3107 for pkg in $enableval; do
3108 if test "X$pkg" = "X$p"; then
3109 enable_static=yes
3111 done
3112 IFS="$ac_save_ifs"
3114 esac
3115 else
3116 enable_static=yes
3118 # Check whether --enable-fast-install or --disable-fast-install was given.
3119 if test "${enable_fast_install+set}" = set; then
3120 enableval="$enable_fast_install"
3121 p=${PACKAGE-default}
3122 case $enableval in
3123 yes) enable_fast_install=yes ;;
3124 no) enable_fast_install=no ;;
3126 enable_fast_install=no
3127 # Look at the argument we got. We use all the common list separators.
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3129 for pkg in $enableval; do
3130 if test "X$pkg" = "X$p"; then
3131 enable_fast_install=yes
3133 done
3134 IFS="$ac_save_ifs"
3136 esac
3137 else
3138 enable_fast_install=yes
3141 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3142 if test "${with_gnu_ld+set}" = set; then
3143 withval="$with_gnu_ld"
3144 test "$withval" = no || with_gnu_ld=yes
3145 else
3146 with_gnu_ld=no
3148 ac_prog=ld
3149 if test "$GCC" = yes; then
3150 # Check if gcc -print-prog-name=ld gives a path.
3151 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3152 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3153 case $host in
3154 *-*-mingw*)
3155 # gcc leaves a trailing carriage return which upsets mingw
3156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3159 esac
3160 case $ac_prog in
3161 # Accept absolute paths.
3162 [\\/]* | [A-Za-z]:[\\/]*)
3163 re_direlt='/[^/][^/]*/\.\./'
3164 # Canonicalize the path of ld
3165 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3166 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3167 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3168 done
3169 test -z "$LD" && LD="$ac_prog"
3172 # If it fails, then pretend we aren't using GCC.
3173 ac_prog=ld
3176 # If it is relative, then search for the first ld in PATH.
3177 with_gnu_ld=unknown
3179 esac
3180 elif test "$with_gnu_ld" = yes; then
3181 echo "$as_me:$LINENO: checking for GNU ld" >&5
3182 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3183 else
3184 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3185 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3187 if test "${lt_cv_path_LD+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190 if test -z "$LD"; then
3191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3192 for ac_dir in $PATH; do
3193 test -z "$ac_dir" && ac_dir=.
3194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3195 lt_cv_path_LD="$ac_dir/$ac_prog"
3196 # Check to see if the program is GNU ld. I'd rather use --version,
3197 # but apparently some GNU ld's only accept -v.
3198 # Break only if it was the GNU/non-GNU ld that we prefer.
3199 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3200 test "$with_gnu_ld" != no && break
3201 else
3202 test "$with_gnu_ld" != yes && break
3205 done
3206 IFS="$ac_save_ifs"
3207 else
3208 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3212 LD="$lt_cv_path_LD"
3213 if test -n "$LD"; then
3214 echo "$as_me:$LINENO: result: $LD" >&5
3215 echo "${ECHO_T}$LD" >&6
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3220 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3221 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3222 { (exit 1); exit 1; }; }
3223 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3224 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3225 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3229 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3230 lt_cv_prog_gnu_ld=yes
3231 else
3232 lt_cv_prog_gnu_ld=no
3235 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3236 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3237 with_gnu_ld=$lt_cv_prog_gnu_ld
3240 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3241 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3242 if test "${lt_cv_ld_reload_flag+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 lt_cv_ld_reload_flag='-r'
3247 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3248 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3249 reload_flag=$lt_cv_ld_reload_flag
3250 test -n "$reload_flag" && reload_flag=" $reload_flag"
3252 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3253 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3254 if test "${lt_cv_path_NM+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 if test -n "$NM"; then
3258 # Let the user override the test.
3259 lt_cv_path_NM="$NM"
3260 else
3261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3262 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3263 test -z "$ac_dir" && ac_dir=.
3264 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3265 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3266 # Check to see if the nm accepts a BSD-compat flag.
3267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3268 # nm: unknown option "B" ignored
3269 # Tru64's nm complains that /dev/null is an invalid object file
3270 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3271 lt_cv_path_NM="$tmp_nm -B"
3272 break
3273 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3274 lt_cv_path_NM="$tmp_nm -p"
3275 break
3276 else
3277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3278 continue # so that we can try to find one that supports BSD flags
3281 done
3282 IFS="$ac_save_ifs"
3283 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3287 NM="$lt_cv_path_NM"
3288 echo "$as_me:$LINENO: result: $NM" >&5
3289 echo "${ECHO_T}$NM" >&6
3291 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3292 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3293 LN_S=$as_ln_s
3294 if test "$LN_S" = "ln -s"; then
3295 echo "$as_me:$LINENO: result: yes" >&5
3296 echo "${ECHO_T}yes" >&6
3297 else
3298 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3299 echo "${ECHO_T}no, using $LN_S" >&6
3302 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3303 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3304 if test "${lt_cv_deplibs_check_method+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 lt_cv_file_magic_cmd='$MAGIC_CMD'
3308 lt_cv_file_magic_test_file=
3309 lt_cv_deplibs_check_method='unknown'
3310 # Need to set the preceding variable on all platforms that support
3311 # interlibrary dependencies.
3312 # 'none' -- dependencies not supported.
3313 # `unknown' -- same as none, but documents that we really don't know.
3314 # 'pass_all' -- all dependencies passed with no checks.
3315 # 'test_compile' -- check by making test program.
3316 # 'file_magic [regex]' -- check by looking for files in library path
3317 # which responds to the $file_magic_cmd with a given egrep regex.
3318 # If you have `file' or equivalent on your system and you're not sure
3319 # whether `pass_all' will *always* work, you probably want this one.
3321 case $host_os in
3322 aix*)
3323 lt_cv_deplibs_check_method=pass_all
3326 beos*)
3327 lt_cv_deplibs_check_method=pass_all
3330 bsdi4*)
3331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3332 lt_cv_file_magic_cmd='/usr/bin/file -L'
3333 lt_cv_file_magic_test_file=/shlib/libc.so
3336 cygwin* | mingw* |pw32*)
3337 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3338 lt_cv_file_magic_cmd='$OBJDUMP -f'
3341 darwin* | rhapsody*)
3342 # this will be overwritten by pass_all, but leave it in just in case
3343 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3344 lt_cv_file_magic_cmd='/usr/bin/file -L'
3345 case "$host_os" in
3346 rhapsody* | darwin1.012)
3347 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3349 *) # Darwin 1.3 on
3350 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3352 esac
3353 lt_cv_deplibs_check_method=pass_all
3356 freebsd* | kfreebsd*-gnu)
3357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3358 case $host_cpu in
3359 i*86 )
3360 # Not sure whether the presence of OpenBSD here was a mistake.
3361 # Let's accept both of them until this is cleared up.
3362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3363 lt_cv_file_magic_cmd=/usr/bin/file
3364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3366 esac
3367 else
3368 lt_cv_deplibs_check_method=pass_all
3372 gnu*)
3373 lt_cv_deplibs_check_method=pass_all
3376 hpux10.20*|hpux11*)
3377 case $host_cpu in
3378 hppa*)
3379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3380 lt_cv_file_magic_cmd=/usr/bin/file
3381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3383 ia64*)
3384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385 lt_cv_file_magic_cmd=/usr/bin/file
3386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3388 esac
3391 irix5* | irix6*)
3392 case $host_os in
3393 irix5*)
3394 # this will be overridden with pass_all, but let us keep it just in case
3395 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3398 case $LD in
3399 *-32|*"-32 ") libmagic=32-bit;;
3400 *-n32|*"-n32 ") libmagic=N32;;
3401 *-64|*"-64 ") libmagic=64-bit;;
3402 *) libmagic=never-match;;
3403 esac
3404 # this will be overridden with pass_all, but let us keep it just in case
3405 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3407 esac
3408 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3409 lt_cv_deplibs_check_method=pass_all
3412 # This must be Linux ELF.
3413 linux-gnu*)
3414 lt_cv_deplibs_check_method=pass_all
3417 netbsd* | knetbsd*-gnu)
3418 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3419 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3420 else
3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3425 newsos6)
3426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3427 lt_cv_file_magic_cmd=/usr/bin/file
3428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3431 osf3* | osf4* | osf5*)
3432 # this will be overridden with pass_all, but let us keep it just in case
3433 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3434 lt_cv_file_magic_test_file=/shlib/libc.so
3435 lt_cv_deplibs_check_method=pass_all
3438 sco3.2v5*)
3439 lt_cv_deplibs_check_method=pass_all
3442 solaris*)
3443 lt_cv_deplibs_check_method=pass_all
3444 lt_cv_file_magic_test_file=/lib/libc.so
3447 sysv5uw[78]* | sysv4*uw2*)
3448 lt_cv_deplibs_check_method=pass_all
3451 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3452 case $host_vendor in
3453 ncr)
3454 lt_cv_deplibs_check_method=pass_all
3456 motorola)
3457 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]'
3458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3460 esac
3462 esac
3465 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3466 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3467 file_magic_cmd=$lt_cv_file_magic_cmd
3468 deplibs_check_method=$lt_cv_deplibs_check_method
3473 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3475 # find the maximum length of command line arguments
3476 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3477 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3478 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3482 teststring="ABCD"
3484 case $build_os in
3485 msdosdjgpp*)
3486 # On DJGPP, this test can blow up pretty badly due to problems in libc
3487 # (any single argument exceeding 2000 bytes causes a buffer overrun
3488 # during glob expansion). Even if it were fixed, the result of this
3489 # check would be larger than it should be.
3490 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3493 cygwin* | mingw*)
3494 # On Win9x/ME, this test blows up -- it succeeds, but takes
3495 # about 5 minutes as the teststring grows exponentially.
3496 # Worse, since 9x/ME are not pre-emptively multitasking,
3497 # you end up with a "frozen" computer, even though with patience
3498 # the test eventually succeeds (with a max line length of 256k).
3499 # Instead, let's just punt: use the minimum linelength reported by
3500 # all of the supported platforms: 8192 (on NT/2K/XP).
3501 lt_cv_sys_max_cmd_len=8192;
3504 amigaos*)
3505 # On AmigaOS with pdksh, this test takes hours, literally.
3506 # So we just punt and use a minimum line length of 8192.
3507 lt_cv_sys_max_cmd_len=8192;
3510 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3511 # This has been around since 386BSD, at least. Likely further.
3512 if test -x /sbin/sysctl; then
3513 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3514 elif test -x /usr/sbin/sysctl; then
3515 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3516 else
3517 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3519 # And add a safety zone
3520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3523 esac
3527 if test -n "$lt_cv_sys_max_cmd_len" ; then
3528 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3529 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3530 else
3531 echo "$as_me:$LINENO: result: none" >&5
3532 echo "${ECHO_T}none" >&6
3536 # Only perform the check for file, if the check method requires it
3537 case $deplibs_check_method in
3538 file_magic*)
3539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3540 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3541 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 case $MAGIC_CMD in
3547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3549 ?:/*)
3550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3553 ac_save_MAGIC_CMD="$MAGIC_CMD"
3554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3555 ac_dummy="/usr/bin:$PATH"
3556 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if test -f $ac_dir/${ac_tool_prefix}file; then
3559 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3560 if test -n "$file_magic_test_file"; then
3561 case $deplibs_check_method in
3562 "file_magic "*)
3563 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3566 egrep "$file_magic_regex" > /dev/null; then
3568 else
3569 cat <<EOF 1>&2
3571 *** Warning: the command libtool uses to detect shared libraries,
3572 *** $file_magic_cmd, produces output that libtool cannot recognize.
3573 *** The result is that libtool may fail to recognize shared libraries
3574 *** as such. This will affect the creation of libtool libraries that
3575 *** depend on shared libraries, but programs linked with such libtool
3576 *** libraries will work regardless of this problem. Nevertheless, you
3577 *** may want to report the problem to your system manager and/or to
3578 *** bug-libtool@gnu.org
3581 fi ;;
3582 esac
3584 break
3586 done
3587 IFS="$ac_save_ifs"
3588 MAGIC_CMD="$ac_save_MAGIC_CMD"
3590 esac
3593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3594 if test -n "$MAGIC_CMD"; then
3595 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3596 echo "${ECHO_T}$MAGIC_CMD" >&6
3597 else
3598 echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3602 if test -z "$lt_cv_path_MAGIC_CMD"; then
3603 if test -n "$ac_tool_prefix"; then
3604 echo "$as_me:$LINENO: checking for file" >&5
3605 echo $ECHO_N "checking for file... $ECHO_C" >&6
3606 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 case $MAGIC_CMD in
3611 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3613 ?:/*)
3614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3617 ac_save_MAGIC_CMD="$MAGIC_CMD"
3618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 ac_dummy="/usr/bin:$PATH"
3620 for ac_dir in $ac_dummy; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f $ac_dir/file; then
3623 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3624 if test -n "$file_magic_test_file"; then
3625 case $deplibs_check_method in
3626 "file_magic "*)
3627 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3630 egrep "$file_magic_regex" > /dev/null; then
3632 else
3633 cat <<EOF 1>&2
3635 *** Warning: the command libtool uses to detect shared libraries,
3636 *** $file_magic_cmd, produces output that libtool cannot recognize.
3637 *** The result is that libtool may fail to recognize shared libraries
3638 *** as such. This will affect the creation of libtool libraries that
3639 *** depend on shared libraries, but programs linked with such libtool
3640 *** libraries will work regardless of this problem. Nevertheless, you
3641 *** may want to report the problem to your system manager and/or to
3642 *** bug-libtool@gnu.org
3645 fi ;;
3646 esac
3648 break
3650 done
3651 IFS="$ac_save_ifs"
3652 MAGIC_CMD="$ac_save_MAGIC_CMD"
3654 esac
3657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3658 if test -n "$MAGIC_CMD"; then
3659 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3660 echo "${ECHO_T}$MAGIC_CMD" >&6
3661 else
3662 echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3666 else
3667 MAGIC_CMD=:
3673 esac
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3678 echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3680 if test "${ac_cv_prog_RANLIB+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 if test -n "$RANLIB"; then
3684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3697 done
3698 done
3702 RANLIB=$ac_cv_prog_RANLIB
3703 if test -n "$RANLIB"; then
3704 echo "$as_me:$LINENO: result: $RANLIB" >&5
3705 echo "${ECHO_T}$RANLIB" >&6
3706 else
3707 echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3712 if test -z "$ac_cv_prog_RANLIB"; then
3713 ac_ct_RANLIB=$RANLIB
3714 # Extract the first word of "ranlib", so it can be a program name with args.
3715 set dummy ranlib; ac_word=$2
3716 echo "$as_me:$LINENO: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 if test -n "$ac_ct_RANLIB"; then
3722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_ac_ct_RANLIB="ranlib"
3732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3735 done
3736 done
3738 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3741 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3742 if test -n "$ac_ct_RANLIB"; then
3743 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3744 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3745 else
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3750 RANLIB=$ac_ct_RANLIB
3751 else
3752 RANLIB="$ac_cv_prog_RANLIB"
3755 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}strip; ac_word=$2
3758 echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760 if test "${ac_cv_prog_STRIP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 if test -n "$STRIP"; then
3764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3777 done
3778 done
3782 STRIP=$ac_cv_prog_STRIP
3783 if test -n "$STRIP"; then
3784 echo "$as_me:$LINENO: result: $STRIP" >&5
3785 echo "${ECHO_T}$STRIP" >&6
3786 else
3787 echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3792 if test -z "$ac_cv_prog_STRIP"; then
3793 ac_ct_STRIP=$STRIP
3794 # Extract the first word of "strip", so it can be a program name with args.
3795 set dummy strip; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 if test -n "$ac_ct_STRIP"; then
3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_STRIP="strip"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3818 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822 if test -n "$ac_ct_STRIP"; then
3823 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3824 echo "${ECHO_T}$ac_ct_STRIP" >&6
3825 else
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3830 STRIP=$ac_ct_STRIP
3831 else
3832 STRIP="$ac_cv_prog_STRIP"
3836 # Check for any special flags to pass to ltconfig.
3837 libtool_flags="--cache-file=$cache_file"
3838 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3839 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3840 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3841 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3842 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3845 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3846 if test "${enable_libtool_lock+set}" = set; then
3847 enableval="$enable_libtool_lock"
3850 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3851 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3854 # Check whether --with-pic or --without-pic was given.
3855 if test "${with_pic+set}" = set; then
3856 withval="$with_pic"
3857 pic_mode="$withval"
3858 else
3859 pic_mode=default
3861 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3862 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3864 # Some flags need to be propagated to the compiler or linker for good
3865 # libtool support.
3866 case $host in
3867 *-*-irix6*)
3868 # Find out which ABI we are using.
3869 echo '#line 3869 "configure"' > conftest.$ac_ext
3870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871 (eval $ac_compile) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; then
3875 if test "$lt_cv_prog_gnu_ld" = yes; then
3876 case `/usr/bin/file conftest.$ac_objext` in
3877 *32-bit*)
3878 LD="${LD-ld} -melf32bsmip"
3880 *N32*)
3881 LD="${LD-ld} -melf32bmipn32"
3883 *64-bit*)
3884 LD="${LD-ld} -melf64bmip"
3886 esac
3887 else
3888 case `/usr/bin/file conftest.$ac_objext` in
3889 *32-bit*)
3890 LD="${LD-ld} -32"
3892 *N32*)
3893 LD="${LD-ld} -n32"
3895 *64-bit*)
3896 LD="${LD-ld} -64"
3898 esac
3901 rm -rf conftest*
3904 ia64-*-hpux*)
3905 # Find out which ABI we are using.
3906 echo 'int i;' > conftest.$ac_ext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; then
3912 case "`/usr/bin/file conftest.o`" in
3913 *ELF-32*)
3914 HPUX_IA64_MODE="32"
3916 *ELF-64*)
3917 HPUX_IA64_MODE="64"
3919 esac
3921 rm -rf conftest*
3924 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3925 # Find out which ABI we are using.
3926 echo 'int i;' > conftest.$ac_ext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; then
3932 case "`/usr/bin/file conftest.o`" in
3933 *32-bit*)
3934 case $host in
3935 x86_64-*linux*)
3936 LD="${LD-ld} -m elf_i386"
3938 ppc64-*linux*|powerpc64-*linux*)
3939 LD="${LD-ld} -m elf32ppclinux"
3941 s390x-*linux*)
3942 LD="${LD-ld} -m elf_s390"
3944 sparc64-*linux*)
3945 LD="${LD-ld} -m elf32_sparc"
3947 esac
3949 *64-bit*)
3950 case $host in
3951 x86_64-*linux*)
3952 LD="${LD-ld} -m elf_x86_64"
3954 ppc*-*linux*|powerpc*-*linux*)
3955 LD="${LD-ld} -m elf64ppc"
3957 s390*-*linux*)
3958 LD="${LD-ld} -m elf64_s390"
3960 sparc*-*linux*)
3961 LD="${LD-ld} -m elf64_sparc"
3963 esac
3965 esac
3967 rm -rf conftest*
3970 *-*-sco3.2v5*)
3971 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3972 SAVE_CFLAGS="$CFLAGS"
3973 CFLAGS="$CFLAGS -belf"
3974 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3975 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3976 if test "${lt_cv_cc_needs_belf+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3995 main ()
3999 return 0;
4001 _ACEOF
4002 rm -f conftest.$ac_objext conftest$ac_exeext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4004 (eval $ac_link) 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -z "$ac_c_werror_flag"
4012 || test ! -s conftest.err'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest$ac_exeext'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 (eval $ac_try) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 lt_cv_cc_needs_belf=yes
4025 else
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 lt_cv_cc_needs_belf=no
4031 rm -f conftest.err conftest.$ac_objext \
4032 conftest$ac_exeext conftest.$ac_ext
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4041 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4044 CFLAGS="$SAVE_CFLAGS"
4049 esac
4052 # Save cache, so that ltconfig can load it
4053 cat >confcache <<\_ACEOF
4054 # This file is a shell script that caches the results of configure
4055 # tests run on this system so they can be shared between configure
4056 # scripts and configure runs, see configure's option --config-cache.
4057 # It is not useful on other systems. If it contains results you don't
4058 # want to keep, you may remove or edit it.
4060 # config.status only pays attention to the cache file if you give it
4061 # the --recheck option to rerun configure.
4063 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4064 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4065 # following values.
4067 _ACEOF
4069 # The following way of writing the cache mishandles newlines in values,
4070 # but we know of no workaround that is simple, portable, and efficient.
4071 # So, don't put newlines in cache variables' values.
4072 # Ultrix sh set writes to stderr and can't be redirected directly,
4073 # and sets the high bit in the cache file unless we assign to the vars.
4075 (set) 2>&1 |
4076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4077 *ac_space=\ *)
4078 # `set' does not quote correctly, so add quotes (double-quote
4079 # substitution turns \\\\ into \\, and sed turns \\ into \).
4080 sed -n \
4081 "s/'/'\\\\''/g;
4082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4085 # `set' quotes correctly as required by POSIX, so do not add quotes.
4086 sed -n \
4087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4089 esac;
4091 sed '
4092 t clear
4093 : clear
4094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4095 t end
4096 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4097 : end' >>confcache
4098 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4099 if test -w $cache_file; then
4100 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4101 cat confcache >$cache_file
4102 else
4103 echo "not updating unwritable cache $cache_file"
4106 rm -f confcache
4108 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4109 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4110 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4111 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4112 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4113 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4114 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4115 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4116 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4117 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4118 echo "$as_me: error: libtool configure failed" >&2;}
4119 { (exit 1); exit 1; }; }
4121 # Reload cache, that may have been modified by ltconfig
4122 if test -r "$cache_file"; then
4123 # Some versions of bash will fail to source /dev/null (special
4124 # files actually), so we avoid doing that.
4125 if test -f "$cache_file"; then
4126 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4127 echo "$as_me: loading cache $cache_file" >&6;}
4128 case $cache_file in
4129 [\\/]* | ?:[\\/]* ) . $cache_file;;
4130 *) . ./$cache_file;;
4131 esac
4133 else
4134 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4135 echo "$as_me: creating cache $cache_file" >&6;}
4136 >$cache_file
4140 # This can be used to rebuild libtool when needed
4141 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4143 # Always use our own libtool.
4144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4146 # Redirect the config.log output again, so that the ltconfig log is not
4147 # clobbered by the next message.
4148 exec 5>>./config.log
4156 # Check whether --enable-targets or --disable-targets was given.
4157 if test "${enable_targets+set}" = set; then
4158 enableval="$enable_targets"
4159 case "${enableval}" in
4160 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4161 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4162 { (exit 1); exit 1; }; }
4164 no) enable_targets= ;;
4165 *) enable_targets=$enableval ;;
4166 esac
4167 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4168 if test "${enable_commonbfdlib+set}" = set; then
4169 enableval="$enable_commonbfdlib"
4170 case "${enableval}" in
4171 yes) commonbfdlib=true ;;
4172 no) commonbfdlib=false ;;
4173 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4174 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4175 { (exit 1); exit 1; }; } ;;
4176 esac
4178 using_cgen=no
4181 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4183 # Check whether --enable-werror or --disable-werror was given.
4184 if test "${enable_werror+set}" = set; then
4185 enableval="$enable_werror"
4186 case "${enableval}" in
4187 yes | y) ERROR_ON_WARNING="yes" ;;
4188 no | n) ERROR_ON_WARNING="no" ;;
4189 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4190 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4191 { (exit 1); exit 1; }; } ;;
4192 esac
4195 # Enable -Werror by default when using gcc
4196 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4197 ERROR_ON_WARNING=yes
4200 NO_WERROR=
4201 if test "${ERROR_ON_WARNING}" = yes ; then
4202 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4203 NO_WERROR="-Wno-error"
4206 if test "${GCC}" = yes ; then
4207 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4210 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4211 if test "${enable_build_warnings+set}" = set; then
4212 enableval="$enable_build_warnings"
4213 case "${enableval}" in
4214 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4215 no) if test "${GCC}" = yes ; then
4216 WARN_CFLAGS="-w"
4217 fi;;
4218 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4219 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4220 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4221 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4222 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4223 esac
4226 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4227 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4234 # Generate a header file
4235 ac_config_headers="$ac_config_headers config.h:config.in"
4238 # If we are on a DOS filesystem, we must use gdb.ini rather than
4239 # .gdbinit.
4240 case "${host}" in
4241 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
4242 GDBINIT="gdb.ini"
4243 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4247 GDBINIT=".gdbinit"
4248 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4251 esac
4254 #We need this for the host. BOUT header is in host order.
4255 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4256 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4257 if test "${ac_cv_c_bigendian+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 # See if sys/param.h defines the BYTE_ORDER macro.
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #include <sys/types.h>
4268 #include <sys/param.h>
4271 main ()
4273 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4274 bogus endian macros
4275 #endif
4278 return 0;
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 # It does; now see whether it defined to BIG_ENDIAN or not.
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 #include <sys/types.h>
4311 #include <sys/param.h>
4314 main ()
4316 #if BYTE_ORDER != BIG_ENDIAN
4317 not big endian
4318 #endif
4321 return 0;
4323 _ACEOF
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -z "$ac_c_werror_flag"
4334 || test ! -s conftest.err'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_cv_c_bigendian=yes
4347 else
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4351 ac_cv_c_bigendian=no
4353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4354 else
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 # It does not; compile a test program.
4359 if test "$cross_compiling" = yes; then
4360 # try to guess the endianness by grepping values into an object file
4361 ac_cv_c_bigendian=unknown
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4369 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4370 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4371 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4372 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4373 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4375 main ()
4377 _ascii (); _ebcdic ();
4379 return 0;
4381 _ACEOF
4382 rm -f conftest.$ac_objext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag"
4392 || test ! -s conftest.err'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4405 ac_cv_c_bigendian=yes
4407 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4408 if test "$ac_cv_c_bigendian" = unknown; then
4409 ac_cv_c_bigendian=no
4410 else
4411 # finding both strings is unlikely to happen, but who knows?
4412 ac_cv_c_bigendian=unknown
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4421 else
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4429 main ()
4431 /* Are we little or big endian? From Harbison&Steele. */
4432 union
4434 long l;
4435 char c[sizeof (long)];
4436 } u;
4437 u.l = 1;
4438 exit (u.c[sizeof (long) - 1] == 1);
4440 _ACEOF
4441 rm -f conftest$ac_exeext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443 (eval $ac_link) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_c_bigendian=no
4453 else
4454 echo "$as_me: program exited with status $ac_status" >&5
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 ( exit $ac_status )
4459 ac_cv_c_bigendian=yes
4461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4466 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4467 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4468 case $ac_cv_c_bigendian in
4469 yes)
4471 cat >>confdefs.h <<\_ACEOF
4472 #define WORDS_BIGENDIAN 1
4473 _ACEOF
4478 { { echo "$as_me:$LINENO: error: unknown endianness
4479 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4480 echo "$as_me: error: unknown endianness
4481 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4482 { (exit 1); exit 1; }; } ;;
4483 esac
4486 te_file=generic
4488 # Makefile target for installing gas in $(tooldir)/bin.
4489 install_tooldir=install-exec-tooldir
4491 canon_targets=""
4492 all_targets=no
4493 if test -n "$enable_targets" ; then
4494 for t in `echo $enable_targets | sed 's/,/ /g'`; do
4495 if test $t = "all"; then
4496 all_targets=yes
4497 continue
4499 result=`$ac_config_sub $t 2>/dev/null`
4500 if test -n "$result" ; then
4501 canon_targets="$canon_targets $result"
4502 # else
4503 # # Permit "all", etc. We don't support it yet though.
4504 # canon_targets="$canon_targets $t"
4506 done
4507 _gas_uniq_list="$canon_targets"
4508 _gas_uniq_newlist=""
4509 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4510 case $_gas_uniq_i in
4511 _gas_uniq_dummy) ;;
4512 *) case " $_gas_uniq_newlist " in
4513 *" $_gas_uniq_i "*) ;;
4514 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4515 esac ;;
4516 esac
4517 done
4518 canon_targets=$_gas_uniq_newlist
4522 emulations=""
4524 for this_target in $target $canon_targets ; do
4526 targ=${this_target}
4527 . ${srcdir}/configure.tgt
4529 case ${target_cpu} in
4530 crisv32)
4532 cat >>confdefs.h <<_ACEOF
4533 #define DEFAULT_CRIS_ARCH $arch
4534 _ACEOF
4537 esac
4539 if test ${this_target} = $target ; then
4540 target_cpu_type=${cpu_type}
4541 elif test ${target_cpu_type} != ${cpu_type} ; then
4542 continue
4545 generic_target=${cpu_type}-${target_vendor}-${target_os}
4546 case ${generic_target} in
4547 i386-*-sco3.2v5*)
4548 if test ${this_target} = $target; then
4550 cat >>confdefs.h <<\_ACEOF
4551 #define SCO_ELF 1
4552 _ACEOF
4557 i386-*-msdosdjgpp* \
4558 | i386-*-go32* \
4559 | i386-go32-rtems*)
4561 cat >>confdefs.h <<\_ACEOF
4562 #define STRICTCOFF 1
4563 _ACEOF
4567 i860-*-*)
4568 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4569 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4572 mips-sony-bsd*)
4574 mips-*-bsd*)
4575 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4576 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4577 { (exit 1); exit 1; }; }
4580 ppc-*-aix5.*)
4582 cat >>confdefs.h <<\_ACEOF
4583 #define AIX_WEAK_SUPPORT 1
4584 _ACEOF
4587 ppc-*-linux-*)
4588 case "$endian" in
4589 big) ;;
4590 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4591 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4592 { (exit 1); exit 1; }; } ;;
4593 esac
4595 ppc-*-solaris*)
4596 if test ${this_target} = $target; then
4598 cat >>confdefs.h <<\_ACEOF
4599 #define TARGET_SOLARIS_COMMENT 1
4600 _ACEOF
4603 if test x${endian} = xbig; then
4604 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4605 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4606 { (exit 1); exit 1; }; }
4610 sh*-*-symbianelf*)
4612 cat >>confdefs.h <<\_ACEOF
4613 #define TARGET_SYMBIAN 1
4614 _ACEOF
4617 esac
4619 if test ${this_target} = $target ; then
4620 endian_def=
4621 if test x${endian} = xbig; then
4622 endian_def=1
4623 elif test x${endian} = xlittle; then
4624 endian_def=0
4626 if test x${endian_def} != x; then
4628 cat >>confdefs.h <<_ACEOF
4629 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4630 _ACEOF
4635 # Other random stuff.
4637 case ${cpu_type} in
4638 mips)
4639 # Set mips_cpu to the name of the default CPU.
4640 case ${target_cpu} in
4641 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4642 mips_cpu=from-abi
4644 mipsisa32 | mipsisa32el)
4645 mips_cpu=mips32
4647 mipsisa32r2 | mipsisa32r2el)
4648 mips_cpu=mips32r2
4650 mipsisa64 | mipsisa64el)
4651 mips_cpu=mips64
4653 mipsisa64r2 | mipsisa64r2el)
4654 mips_cpu=mips64r2
4656 mipstx39 | mipstx39el)
4657 mips_cpu=r3900
4659 mips64vr | mips64vrel)
4660 mips_cpu=vr4100
4662 mipsisa32r2* | mipsisa64r2*)
4663 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4665 mips64* | mipsisa64* | mipsisa32*)
4666 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4669 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4670 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4671 { (exit 1); exit 1; }; }
4673 esac
4674 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4675 # binaries. It's a GNU extension that some OSes don't understand.
4676 # The value only matters on ELF targets.
4677 case ${target} in
4678 *-*-irix*)
4679 use_e_mips_abi_o32=0
4682 use_e_mips_abi_o32=1
4684 esac
4685 # Decide whether to generate 32-bit or 64-bit code by default.
4686 # Used to resolve -march=from-abi when an embedded ABI is selected.
4687 case ${target} in
4688 mips64*-*-* | mipsisa64*-*-*)
4689 mips_default_64bit=1
4692 mips_default_64bit=0
4694 esac
4695 # Decide which ABI to target by default.
4696 case ${target} in
4697 mips64*-linux* | mips-sgi-irix6*)
4698 mips_default_abi=N32_ABI
4700 mips*-linux*)
4701 mips_default_abi=O32_ABI
4703 mips64*-openbsd*)
4704 mips_default_abi=N64_ABI
4707 mips_default_abi=NO_ABI
4709 esac
4711 cat >>confdefs.h <<_ACEOF
4712 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4713 _ACEOF
4716 cat >>confdefs.h <<_ACEOF
4717 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4718 _ACEOF
4721 cat >>confdefs.h <<_ACEOF
4722 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4723 _ACEOF
4726 cat >>confdefs.h <<_ACEOF
4727 #define MIPS_DEFAULT_ABI $mips_default_abi
4728 _ACEOF
4731 esac
4733 # Do we need the opcodes library?
4734 case ${cpu_type} in
4735 vax | i386 | tic30)
4739 need_opcodes=yes
4741 case "${enable_shared}" in
4742 yes) shared_opcodes=true ;;
4743 *opcodes*) shared_opcodes=true ;;
4744 *) shared_opcodes=false ;;
4745 esac
4747 esac
4749 # Any other special object files needed ?
4750 case ${cpu_type} in
4752 bfin)
4753 echo ${extra_objects} | grep -s "bfin-parse.o"
4754 if test $? -ne 0 ; then
4755 extra_objects="$extra_objects bfin-parse.o"
4758 echo ${extra_objects} | grep -s "bfin-lex.o"
4759 if test $? -ne 0 ; then
4760 extra_objects="$extra_objects bfin-lex.o"
4764 fr30 | ip2k | iq2000 | m32r | openrisc)
4765 using_cgen=yes
4768 m32c)
4769 using_cgen=yes
4771 frv)
4772 using_cgen=yes
4774 m68k)
4775 case ${extra_objects} in
4776 *m68k-parse.o*) ;;
4777 *) extra_objects="$extra_objects m68k-parse.o" ;;
4778 esac
4781 mips)
4782 echo ${extra_objects} | grep -s "itbl-parse.o"
4783 if test $? -ne 0 ; then
4784 extra_objects="$extra_objects itbl-parse.o"
4787 echo ${extra_objects} | grep -s "itbl-lex.o"
4788 if test $? -ne 0 ; then
4789 extra_objects="$extra_objects itbl-lex.o"
4792 echo ${extra_objects} | grep -s "itbl-ops.o"
4793 if test $? -ne 0 ; then
4794 extra_objects="$extra_objects itbl-ops.o"
4799 using_cgen=yes
4802 i386 | s390 | sparc)
4803 if test $this_target = $target ; then
4805 cat >>confdefs.h <<_ACEOF
4806 #define DEFAULT_ARCH "${arch}"
4807 _ACEOF
4812 xstormy16)
4813 using_cgen=yes
4816 xc16x)
4817 using_cgen=yes
4820 xtensa)
4821 echo ${extra_objects} | grep -s "xtensa-relax.o"
4822 if test $? -ne 0 ; then
4823 extra_objects="$extra_objects xtensa-relax.o"
4829 esac
4831 if test $using_cgen = yes ; then
4832 case "x${extra_objects}" in
4833 *cgen.o*) ;;
4834 *) extra_objects="$extra_objects cgen.o" ;;
4835 esac
4838 # See if we really can support this configuration with the emulation code.
4840 if test $this_target = $target ; then
4841 obj_format=$fmt
4842 te_file=$em
4845 # From target name and format, produce a list of supported emulations.
4847 case ${generic_target}-${fmt} in
4848 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4849 mips*-*-linux*-*) case "$endian" in
4850 big) emulation="mipsbelf mipslelf mipself" ;;
4851 *) emulation="mipslelf mipsbelf mipself" ;;
4852 esac ;;
4853 mips-*-lnews*-ecoff) ;;
4854 mips-*-*-ecoff) case "$endian" in
4855 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4856 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4857 esac ;;
4858 mips-*-*-elf) case "$endian" in
4859 big) emulation="mipsbelf mipslelf mipself" ;;
4860 *) emulation="mipslelf mipsbelf mipself" ;;
4861 esac ;;
4862 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4863 # i386-pc-pe-coff != i386-pc-coff.
4864 i386-*-pe-coff) ;;
4865 # Uncommenting the next line will turn on support for i386 AOUT
4866 # for the default linux configuration
4867 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4869 i386-*-aout) emulation="i386aout" ;;
4870 i386-*-coff) emulation="i386coff" ;;
4871 i386-*-elf) emulation="i386elf" ;;
4873 # Always all formats. The first stated emulation becomes the default.
4874 cris-*-*aout*) emulation="crisaout criself" ;;
4875 cris-*-*) emulation="criself crisaout" ;;
4876 esac
4878 emulations="$emulations $emulation"
4880 done
4882 # Turn on all targets if possible
4883 if test ${all_targets} = "yes"; then
4884 case ${target_cpu_type} in
4885 i386)
4886 case ${obj_format} in
4887 aout)
4888 emulations="$emulations i386coff i386elf"
4890 coff)
4891 emulations="$emulations i386aout i386elf"
4893 elf)
4894 emulations="$emulations i386aout i386coff"
4896 esac
4898 x86_64)
4899 case ${obj_format} in
4900 aout)
4901 emulations="$emulations i386coff i386elf"
4903 coff)
4904 emulations="$emulations i386aout i386elf"
4906 elf)
4907 emulations="$emulations i386aout i386coff"
4909 esac
4911 esac
4914 # Assign floating point type. Most processors with FP support
4915 # IEEE FP. On those that don't support FP at all, usually IEEE
4916 # is emulated.
4917 case ${target_cpu} in
4918 vax | pdp11 ) atof=vax ;;
4919 *) atof=ieee ;;
4920 esac
4922 case "${obj_format}" in
4923 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4924 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4925 { (exit 1); exit 1; }; } ;;
4926 esac
4928 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4929 cgen_cpu_prefix=""
4930 if test $using_cgen = yes ; then
4931 case ${target_cpu} in
4932 *) cgen_cpu_prefix=${target_cpu} ;;
4933 esac
4936 cat >>confdefs.h <<\_ACEOF
4937 #define USING_CGEN 1
4938 _ACEOF
4943 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4944 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4945 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4946 { (exit 1); exit 1; }; }
4949 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4950 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4951 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4952 { (exit 1); exit 1; }; }
4955 # Some COFF configurations want these random other flags set.
4956 case ${obj_format} in
4957 coff)
4958 case ${target_cpu_type} in
4959 i386)
4960 cat >>confdefs.h <<\_ACEOF
4961 #define I386COFF 1
4962 _ACEOF
4964 m68k)
4965 cat >>confdefs.h <<\_ACEOF
4966 #define M68KCOFF 1
4967 _ACEOF
4969 m88k)
4970 cat >>confdefs.h <<\_ACEOF
4971 #define M88KCOFF 1
4972 _ACEOF
4974 x86_64)
4975 cat >>confdefs.h <<\_ACEOF
4976 #define I386COFF 1
4977 _ACEOF
4979 esac
4981 esac
4983 # Getting this done right is going to be a bitch. Each configuration specified
4984 # with --enable-targets=... should be checked for environment, format, cpu
4985 # setting.
4987 # For each configuration, the necessary object file support code must be linked
4988 # in. This might be only one, it might be up to four. The necessary emulation
4989 # code needs to be provided, too.
4991 # And then there's "--enable-targets=all"....
4993 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4995 formats="${obj_format}"
4996 emfiles=""
4997 EMULATIONS=""
4998 _gas_uniq_list="$emulations"
4999 _gas_uniq_newlist=""
5000 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5001 case $_gas_uniq_i in
5002 _gas_uniq_dummy) ;;
5003 *) case " $_gas_uniq_newlist " in
5004 *" $_gas_uniq_i "*) ;;
5005 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5006 esac ;;
5007 esac
5008 done
5009 emulations=$_gas_uniq_newlist
5011 for em in . $emulations ; do
5012 case $em in
5013 .) continue ;;
5014 mipsbelf | mipslelf | mipself)
5015 fmt=elf file=mipself ;;
5016 mipsbecoff | mipslecoff | mipsecoff)
5017 fmt=ecoff file=mipsecoff ;;
5018 *coff)
5019 fmt=coff file=$em ;;
5020 *aout)
5021 fmt=aout file=$em ;;
5022 *elf)
5023 fmt=elf file=$em ;;
5024 esac
5025 formats="$formats $fmt"
5026 emfiles="$emfiles e-$file.o"
5027 EMULATIONS="$EMULATIONS &$em,"
5028 done
5029 _gas_uniq_list="$formats"
5030 _gas_uniq_newlist=""
5031 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5032 case $_gas_uniq_i in
5033 _gas_uniq_dummy) ;;
5034 *) case " $_gas_uniq_newlist " in
5035 *" $_gas_uniq_i "*) ;;
5036 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5037 esac ;;
5038 esac
5039 done
5040 formats=$_gas_uniq_newlist
5042 _gas_uniq_list="$emfiles"
5043 _gas_uniq_newlist=""
5044 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5045 case $_gas_uniq_i in
5046 _gas_uniq_dummy) ;;
5047 *) case " $_gas_uniq_newlist " in
5048 *" $_gas_uniq_i "*) ;;
5049 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5050 esac ;;
5051 esac
5052 done
5053 emfiles=$_gas_uniq_newlist
5055 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
5056 for fmt in $formats ; do
5057 case $fmt in
5058 aout)
5059 cat >>confdefs.h <<\_ACEOF
5060 #define OBJ_MAYBE_AOUT 1
5061 _ACEOF
5063 bout)
5064 cat >>confdefs.h <<\_ACEOF
5065 #define OBJ_MAYBE_BOUT 1
5066 _ACEOF
5068 coff)
5069 cat >>confdefs.h <<\_ACEOF
5070 #define OBJ_MAYBE_COFF 1
5071 _ACEOF
5073 ecoff)
5074 cat >>confdefs.h <<\_ACEOF
5075 #define OBJ_MAYBE_ECOFF 1
5076 _ACEOF
5078 elf)
5079 cat >>confdefs.h <<\_ACEOF
5080 #define OBJ_MAYBE_ELF 1
5081 _ACEOF
5083 generic)
5084 cat >>confdefs.h <<\_ACEOF
5085 #define OBJ_MAYBE_GENERIC 1
5086 _ACEOF
5088 som)
5089 cat >>confdefs.h <<\_ACEOF
5090 #define OBJ_MAYBE_SOM 1
5091 _ACEOF
5093 esac
5094 extra_objects="$extra_objects obj-$fmt.o"
5095 done
5096 obj_format=multi
5098 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
5099 DEFAULT_EMULATION=`set . $emulations ; echo $2`
5100 # e-mips* has more than one emulation per file, e-i386* has just one at the
5101 # moment. If only one emulation is specified, then don't define
5102 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5103 case "${obj_format}${emfiles}" in
5104 multi* | *mips*)
5105 extra_objects="$extra_objects $emfiles"
5107 cat >>confdefs.h <<\_ACEOF
5108 #define USE_EMULATIONS 1
5109 _ACEOF
5111 esac
5115 cat >>confdefs.h <<_ACEOF
5116 #define EMULATIONS $EMULATIONS
5117 _ACEOF
5120 cat >>confdefs.h <<_ACEOF
5121 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
5122 _ACEOF
5125 reject_dev_configs=yes
5127 case ${reject_dev_configs}-${dev} in
5128 yes-yes) # Oops.
5129 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5130 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5131 { (exit 1); exit 1; }; }
5133 esac
5141 # do we need the opcodes library?
5142 case "${need_opcodes}" in
5143 yes)
5144 OPCODES_LIB=../opcodes/libopcodes.la
5146 esac
5151 cat >>confdefs.h <<_ACEOF
5152 #define TARGET_ALIAS "${target_alias}"
5153 _ACEOF
5156 cat >>confdefs.h <<_ACEOF
5157 #define TARGET_CANONICAL "${target}"
5158 _ACEOF
5161 cat >>confdefs.h <<_ACEOF
5162 #define TARGET_CPU "${target_cpu}"
5163 _ACEOF
5166 cat >>confdefs.h <<_ACEOF
5167 #define TARGET_VENDOR "${target_vendor}"
5168 _ACEOF
5171 cat >>confdefs.h <<_ACEOF
5172 #define TARGET_OS "${target_os}"
5173 _ACEOF
5176 ac_ext=c
5177 ac_cpp='$CPP $CPPFLAGS'
5178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181 if test -n "$ac_tool_prefix"; then
5182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_CC+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 if test -n "$CC"; then
5190 ac_cv_prog_CC="$CC" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5203 done
5204 done
5208 CC=$ac_cv_prog_CC
5209 if test -n "$CC"; then
5210 echo "$as_me:$LINENO: result: $CC" >&5
5211 echo "${ECHO_T}$CC" >&6
5212 else
5213 echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5218 if test -z "$ac_cv_prog_CC"; then
5219 ac_ct_CC=$CC
5220 # Extract the first word of "gcc", so it can be a program name with args.
5221 set dummy gcc; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 if test -n "$ac_ct_CC"; then
5228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_ac_ct_CC="gcc"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5247 if test -n "$ac_ct_CC"; then
5248 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5249 echo "${ECHO_T}$ac_ct_CC" >&6
5250 else
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5255 CC=$ac_ct_CC
5256 else
5257 CC="$ac_cv_prog_CC"
5260 if test -z "$CC"; then
5261 if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5263 set dummy ${ac_tool_prefix}cc; ac_word=$2
5264 echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266 if test "${ac_cv_prog_CC+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 if test -n "$CC"; then
5270 ac_cv_prog_CC="$CC" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_CC="${ac_tool_prefix}cc"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5283 done
5284 done
5288 CC=$ac_cv_prog_CC
5289 if test -n "$CC"; then
5290 echo "$as_me:$LINENO: result: $CC" >&5
5291 echo "${ECHO_T}$CC" >&6
5292 else
5293 echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6
5298 if test -z "$ac_cv_prog_CC"; then
5299 ac_ct_CC=$CC
5300 # Extract the first word of "cc", so it can be a program name with args.
5301 set dummy cc; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 if test -n "$ac_ct_CC"; then
5308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_CC="cc"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5327 if test -n "$ac_ct_CC"; then
5328 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5329 echo "${ECHO_T}$ac_ct_CC" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5335 CC=$ac_ct_CC
5336 else
5337 CC="$ac_cv_prog_CC"
5341 if test -z "$CC"; then
5342 # Extract the first word of "cc", so it can be a program name with args.
5343 set dummy cc; ac_word=$2
5344 echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346 if test "${ac_cv_prog_CC+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 if test -n "$CC"; then
5350 ac_cv_prog_CC="$CC" # Let the user override the test.
5351 else
5352 ac_prog_rejected=no
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5361 ac_prog_rejected=yes
5362 continue
5364 ac_cv_prog_CC="cc"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5368 done
5369 done
5371 if test $ac_prog_rejected = yes; then
5372 # We found a bogon in the path, so make sure we never use it.
5373 set dummy $ac_cv_prog_CC
5374 shift
5375 if test $# != 0; then
5376 # We chose a different compiler from the bogus one.
5377 # However, it has the same basename, so the bogon will be chosen
5378 # first if we set CC to just the basename; use the full file name.
5379 shift
5380 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5385 CC=$ac_cv_prog_CC
5386 if test -n "$CC"; then
5387 echo "$as_me:$LINENO: result: $CC" >&5
5388 echo "${ECHO_T}$CC" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5395 if test -z "$CC"; then
5396 if test -n "$ac_tool_prefix"; then
5397 for ac_prog in cl
5399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_CC+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 if test -n "$CC"; then
5407 ac_cv_prog_CC="$CC" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5420 done
5421 done
5425 CC=$ac_cv_prog_CC
5426 if test -n "$CC"; then
5427 echo "$as_me:$LINENO: result: $CC" >&5
5428 echo "${ECHO_T}$CC" >&6
5429 else
5430 echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6
5434 test -n "$CC" && break
5435 done
5437 if test -z "$CC"; then
5438 ac_ct_CC=$CC
5439 for ac_prog in cl
5441 # Extract the first word of "$ac_prog", so it can be a program name with args.
5442 set dummy $ac_prog; ac_word=$2
5443 echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448 if test -n "$ac_ct_CC"; then
5449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458 ac_cv_prog_ac_ct_CC="$ac_prog"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5462 done
5463 done
5467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5468 if test -n "$ac_ct_CC"; then
5469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5470 echo "${ECHO_T}$ac_ct_CC" >&6
5471 else
5472 echo "$as_me:$LINENO: result: no" >&5
5473 echo "${ECHO_T}no" >&6
5476 test -n "$ac_ct_CC" && break
5477 done
5479 CC=$ac_ct_CC
5485 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5486 See \`config.log' for more details." >&5
5487 echo "$as_me: error: no acceptable C compiler found in \$PATH
5488 See \`config.log' for more details." >&2;}
5489 { (exit 1); exit 1; }; }
5491 # Provide some information about the compiler.
5492 echo "$as_me:$LINENO:" \
5493 "checking for C compiler version" >&5
5494 ac_compiler=`set X $ac_compile; echo $2`
5495 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5496 (eval $ac_compiler --version </dev/null >&5) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }
5500 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5501 (eval $ac_compiler -v </dev/null >&5) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }
5505 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5506 (eval $ac_compiler -V </dev/null >&5) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }
5511 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5512 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5513 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5524 main ()
5526 #ifndef __GNUC__
5527 choke me
5528 #endif
5531 return 0;
5533 _ACEOF
5534 rm -f conftest.$ac_objext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536 (eval $ac_compile) 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest.$ac_objext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_compiler_gnu=yes
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5561 ac_compiler_gnu=no
5563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5564 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5567 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5568 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5569 GCC=`test $ac_compiler_gnu = yes && echo yes`
5570 ac_test_CFLAGS=${CFLAGS+set}
5571 ac_save_CFLAGS=$CFLAGS
5572 CFLAGS="-g"
5573 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5574 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5575 if test "${ac_cv_prog_cc_g+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5586 main ()
5590 return 0;
5592 _ACEOF
5593 rm -f conftest.$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_c_werror_flag"
5603 || test ! -s conftest.err'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; } &&
5609 { ac_try='test -s conftest.$ac_objext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_prog_cc_g=yes
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_cv_prog_cc_g=no
5622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5624 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5625 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5626 if test "$ac_test_CFLAGS" = set; then
5627 CFLAGS=$ac_save_CFLAGS
5628 elif test $ac_cv_prog_cc_g = yes; then
5629 if test "$GCC" = yes; then
5630 CFLAGS="-g -O2"
5631 else
5632 CFLAGS="-g"
5634 else
5635 if test "$GCC" = yes; then
5636 CFLAGS="-O2"
5637 else
5638 CFLAGS=
5641 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5642 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5643 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 ac_cv_prog_cc_stdc=no
5647 ac_save_CC=$CC
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <stdarg.h>
5655 #include <stdio.h>
5656 #include <sys/types.h>
5657 #include <sys/stat.h>
5658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5659 struct buf { int x; };
5660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5661 static char *e (p, i)
5662 char **p;
5663 int i;
5665 return p[i];
5667 static char *f (char * (*g) (char **, int), char **p, ...)
5669 char *s;
5670 va_list v;
5671 va_start (v,p);
5672 s = g (p, va_arg (v,int));
5673 va_end (v);
5674 return s;
5677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5678 function prototypes and stuff, but not '\xHH' hex character constants.
5679 These don't provoke an error unfortunately, instead are silently treated
5680 as 'x'. The following induces an error, until -std1 is added to get
5681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5682 array size at least. It's necessary to write '\x00'==0 to get something
5683 that's true only with -std1. */
5684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5686 int test (int i, double x);
5687 struct s1 {int (*f) (int a);};
5688 struct s2 {int (*f) (double a);};
5689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5690 int argc;
5691 char **argv;
5693 main ()
5695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5697 return 0;
5699 _ACEOF
5700 # Don't try gcc -ansi; that turns off useful extensions and
5701 # breaks some systems' header files.
5702 # AIX -qlanglvl=ansi
5703 # Ultrix and OSF/1 -std1
5704 # HP-UX 10.20 and later -Ae
5705 # HP-UX older versions -Aa -D_HPUX_SOURCE
5706 # SVR4 -Xc -D__EXTENSIONS__
5707 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5709 CC="$ac_save_CC $ac_arg"
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_prog_cc_stdc=$ac_arg
5733 break
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5739 rm -f conftest.err conftest.$ac_objext
5740 done
5741 rm -f conftest.$ac_ext conftest.$ac_objext
5742 CC=$ac_save_CC
5746 case "x$ac_cv_prog_cc_stdc" in
5747 x|xno)
5748 echo "$as_me:$LINENO: result: none needed" >&5
5749 echo "${ECHO_T}none needed" >&6 ;;
5751 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5752 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5753 CC="$CC $ac_cv_prog_cc_stdc" ;;
5754 esac
5756 # Some people use a C++ compiler to compile C. Since we use `exit',
5757 # in C++ we need to declare it. In case someone uses the same compiler
5758 # for both compiling C and C++ we need to have the C++ compiler decide
5759 # the declaration of exit, since it's the most demanding environment.
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #ifndef __cplusplus
5762 choke me
5763 #endif
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 for ac_declaration in \
5788 '' \
5789 'extern "C" void std::exit (int) throw (); using std::exit;' \
5790 'extern "C" void std::exit (int); using std::exit;' \
5791 'extern "C" void exit (int) throw ();' \
5792 'extern "C" void exit (int);' \
5793 'void exit (int);'
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_declaration
5802 #include <stdlib.h>
5804 main ()
5806 exit (42);
5808 return 0;
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 continue
5840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_declaration
5849 main ()
5851 exit (42);
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 break
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885 done
5886 rm -f conftest*
5887 if test -n "$ac_declaration"; then
5888 echo '#ifdef __cplusplus' >>confdefs.h
5889 echo $ac_declaration >>confdefs.h
5890 echo '#endif' >>confdefs.h
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 ac_ext=c
5900 ac_cpp='$CPP $CPPFLAGS'
5901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5906 for ac_prog in 'bison -y' byacc
5908 # Extract the first word of "$ac_prog", so it can be a program name with args.
5909 set dummy $ac_prog; ac_word=$2
5910 echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912 if test "${ac_cv_prog_YACC+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915 if test -n "$YACC"; then
5916 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_YACC="$ac_prog"
5926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5929 done
5930 done
5934 YACC=$ac_cv_prog_YACC
5935 if test -n "$YACC"; then
5936 echo "$as_me:$LINENO: result: $YACC" >&5
5937 echo "${ECHO_T}$YACC" >&6
5938 else
5939 echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6
5943 test -n "$YACC" && break
5944 done
5945 test -n "$YACC" || YACC="yacc"
5947 for ac_prog in flex lex
5949 # Extract the first word of "$ac_prog", so it can be a program name with args.
5950 set dummy $ac_prog; ac_word=$2
5951 echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5953 if test "${ac_cv_prog_LEX+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956 if test -n "$LEX"; then
5957 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_LEX="$ac_prog"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5970 done
5971 done
5975 LEX=$ac_cv_prog_LEX
5976 if test -n "$LEX"; then
5977 echo "$as_me:$LINENO: result: $LEX" >&5
5978 echo "${ECHO_T}$LEX" >&6
5979 else
5980 echo "$as_me:$LINENO: result: no" >&5
5981 echo "${ECHO_T}no" >&6
5984 test -n "$LEX" && break
5985 done
5986 test -n "$LEX" || LEX=":"
5988 if test -z "$LEXLIB"
5989 then
5990 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5991 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5992 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 ac_check_lib_save_LIBS=$LIBS
5996 LIBS="-lfl $LIBS"
5997 cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h. */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6004 /* Override any gcc2 internal prototype to avoid an error. */
6005 #ifdef __cplusplus
6006 extern "C"
6007 #endif
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6010 char yywrap ();
6012 main ()
6014 yywrap ();
6016 return 0;
6018 _ACEOF
6019 rm -f conftest.$ac_objext conftest$ac_exeext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6021 (eval $ac_link) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -z "$ac_c_werror_flag"
6029 || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest$ac_exeext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_cv_lib_fl_yywrap=yes
6042 else
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6046 ac_cv_lib_fl_yywrap=no
6048 rm -f conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6050 LIBS=$ac_check_lib_save_LIBS
6052 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6053 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6054 if test $ac_cv_lib_fl_yywrap = yes; then
6055 LEXLIB="-lfl"
6056 else
6057 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6058 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6059 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-ll $LIBS"
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6071 /* Override any gcc2 internal prototype to avoid an error. */
6072 #ifdef __cplusplus
6073 extern "C"
6074 #endif
6075 /* We use char because int might match the return type of a gcc2
6076 builtin and then its argument prototype would still apply. */
6077 char yywrap ();
6079 main ()
6081 yywrap ();
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6088 (eval $ac_link) 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest$ac_exeext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_lib_l_yywrap=yes
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_cv_lib_l_yywrap=no
6115 rm -f conftest.err conftest.$ac_objext \
6116 conftest$ac_exeext conftest.$ac_ext
6117 LIBS=$ac_check_lib_save_LIBS
6119 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6120 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6121 if test $ac_cv_lib_l_yywrap = yes; then
6122 LEXLIB="-ll"
6129 if test "x$LEX" != "x:"; then
6130 echo "$as_me:$LINENO: checking lex output file root" >&5
6131 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6132 if test "${ac_cv_prog_lex_root+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 # The minimal lex program is just a single line: %%. But some broken lexes
6136 # (Solaris, I think it was) want two %% lines, so accommodate them.
6137 cat >conftest.l <<_ACEOF
6140 _ACEOF
6141 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6142 (eval $LEX conftest.l) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }
6146 if test -f lex.yy.c; then
6147 ac_cv_prog_lex_root=lex.yy
6148 elif test -f lexyy.c; then
6149 ac_cv_prog_lex_root=lexyy
6150 else
6151 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6152 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6153 { (exit 1); exit 1; }; }
6156 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6157 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6158 rm -f conftest.l
6159 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6161 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6162 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6163 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 # POSIX says lex can declare yytext either as a pointer or an array; the
6167 # default is implementation-dependent. Figure out which it is, since
6168 # not all implementations provide the %pointer and %array declarations.
6169 ac_cv_prog_lex_yytext_pointer=no
6170 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6171 ac_save_LIBS=$LIBS
6172 LIBS="$LIBS $LEXLIB"
6173 cat >conftest.$ac_ext <<_ACEOF
6174 `cat $LEX_OUTPUT_ROOT.c`
6175 _ACEOF
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178 (eval $ac_link) 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest$ac_exeext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_prog_lex_yytext_pointer=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6204 rm -f conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_save_LIBS
6207 rm -f "${LEX_OUTPUT_ROOT}.c"
6210 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6211 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6212 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6214 cat >>confdefs.h <<\_ACEOF
6215 #define YYTEXT_POINTER 1
6216 _ACEOF
6221 if test "$LEX" = :; then
6222 LEX=${am_missing_run}flex
6225 ALL_LINGUAS="fr tr es rw"
6226 # If we haven't got the data from the intl directory,
6227 # assume NLS is disabled.
6228 USE_NLS=no
6229 LIBINTL=
6230 LIBINTL_DEP=
6231 INCINTL=
6232 XGETTEXT=
6233 GMSGFMT=
6234 POSUB=
6236 if test -f ../intl/config.intl; then
6237 . ../intl/config.intl
6239 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6240 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6241 if test x"$USE_NLS" != xyes; then
6242 echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6
6244 else
6245 echo "$as_me:$LINENO: result: yes" >&5
6246 echo "${ECHO_T}yes" >&6
6248 cat >>confdefs.h <<\_ACEOF
6249 #define ENABLE_NLS 1
6250 _ACEOF
6253 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6254 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6255 # Look for .po and .gmo files in the source directory.
6256 CATALOGS=
6257 XLINGUAS=
6258 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6259 # If there aren't any .gmo files the shell will give us the
6260 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6261 # weeded out.
6262 case "$cat" in *\**)
6263 continue;;
6264 esac
6265 # The quadruple backslash is collapsed to a double backslash
6266 # by the backticks, then collapsed again by the double quotes,
6267 # leaving us with one backslash in the sed expression (right
6268 # before the dot that mustn't act as a wildcard).
6269 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6270 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6271 # The user is allowed to set LINGUAS to a list of languages to
6272 # install catalogs for. If it's empty that means "all of them."
6273 if test "x$LINGUAS" = x; then
6274 CATALOGS="$CATALOGS $cat"
6275 XLINGUAS="$XLINGUAS $lang"
6276 else
6277 case "$LINGUAS" in *$lang*)
6278 CATALOGS="$CATALOGS $cat"
6279 XLINGUAS="$XLINGUAS $lang"
6281 esac
6283 done
6284 LINGUAS="$XLINGUAS"
6285 echo "$as_me:$LINENO: result: $LINGUAS" >&5
6286 echo "${ECHO_T}$LINGUAS" >&6
6289 DATADIRNAME=share
6291 INSTOBJEXT=.mo
6293 GENCAT=gencat
6295 CATOBJEXT=.gmo
6299 MKINSTALLDIRS=
6300 if test -n "$ac_aux_dir"; then
6301 case "$ac_aux_dir" in
6302 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6303 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6304 esac
6306 if test -z "$MKINSTALLDIRS"; then
6307 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6312 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6313 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6314 # Check whether --enable-nls or --disable-nls was given.
6315 if test "${enable_nls+set}" = set; then
6316 enableval="$enable_nls"
6317 USE_NLS=$enableval
6318 else
6319 USE_NLS=yes
6321 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6322 echo "${ECHO_T}$USE_NLS" >&6
6329 # Prepare PATH_SEPARATOR.
6330 # The user is always right.
6331 if test "${PATH_SEPARATOR+set}" != set; then
6332 echo "#! /bin/sh" >conf$$.sh
6333 echo "exit 0" >>conf$$.sh
6334 chmod +x conf$$.sh
6335 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6336 PATH_SEPARATOR=';'
6337 else
6338 PATH_SEPARATOR=:
6340 rm -f conf$$.sh
6343 # Find out how to test for executable files. Don't use a zero-byte file,
6344 # as systems may use methods other than mode bits to determine executability.
6345 cat >conf$$.file <<_ASEOF
6346 #! /bin/sh
6347 exit 0
6348 _ASEOF
6349 chmod +x conf$$.file
6350 if test -x conf$$.file >/dev/null 2>&1; then
6351 ac_executable_p="test -x"
6352 else
6353 ac_executable_p="test -f"
6355 rm -f conf$$.file
6357 # Extract the first word of "msgfmt", so it can be a program name with args.
6358 set dummy msgfmt; ac_word=$2
6359 echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6361 if test "${ac_cv_path_MSGFMT+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 case "$MSGFMT" in
6365 [\\/]* | ?:[\\/]*)
6366 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6369 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6370 for ac_dir in $PATH; do
6371 IFS="$ac_save_IFS"
6372 test -z "$ac_dir" && ac_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6375 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6376 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6377 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6378 break 2
6381 done
6382 done
6383 IFS="$ac_save_IFS"
6384 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6386 esac
6388 MSGFMT="$ac_cv_path_MSGFMT"
6389 if test "$MSGFMT" != ":"; then
6390 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6391 echo "${ECHO_T}$MSGFMT" >&6
6392 else
6393 echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6
6397 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6398 set dummy gmsgfmt; ac_word=$2
6399 echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6401 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 case $GMSGFMT in
6405 [\\/]* | ?:[\\/]*)
6406 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6420 done
6421 done
6423 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6425 esac
6427 GMSGFMT=$ac_cv_path_GMSGFMT
6429 if test -n "$GMSGFMT"; then
6430 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6431 echo "${ECHO_T}$GMSGFMT" >&6
6432 else
6433 echo "$as_me:$LINENO: result: no" >&5
6434 echo "${ECHO_T}no" >&6
6439 # Prepare PATH_SEPARATOR.
6440 # The user is always right.
6441 if test "${PATH_SEPARATOR+set}" != set; then
6442 echo "#! /bin/sh" >conf$$.sh
6443 echo "exit 0" >>conf$$.sh
6444 chmod +x conf$$.sh
6445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6446 PATH_SEPARATOR=';'
6447 else
6448 PATH_SEPARATOR=:
6450 rm -f conf$$.sh
6453 # Find out how to test for executable files. Don't use a zero-byte file,
6454 # as systems may use methods other than mode bits to determine executability.
6455 cat >conf$$.file <<_ASEOF
6456 #! /bin/sh
6457 exit 0
6458 _ASEOF
6459 chmod +x conf$$.file
6460 if test -x conf$$.file >/dev/null 2>&1; then
6461 ac_executable_p="test -x"
6462 else
6463 ac_executable_p="test -f"
6465 rm -f conf$$.file
6467 # Extract the first word of "xgettext", so it can be a program name with args.
6468 set dummy xgettext; ac_word=$2
6469 echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6471 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 case "$XGETTEXT" in
6475 [\\/]* | ?:[\\/]*)
6476 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6479 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6480 for ac_dir in $PATH; do
6481 IFS="$ac_save_IFS"
6482 test -z "$ac_dir" && ac_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6485 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6486 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6487 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6488 break 2
6491 done
6492 done
6493 IFS="$ac_save_IFS"
6494 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6496 esac
6498 XGETTEXT="$ac_cv_path_XGETTEXT"
6499 if test "$XGETTEXT" != ":"; then
6500 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6501 echo "${ECHO_T}$XGETTEXT" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6
6507 rm -f messages.po
6510 # Prepare PATH_SEPARATOR.
6511 # The user is always right.
6512 if test "${PATH_SEPARATOR+set}" != set; then
6513 echo "#! /bin/sh" >conf$$.sh
6514 echo "exit 0" >>conf$$.sh
6515 chmod +x conf$$.sh
6516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6517 PATH_SEPARATOR=';'
6518 else
6519 PATH_SEPARATOR=:
6521 rm -f conf$$.sh
6524 # Find out how to test for executable files. Don't use a zero-byte file,
6525 # as systems may use methods other than mode bits to determine executability.
6526 cat >conf$$.file <<_ASEOF
6527 #! /bin/sh
6528 exit 0
6529 _ASEOF
6530 chmod +x conf$$.file
6531 if test -x conf$$.file >/dev/null 2>&1; then
6532 ac_executable_p="test -x"
6533 else
6534 ac_executable_p="test -f"
6536 rm -f conf$$.file
6538 # Extract the first word of "msgmerge", so it can be a program name with args.
6539 set dummy msgmerge; ac_word=$2
6540 echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6542 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 case "$MSGMERGE" in
6546 [\\/]* | ?:[\\/]*)
6547 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6550 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6551 for ac_dir in $PATH; do
6552 IFS="$ac_save_IFS"
6553 test -z "$ac_dir" && ac_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6556 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6557 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6558 break 2
6561 done
6562 done
6563 IFS="$ac_save_IFS"
6564 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6566 esac
6568 MSGMERGE="$ac_cv_path_MSGMERGE"
6569 if test "$MSGMERGE" != ":"; then
6570 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6571 echo "${ECHO_T}$MSGMERGE" >&6
6572 else
6573 echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6
6578 if test "$GMSGFMT" != ":"; then
6579 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6580 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6582 else
6583 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6584 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6585 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6586 GMSGFMT=":"
6590 if test "$XGETTEXT" != ":"; then
6591 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6592 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6594 else
6595 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6596 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6597 XGETTEXT=":"
6599 rm -f messages.po
6602 ac_config_commands="$ac_config_commands default-1"
6606 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6607 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6608 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6609 if test "${enable_maintainer_mode+set}" = set; then
6610 enableval="$enable_maintainer_mode"
6611 USE_MAINTAINER_MODE=$enableval
6612 else
6613 USE_MAINTAINER_MODE=no
6615 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6616 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6619 if test $USE_MAINTAINER_MODE = yes; then
6620 MAINTAINER_MODE_TRUE=
6621 MAINTAINER_MODE_FALSE='#'
6622 else
6623 MAINTAINER_MODE_TRUE='#'
6624 MAINTAINER_MODE_FALSE=
6627 MAINT=$MAINTAINER_MODE_TRUE
6632 ac_ext=c
6633 ac_cpp='$CPP $CPPFLAGS'
6634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6637 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6638 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6639 # On Suns, sometimes $CPP names a directory.
6640 if test -n "$CPP" && test -d "$CPP"; then
6641 CPP=
6643 if test -z "$CPP"; then
6644 if test "${ac_cv_prog_CPP+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647 # Double quotes because CPP needs to be expanded
6648 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6650 ac_preproc_ok=false
6651 for ac_c_preproc_warn_flag in '' yes
6653 # Use a header file that comes with gcc, so configuring glibc
6654 # with a fresh cross-compiler works.
6655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6656 # <limits.h> exists even on freestanding compilers.
6657 # On the NeXT, cc -E runs the code through the compiler's parser,
6658 # not just through cpp. "Syntax error" is here to catch this case.
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 #ifdef __STDC__
6666 # include <limits.h>
6667 #else
6668 # include <assert.h>
6669 #endif
6670 Syntax error
6671 _ACEOF
6672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } >/dev/null; then
6680 if test -s conftest.err; then
6681 ac_cpp_err=$ac_c_preproc_warn_flag
6682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6683 else
6684 ac_cpp_err=
6686 else
6687 ac_cpp_err=yes
6689 if test -z "$ac_cpp_err"; then
6691 else
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 # Broken: fails on valid input.
6696 continue
6698 rm -f conftest.err conftest.$ac_ext
6700 # OK, works on sane cases. Now check whether non-existent headers
6701 # can be detected and how.
6702 cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h. */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <ac_nonexistent.h>
6709 _ACEOF
6710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } >/dev/null; then
6718 if test -s conftest.err; then
6719 ac_cpp_err=$ac_c_preproc_warn_flag
6720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6721 else
6722 ac_cpp_err=
6724 else
6725 ac_cpp_err=yes
6727 if test -z "$ac_cpp_err"; then
6728 # Broken: success on invalid input.
6729 continue
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6734 # Passes both tests.
6735 ac_preproc_ok=:
6736 break
6738 rm -f conftest.err conftest.$ac_ext
6740 done
6741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6742 rm -f conftest.err conftest.$ac_ext
6743 if $ac_preproc_ok; then
6744 break
6747 done
6748 ac_cv_prog_CPP=$CPP
6751 CPP=$ac_cv_prog_CPP
6752 else
6753 ac_cv_prog_CPP=$CPP
6755 echo "$as_me:$LINENO: result: $CPP" >&5
6756 echo "${ECHO_T}$CPP" >&6
6757 ac_preproc_ok=false
6758 for ac_c_preproc_warn_flag in '' yes
6760 # Use a header file that comes with gcc, so configuring glibc
6761 # with a fresh cross-compiler works.
6762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6763 # <limits.h> exists even on freestanding compilers.
6764 # On the NeXT, cc -E runs the code through the compiler's parser,
6765 # not just through cpp. "Syntax error" is here to catch this case.
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 #ifdef __STDC__
6773 # include <limits.h>
6774 #else
6775 # include <assert.h>
6776 #endif
6777 Syntax error
6778 _ACEOF
6779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } >/dev/null; then
6787 if test -s conftest.err; then
6788 ac_cpp_err=$ac_c_preproc_warn_flag
6789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6790 else
6791 ac_cpp_err=
6793 else
6794 ac_cpp_err=yes
6796 if test -z "$ac_cpp_err"; then
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 # Broken: fails on valid input.
6803 continue
6805 rm -f conftest.err conftest.$ac_ext
6807 # OK, works on sane cases. Now check whether non-existent headers
6808 # can be detected and how.
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <ac_nonexistent.h>
6816 _ACEOF
6817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } >/dev/null; then
6825 if test -s conftest.err; then
6826 ac_cpp_err=$ac_c_preproc_warn_flag
6827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6828 else
6829 ac_cpp_err=
6831 else
6832 ac_cpp_err=yes
6834 if test -z "$ac_cpp_err"; then
6835 # Broken: success on invalid input.
6836 continue
6837 else
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 # Passes both tests.
6842 ac_preproc_ok=:
6843 break
6845 rm -f conftest.err conftest.$ac_ext
6847 done
6848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6849 rm -f conftest.err conftest.$ac_ext
6850 if $ac_preproc_ok; then
6852 else
6853 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6854 See \`config.log' for more details." >&5
6855 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6856 See \`config.log' for more details." >&2;}
6857 { (exit 1); exit 1; }; }
6860 ac_ext=c
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867 echo "$as_me:$LINENO: checking for egrep" >&5
6868 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6869 if test "${ac_cv_prog_egrep+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6873 then ac_cv_prog_egrep='grep -E'
6874 else ac_cv_prog_egrep='egrep'
6877 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6878 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6879 EGREP=$ac_cv_prog_egrep
6882 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6883 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6884 if test "${ac_cv_header_stdc+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 #include <stdlib.h>
6894 #include <stdarg.h>
6895 #include <string.h>
6896 #include <float.h>
6899 main ()
6903 return 0;
6905 _ACEOF
6906 rm -f conftest.$ac_objext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6908 (eval $ac_compile) 2>conftest.er1
6909 ac_status=$?
6910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } &&
6915 { ac_try='test -z "$ac_c_werror_flag"
6916 || test ! -s conftest.err'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; } &&
6922 { ac_try='test -s conftest.$ac_objext'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 (eval $ac_try) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; }; then
6928 ac_cv_header_stdc=yes
6929 else
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 ac_cv_header_stdc=no
6935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937 if test $ac_cv_header_stdc = yes; then
6938 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #include <string.h>
6947 _ACEOF
6948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949 $EGREP "memchr" >/dev/null 2>&1; then
6951 else
6952 ac_cv_header_stdc=no
6954 rm -f conftest*
6958 if test $ac_cv_header_stdc = yes; then
6959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #include <stdlib.h>
6968 _ACEOF
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970 $EGREP "free" >/dev/null 2>&1; then
6972 else
6973 ac_cv_header_stdc=no
6975 rm -f conftest*
6979 if test $ac_cv_header_stdc = yes; then
6980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6981 if test "$cross_compiling" = yes; then
6983 else
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6990 #include <ctype.h>
6991 #if ((' ' & 0x0FF) == 0x020)
6992 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6993 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6994 #else
6995 # define ISLOWER(c) \
6996 (('a' <= (c) && (c) <= 'i') \
6997 || ('j' <= (c) && (c) <= 'r') \
6998 || ('s' <= (c) && (c) <= 'z'))
6999 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7000 #endif
7002 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7004 main ()
7006 int i;
7007 for (i = 0; i < 256; i++)
7008 if (XOR (islower (i), ISLOWER (i))
7009 || toupper (i) != TOUPPER (i))
7010 exit(2);
7011 exit (0);
7013 _ACEOF
7014 rm -f conftest$ac_exeext
7015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7016 (eval $ac_link) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7026 else
7027 echo "$as_me: program exited with status $ac_status" >&5
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 ( exit $ac_status )
7032 ac_cv_header_stdc=no
7034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7038 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7039 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7040 if test $ac_cv_header_stdc = yes; then
7042 cat >>confdefs.h <<\_ACEOF
7043 #define STDC_HEADERS 1
7044 _ACEOF
7048 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7058 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7059 inttypes.h stdint.h unistd.h
7061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7062 echo "$as_me:$LINENO: checking for $ac_header" >&5
7063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 $ac_includes_default
7075 #include <$ac_header>
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 eval "$as_ac_Header=yes"
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 eval "$as_ac_Header=no"
7106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7111 cat >>confdefs.h <<_ACEOF
7112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7113 _ACEOF
7117 done
7129 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
7131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7133 echo "$as_me:$LINENO: checking for $ac_header" >&5
7134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140 else
7141 # Is the header compilable?
7142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 $ac_includes_default
7151 #include <$ac_header>
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7155 (eval $ac_compile) 2>conftest.er1
7156 ac_status=$?
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
7162 { ac_try='test -z "$ac_c_werror_flag"
7163 || test ! -s conftest.err'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; } &&
7169 { ac_try='test -s conftest.$ac_objext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 (eval $ac_try) 2>&5
7172 ac_status=$?
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 ac_header_compiler=yes
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 ac_header_compiler=no
7182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7184 echo "${ECHO_T}$ac_header_compiler" >&6
7186 # Is the header present?
7187 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
7196 _ACEOF
7197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } >/dev/null; then
7205 if test -s conftest.err; then
7206 ac_cpp_err=$ac_c_preproc_warn_flag
7207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7208 else
7209 ac_cpp_err=
7211 else
7212 ac_cpp_err=yes
7214 if test -z "$ac_cpp_err"; then
7215 ac_header_preproc=yes
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 ac_header_preproc=no
7222 rm -f conftest.err conftest.$ac_ext
7223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7224 echo "${ECHO_T}$ac_header_preproc" >&6
7226 # So? What about this header?
7227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7228 yes:no: )
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7233 ac_header_preproc=yes
7235 no:yes:* )
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7249 cat <<\_ASBOX
7250 ## ------------------------------------------ ##
7251 ## Report this to the AC_PACKAGE_NAME lists. ##
7252 ## ------------------------------------------ ##
7253 _ASBOX
7255 sed "s/^/$as_me: WARNING: /" >&2
7257 esac
7258 echo "$as_me:$LINENO: checking for $ac_header" >&5
7259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263 eval "$as_ac_Header=\$ac_header_preproc"
7265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7270 cat >>confdefs.h <<_ACEOF
7271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7272 _ACEOF
7276 done
7279 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
7280 # people who are not cross-compiling but are compiling cross-assemblers.
7281 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
7282 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
7283 if test "${host}" = "${target}"; then
7284 cross_gas=no
7285 else
7286 cross_gas=yes
7288 cat >>confdefs.h <<\_ACEOF
7289 #define CROSS_COMPILE 1
7290 _ACEOF
7293 echo "$as_me:$LINENO: result: $cross_gas" >&5
7294 echo "${ECHO_T}$cross_gas" >&6
7296 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7297 # for constant arguments. Useless!
7298 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7299 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7300 if test "${ac_cv_working_alloca_h+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 #include <alloca.h>
7311 main ()
7313 char *p = (char *) alloca (2 * sizeof (int));
7315 return 0;
7317 _ACEOF
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7320 (eval $ac_link) 2>conftest.er1
7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag"
7328 || test ! -s conftest.err'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; } &&
7334 { ac_try='test -s conftest$ac_exeext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_cv_working_alloca_h=yes
7341 else
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7345 ac_cv_working_alloca_h=no
7347 rm -f conftest.err conftest.$ac_objext \
7348 conftest$ac_exeext conftest.$ac_ext
7350 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7351 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7352 if test $ac_cv_working_alloca_h = yes; then
7354 cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_ALLOCA_H 1
7356 _ACEOF
7360 echo "$as_me:$LINENO: checking for alloca" >&5
7361 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7362 if test "${ac_cv_func_alloca_works+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h. */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 #ifdef __GNUC__
7372 # define alloca __builtin_alloca
7373 #else
7374 # ifdef _MSC_VER
7375 # include <malloc.h>
7376 # define alloca _alloca
7377 # else
7378 # if HAVE_ALLOCA_H
7379 # include <alloca.h>
7380 # else
7381 # ifdef _AIX
7382 #pragma alloca
7383 # else
7384 # ifndef alloca /* predefined by HP cc +Olibcalls */
7385 char *alloca ();
7386 # endif
7387 # endif
7388 # endif
7389 # endif
7390 #endif
7393 main ()
7395 char *p = (char *) alloca (1);
7397 return 0;
7399 _ACEOF
7400 rm -f conftest.$ac_objext conftest$ac_exeext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7402 (eval $ac_link) 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try='test -z "$ac_c_werror_flag"
7410 || test ! -s conftest.err'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; } &&
7416 { ac_try='test -s conftest$ac_exeext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 ac_cv_func_alloca_works=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_cv_func_alloca_works=no
7429 rm -f conftest.err conftest.$ac_objext \
7430 conftest$ac_exeext conftest.$ac_ext
7432 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7433 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7435 if test $ac_cv_func_alloca_works = yes; then
7437 cat >>confdefs.h <<\_ACEOF
7438 #define HAVE_ALLOCA 1
7439 _ACEOF
7441 else
7442 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7443 # that cause trouble. Some versions do not even contain alloca or
7444 # contain a buggy version. If you still want to use their alloca,
7445 # use ar to extract alloca.o from them instead of compiling alloca.c.
7447 ALLOCA=alloca.$ac_objext
7449 cat >>confdefs.h <<\_ACEOF
7450 #define C_ALLOCA 1
7451 _ACEOF
7454 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7455 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7456 if test "${ac_cv_os_cray+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 #if defined(CRAY) && ! defined(CRAY2)
7466 webecray
7467 #else
7468 wenotbecray
7469 #endif
7471 _ACEOF
7472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7473 $EGREP "webecray" >/dev/null 2>&1; then
7474 ac_cv_os_cray=yes
7475 else
7476 ac_cv_os_cray=no
7478 rm -f conftest*
7481 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7482 echo "${ECHO_T}$ac_cv_os_cray" >&6
7483 if test $ac_cv_os_cray = yes; then
7484 for ac_func in _getb67 GETB67 getb67; do
7485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7486 echo "$as_me:$LINENO: checking for $ac_func" >&5
7487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7488 if eval "test \"\${$as_ac_var+set}\" = set"; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491 cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h. */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7499 #define $ac_func innocuous_$ac_func
7501 /* System header to define __stub macros and hopefully few prototypes,
7502 which can conflict with char $ac_func (); below.
7503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7504 <limits.h> exists even on freestanding compilers. */
7506 #ifdef __STDC__
7507 # include <limits.h>
7508 #else
7509 # include <assert.h>
7510 #endif
7512 #undef $ac_func
7514 /* Override any gcc2 internal prototype to avoid an error. */
7515 #ifdef __cplusplus
7516 extern "C"
7518 #endif
7519 /* We use char because int might match the return type of a gcc2
7520 builtin and then its argument prototype would still apply. */
7521 char $ac_func ();
7522 /* The GNU C library defines this for functions which it implements
7523 to always fail with ENOSYS. Some functions are actually named
7524 something starting with __ and the normal name is an alias. */
7525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7526 choke me
7527 #else
7528 char (*f) () = $ac_func;
7529 #endif
7530 #ifdef __cplusplus
7532 #endif
7535 main ()
7537 return f != $ac_func;
7539 return 0;
7541 _ACEOF
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7544 (eval $ac_link) 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -z "$ac_c_werror_flag"
7552 || test ! -s conftest.err'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 (eval $ac_try) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; } &&
7558 { ac_try='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 eval "$as_ac_var=yes"
7565 else
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 eval "$as_ac_var=no"
7571 rm -f conftest.err conftest.$ac_objext \
7572 conftest$ac_exeext conftest.$ac_ext
7574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7576 if test `eval echo '${'$as_ac_var'}'` = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define CRAY_STACKSEG_END $ac_func
7580 _ACEOF
7582 break
7585 done
7588 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7589 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7590 if test "${ac_cv_c_stack_direction+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 if test "$cross_compiling" = yes; then
7594 ac_cv_c_stack_direction=0
7595 else
7596 cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h. */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7603 find_stack_direction ()
7605 static char *addr = 0;
7606 auto char dummy;
7607 if (addr == 0)
7609 addr = &dummy;
7610 return find_stack_direction ();
7612 else
7613 return (&dummy > addr) ? 1 : -1;
7617 main ()
7619 exit (find_stack_direction () < 0);
7621 _ACEOF
7622 rm -f conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_cv_c_stack_direction=1
7634 else
7635 echo "$as_me: program exited with status $ac_status" >&5
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 ( exit $ac_status )
7640 ac_cv_c_stack_direction=-1
7642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7646 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7648 cat >>confdefs.h <<_ACEOF
7649 #define STACK_DIRECTION $ac_cv_c_stack_direction
7650 _ACEOF
7655 echo "$as_me:$LINENO: checking for inline" >&5
7656 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7657 if test "${ac_cv_c_inline+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 ac_cv_c_inline=no
7661 for ac_kw in inline __inline__ __inline; do
7662 cat >conftest.$ac_ext <<_ACEOF
7663 /* confdefs.h. */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7668 #ifndef __cplusplus
7669 typedef int foo_t;
7670 static $ac_kw foo_t static_foo () {return 0; }
7671 $ac_kw foo_t foo () {return 0; }
7672 #endif
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag"
7685 || test ! -s conftest.err'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; } &&
7691 { ac_try='test -s conftest.$ac_objext'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7697 ac_cv_c_inline=$ac_kw; break
7698 else
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 done
7707 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7708 echo "${ECHO_T}$ac_cv_c_inline" >&6
7711 case $ac_cv_c_inline in
7712 inline | yes) ;;
7714 case $ac_cv_c_inline in
7715 no) ac_val=;;
7716 *) ac_val=$ac_cv_c_inline;;
7717 esac
7718 cat >>confdefs.h <<_ACEOF
7719 #ifndef __cplusplus
7720 #define inline $ac_val
7721 #endif
7722 _ACEOF
7724 esac
7727 # VMS doesn't have unlink.
7730 for ac_func in unlink remove
7732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7733 echo "$as_me:$LINENO: checking for $ac_func" >&5
7734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7735 if eval "test \"\${$as_ac_var+set}\" = set"; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7746 #define $ac_func innocuous_$ac_func
7748 /* System header to define __stub macros and hopefully few prototypes,
7749 which can conflict with char $ac_func (); below.
7750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7751 <limits.h> exists even on freestanding compilers. */
7753 #ifdef __STDC__
7754 # include <limits.h>
7755 #else
7756 # include <assert.h>
7757 #endif
7759 #undef $ac_func
7761 /* Override any gcc2 internal prototype to avoid an error. */
7762 #ifdef __cplusplus
7763 extern "C"
7765 #endif
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7768 char $ac_func ();
7769 /* The GNU C library defines this for functions which it implements
7770 to always fail with ENOSYS. Some functions are actually named
7771 something starting with __ and the normal name is an alias. */
7772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7773 choke me
7774 #else
7775 char (*f) () = $ac_func;
7776 #endif
7777 #ifdef __cplusplus
7779 #endif
7782 main ()
7784 return f != $ac_func;
7786 return 0;
7788 _ACEOF
7789 rm -f conftest.$ac_objext conftest$ac_exeext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791 (eval $ac_link) 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 eval "$as_ac_var=yes"
7812 else
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7816 eval "$as_ac_var=no"
7818 rm -f conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7823 if test `eval echo '${'$as_ac_var'}'` = yes; then
7824 cat >>confdefs.h <<_ACEOF
7825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7826 _ACEOF
7827 break
7829 done
7832 # Some systems don't have sbrk().
7834 for ac_func in sbrk
7836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7837 echo "$as_me:$LINENO: checking for $ac_func" >&5
7838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7839 if eval "test \"\${$as_ac_var+set}\" = set"; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7850 #define $ac_func innocuous_$ac_func
7852 /* System header to define __stub macros and hopefully few prototypes,
7853 which can conflict with char $ac_func (); below.
7854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7855 <limits.h> exists even on freestanding compilers. */
7857 #ifdef __STDC__
7858 # include <limits.h>
7859 #else
7860 # include <assert.h>
7861 #endif
7863 #undef $ac_func
7865 /* Override any gcc2 internal prototype to avoid an error. */
7866 #ifdef __cplusplus
7867 extern "C"
7869 #endif
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7872 char $ac_func ();
7873 /* The GNU C library defines this for functions which it implements
7874 to always fail with ENOSYS. Some functions are actually named
7875 something starting with __ and the normal name is an alias. */
7876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7877 choke me
7878 #else
7879 char (*f) () = $ac_func;
7880 #endif
7881 #ifdef __cplusplus
7883 #endif
7886 main ()
7888 return f != $ac_func;
7890 return 0;
7892 _ACEOF
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_c_werror_flag"
7903 || test ! -s conftest.err'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 (eval $ac_try) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try='test -s conftest$ac_exeext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 eval "$as_ac_var=yes"
7916 else
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 eval "$as_ac_var=no"
7922 rm -f conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7927 if test `eval echo '${'$as_ac_var'}'` = yes; then
7928 cat >>confdefs.h <<_ACEOF
7929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7930 _ACEOF
7933 done
7936 # do we need the math library?
7937 case "${need_libm}" in
7938 yes)
7939 LIBM=
7940 case $host in
7941 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
7942 # These system don't have libm
7943 # on darwin the libm is a symbolic link to libSystem.dylib
7945 *-ncr-sysv4.3*)
7946 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
7947 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
7948 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951 ac_check_lib_save_LIBS=$LIBS
7952 LIBS="-lmw $LIBS"
7953 cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h. */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 #ifdef __cplusplus
7962 extern "C"
7963 #endif
7964 /* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */
7966 char _mwvalidcheckl ();
7968 main ()
7970 _mwvalidcheckl ();
7972 return 0;
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7977 (eval $ac_link) 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try='test -z "$ac_c_werror_flag"
7985 || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try='test -s conftest$ac_exeext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_lib_mw__mwvalidcheckl=yes
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_cv_lib_mw__mwvalidcheckl=no
8004 rm -f conftest.err conftest.$ac_objext \
8005 conftest$ac_exeext conftest.$ac_ext
8006 LIBS=$ac_check_lib_save_LIBS
8008 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
8009 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
8010 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
8011 LIBM="-lmw"
8014 echo "$as_me:$LINENO: checking for main in -lm" >&5
8015 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8016 if test "${ac_cv_lib_m_main+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 ac_check_lib_save_LIBS=$LIBS
8020 LIBS="-lm $LIBS"
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8030 main ()
8032 main ();
8034 return 0;
8036 _ACEOF
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag"
8047 || test ! -s conftest.err'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; } &&
8053 { ac_try='test -s conftest$ac_exeext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8059 ac_cv_lib_m_main=yes
8060 else
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_cv_lib_m_main=no
8066 rm -f conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 LIBS=$ac_check_lib_save_LIBS
8070 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8071 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8072 if test $ac_cv_lib_m_main = yes; then
8073 LIBM="$LIBM -lm"
8078 echo "$as_me:$LINENO: checking for main in -lm" >&5
8079 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8080 if test "${ac_cv_lib_m_main+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083 ac_check_lib_save_LIBS=$LIBS
8084 LIBS="-lm $LIBS"
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8094 main ()
8096 main ();
8098 return 0;
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>conftest.er1
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -z "$ac_c_werror_flag"
8111 || test ! -s conftest.err'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 (eval $ac_try) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest$ac_exeext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 ac_cv_lib_m_main=yes
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_cv_lib_m_main=no
8130 rm -f conftest.err conftest.$ac_objext \
8131 conftest$ac_exeext conftest.$ac_ext
8132 LIBS=$ac_check_lib_save_LIBS
8134 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8135 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8136 if test $ac_cv_lib_m_main = yes; then
8137 LIBM="-lm"
8141 esac
8145 esac
8147 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
8148 # enough, but on some of those systems, the assert macro relies on requoting
8149 # working properly!
8150 echo "$as_me:$LINENO: checking for working assert macro" >&5
8151 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
8152 if test "${gas_cv_assert_ok+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155 cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h. */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 #include <assert.h>
8162 #include <stdio.h>
8164 main ()
8167 /* check for requoting problems */
8168 static int a, b, c, d;
8169 static char *s;
8170 assert (!strcmp(s, "foo bar baz quux"));
8171 /* check for newline handling */
8172 assert (a == b
8173 || c == d);
8176 return 0;
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181 (eval $ac_link) 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -z "$ac_c_werror_flag"
8189 || test ! -s conftest.err'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; } &&
8195 { ac_try='test -s conftest$ac_exeext'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 gas_cv_assert_ok=yes
8202 else
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8206 gas_cv_assert_ok=no
8208 rm -f conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8211 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
8212 echo "${ECHO_T}$gas_cv_assert_ok" >&6
8213 test $gas_cv_assert_ok = yes ||
8214 cat >>confdefs.h <<\_ACEOF
8215 #define BROKEN_ASSERT 1
8216 _ACEOF
8220 # On some systems, the system header files may not declare malloc, realloc,
8221 # and free. There are places where gas needs these functions to have been
8222 # declared -- such as when taking their addresses.
8223 gas_test_headers="
8224 #ifdef HAVE_MEMORY_H
8225 #include <memory.h>
8226 #endif
8227 #ifdef HAVE_STRING_H
8228 #include <string.h>
8229 #else
8230 #ifdef HAVE_STRINGS_H
8231 #include <strings.h>
8232 #endif
8233 #endif
8234 #ifdef HAVE_STDLIB_H
8235 #include <stdlib.h>
8236 #endif
8237 #ifdef HAVE_UNISTD_H
8238 #include <unistd.h>
8239 #endif
8242 # Does errno.h declare errno, or do we have to add a separate declaration
8243 # for it?
8245 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
8246 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
8247 if test "${gas_cv_decl_needed_errno+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8257 #ifdef HAVE_ERRNO_H
8258 #include <errno.h>
8259 #endif
8262 main ()
8265 typedef int f;
8266 f x;
8267 x = (f) errno;
8270 return 0;
8272 _ACEOF
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8275 (eval $ac_link) 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_c_werror_flag"
8283 || test ! -s conftest.err'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try='test -s conftest$ac_exeext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 gas_cv_decl_needed_errno=no
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8300 gas_cv_decl_needed_errno=yes
8302 rm -f conftest.err conftest.$ac_objext \
8303 conftest$ac_exeext conftest.$ac_ext
8305 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
8306 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
8307 if test $gas_cv_decl_needed_errno = yes; then
8309 cat >>confdefs.h <<\_ACEOF
8310 #define NEED_DECLARATION_ERRNO 1
8311 _ACEOF
8316 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
8317 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
8318 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 #include <unistd.h>
8329 main ()
8331 extern int getopt (int, char *const*, const char *);
8333 return 0;
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8338 (eval $ac_compile) 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest.$ac_objext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 gas_cv_decl_getopt_unistd_h=yes
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 gas_cv_decl_getopt_unistd_h=no
8365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8368 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
8369 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
8370 if test $gas_cv_decl_getopt_unistd_h = yes; then
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_DECL_GETOPT 1
8374 _ACEOF
8379 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
8380 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
8381 if test "${gas_cv_decl_needed_environ+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $gas_test_headers
8392 main ()
8395 typedef char **f;
8396 f x;
8397 x = (f) environ;
8400 return 0;
8402 _ACEOF
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8405 (eval $ac_link) 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -z "$ac_c_werror_flag"
8413 || test ! -s conftest.err'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; } &&
8419 { ac_try='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 gas_cv_decl_needed_environ=no
8426 else
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 gas_cv_decl_needed_environ=yes
8432 rm -f conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext conftest.$ac_ext
8435 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
8436 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
8437 if test $gas_cv_decl_needed_environ = yes; then
8439 cat >>confdefs.h <<\_ACEOF
8440 #define NEED_DECLARATION_ENVIRON 1
8441 _ACEOF
8446 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
8447 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
8448 if test "${gas_cv_decl_needed_ffs+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $gas_test_headers
8459 main ()
8462 typedef int (*f)(int);
8463 f x;
8464 x = (f) ffs;
8467 return 0;
8469 _ACEOF
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472 (eval $ac_link) 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -z "$ac_c_werror_flag"
8480 || test ! -s conftest.err'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; } &&
8486 { ac_try='test -s conftest$ac_exeext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 gas_cv_decl_needed_ffs=no
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 gas_cv_decl_needed_ffs=yes
8499 rm -f conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext conftest.$ac_ext
8502 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
8503 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
8504 if test $gas_cv_decl_needed_ffs = yes; then
8506 cat >>confdefs.h <<\_ACEOF
8507 #define NEED_DECLARATION_FFS 1
8508 _ACEOF
8513 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
8514 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
8515 if test "${gas_cv_decl_needed_free+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 $gas_test_headers
8526 main ()
8529 typedef void (*f)();
8530 f x;
8531 x = (f) free;
8534 return 0;
8536 _ACEOF
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try='test -z "$ac_c_werror_flag"
8547 || test ! -s conftest.err'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; } &&
8553 { ac_try='test -s conftest$ac_exeext'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 gas_cv_decl_needed_free=no
8560 else
8561 echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8564 gas_cv_decl_needed_free=yes
8566 rm -f conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
8569 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
8570 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
8571 if test $gas_cv_decl_needed_free = yes; then
8573 cat >>confdefs.h <<\_ACEOF
8574 #define NEED_DECLARATION_FREE 1
8575 _ACEOF
8580 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
8581 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
8582 if test "${gas_cv_decl_needed_malloc+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $gas_test_headers
8593 main ()
8596 typedef char *(*f)();
8597 f x;
8598 x = (f) malloc;
8601 return 0;
8603 _ACEOF
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606 (eval $ac_link) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag"
8614 || test ! -s conftest.err'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest$ac_exeext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 gas_cv_decl_needed_malloc=no
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 gas_cv_decl_needed_malloc=yes
8633 rm -f conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
8637 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
8638 if test $gas_cv_decl_needed_malloc = yes; then
8640 cat >>confdefs.h <<\_ACEOF
8641 #define NEED_DECLARATION_MALLOC 1
8642 _ACEOF
8647 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
8648 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
8649 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652 cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h. */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8658 $gas_test_headers
8660 main ()
8663 typedef char *(*f)();
8664 f x;
8665 x = (f) sbrk;
8668 return 0;
8670 _ACEOF
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8673 (eval $ac_link) 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag"
8681 || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 gas_cv_decl_needed_sbrk=no
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 gas_cv_decl_needed_sbrk=yes
8700 rm -f conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
8703 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
8704 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
8705 if test $gas_cv_decl_needed_sbrk = yes; then
8707 cat >>confdefs.h <<\_ACEOF
8708 #define NEED_DECLARATION_SBRK 1
8709 _ACEOF
8714 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
8715 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
8716 if test "${gas_cv_decl_needed_strstr+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h. */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 $gas_test_headers
8727 main ()
8730 typedef char *(*f)();
8731 f x;
8732 x = (f) strstr;
8735 return 0;
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag"
8748 || test ! -s conftest.err'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; } &&
8754 { ac_try='test -s conftest$ac_exeext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 gas_cv_decl_needed_strstr=no
8761 else
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 gas_cv_decl_needed_strstr=yes
8767 rm -f conftest.err conftest.$ac_objext \
8768 conftest$ac_exeext conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
8771 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
8772 if test $gas_cv_decl_needed_strstr = yes; then
8774 cat >>confdefs.h <<\_ACEOF
8775 #define NEED_DECLARATION_STRSTR 1
8776 _ACEOF
8781 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8782 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8783 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h. */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 $ac_includes_default
8794 main ()
8796 #ifndef vsnprintf
8797 char *p = (char *) vsnprintf;
8798 #endif
8801 return 0;
8803 _ACEOF
8804 rm -f conftest.$ac_objext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806 (eval $ac_compile) 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try='test -z "$ac_c_werror_flag"
8814 || test ! -s conftest.err'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8826 ac_cv_have_decl_vsnprintf=yes
8827 else
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_cv_have_decl_vsnprintf=no
8833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8836 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8837 if test $ac_cv_have_decl_vsnprintf = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840 #define HAVE_DECL_VSNPRINTF 1
8841 _ACEOF
8844 else
8845 cat >>confdefs.h <<_ACEOF
8846 #define HAVE_DECL_VSNPRINTF 0
8847 _ACEOF
8855 case "${host}" in
8856 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8858 cat >>confdefs.h <<\_ACEOF
8859 #define USE_BINARY_FOPEN 1
8860 _ACEOF
8862 esac
8870 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
8872 ac_config_commands="$ac_config_commands default"
8875 cat >confcache <<\_ACEOF
8876 # This file is a shell script that caches the results of configure
8877 # tests run on this system so they can be shared between configure
8878 # scripts and configure runs, see configure's option --config-cache.
8879 # It is not useful on other systems. If it contains results you don't
8880 # want to keep, you may remove or edit it.
8882 # config.status only pays attention to the cache file if you give it
8883 # the --recheck option to rerun configure.
8885 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8886 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8887 # following values.
8889 _ACEOF
8891 # The following way of writing the cache mishandles newlines in values,
8892 # but we know of no workaround that is simple, portable, and efficient.
8893 # So, don't put newlines in cache variables' values.
8894 # Ultrix sh set writes to stderr and can't be redirected directly,
8895 # and sets the high bit in the cache file unless we assign to the vars.
8897 (set) 2>&1 |
8898 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8899 *ac_space=\ *)
8900 # `set' does not quote correctly, so add quotes (double-quote
8901 # substitution turns \\\\ into \\, and sed turns \\ into \).
8902 sed -n \
8903 "s/'/'\\\\''/g;
8904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8907 # `set' quotes correctly as required by POSIX, so do not add quotes.
8908 sed -n \
8909 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8911 esac;
8913 sed '
8914 t clear
8915 : clear
8916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8917 t end
8918 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8919 : end' >>confcache
8920 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8921 if test -w $cache_file; then
8922 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8923 cat confcache >$cache_file
8924 else
8925 echo "not updating unwritable cache $cache_file"
8928 rm -f confcache
8930 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8931 # Let make expand exec_prefix.
8932 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8934 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8935 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8936 # trailing colons and then remove the whole line if VPATH becomes empty
8937 # (actually we leave an empty line to preserve line numbers).
8938 if test "x$srcdir" = x.; then
8939 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8940 s/:*\$(srcdir):*/:/;
8941 s/:*\${srcdir}:*/:/;
8942 s/:*@srcdir@:*/:/;
8943 s/^\([^=]*=[ ]*\):*/\1/;
8944 s/:*$//;
8945 s/^[^=]*=[ ]*$//;
8949 DEFS=-DHAVE_CONFIG_H
8951 ac_libobjs=
8952 ac_ltlibobjs=
8953 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8954 # 1. Remove the extension, and $U if already installed.
8955 ac_i=`echo "$ac_i" |
8956 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8957 # 2. Add them.
8958 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8959 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8960 done
8961 LIBOBJS=$ac_libobjs
8963 LTLIBOBJS=$ac_ltlibobjs
8966 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8967 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8968 Usually this means the macro was only invoked conditionally." >&5
8969 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8970 Usually this means the macro was only invoked conditionally." >&2;}
8971 { (exit 1); exit 1; }; }
8973 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8974 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8975 Usually this means the macro was only invoked conditionally." >&5
8976 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8977 Usually this means the macro was only invoked conditionally." >&2;}
8978 { (exit 1); exit 1; }; }
8980 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8981 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8982 Usually this means the macro was only invoked conditionally." >&5
8983 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8984 Usually this means the macro was only invoked conditionally." >&2;}
8985 { (exit 1); exit 1; }; }
8988 : ${CONFIG_STATUS=./config.status}
8989 ac_clean_files_save=$ac_clean_files
8990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8991 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8992 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8993 cat >$CONFIG_STATUS <<_ACEOF
8994 #! $SHELL
8995 # Generated by $as_me.
8996 # Run this file to recreate the current configuration.
8997 # Compiler output produced by configure, useful for debugging
8998 # configure, is in config.log if it exists.
9000 debug=false
9001 ac_cs_recheck=false
9002 ac_cs_silent=false
9003 SHELL=\${CONFIG_SHELL-$SHELL}
9004 _ACEOF
9006 cat >>$CONFIG_STATUS <<\_ACEOF
9007 ## --------------------- ##
9008 ## M4sh Initialization. ##
9009 ## --------------------- ##
9011 # Be Bourne compatible
9012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9013 emulate sh
9014 NULLCMD=:
9015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9016 # is contrary to our usage. Disable this feature.
9017 alias -g '${1+"$@"}'='"$@"'
9018 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9019 set -o posix
9021 DUALCASE=1; export DUALCASE # for MKS sh
9023 # Support unset when possible.
9024 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9025 as_unset=unset
9026 else
9027 as_unset=false
9031 # Work around bugs in pre-3.0 UWIN ksh.
9032 $as_unset ENV MAIL MAILPATH
9033 PS1='$ '
9034 PS2='> '
9035 PS4='+ '
9037 # NLS nuisances.
9038 for as_var in \
9039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9041 LC_TELEPHONE LC_TIME
9043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9044 eval $as_var=C; export $as_var
9045 else
9046 $as_unset $as_var
9048 done
9050 # Required to use basename.
9051 if expr a : '\(a\)' >/dev/null 2>&1; then
9052 as_expr=expr
9053 else
9054 as_expr=false
9057 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9058 as_basename=basename
9059 else
9060 as_basename=false
9064 # Name of the executable.
9065 as_me=`$as_basename "$0" ||
9066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9067 X"$0" : 'X\(//\)$' \| \
9068 X"$0" : 'X\(/\)$' \| \
9069 . : '\(.\)' 2>/dev/null ||
9070 echo X/"$0" |
9071 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9072 /^X\/\(\/\/\)$/{ s//\1/; q; }
9073 /^X\/\(\/\).*/{ s//\1/; q; }
9074 s/.*/./; q'`
9077 # PATH needs CR, and LINENO needs CR and PATH.
9078 # Avoid depending upon Character Ranges.
9079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9082 as_cr_digits='0123456789'
9083 as_cr_alnum=$as_cr_Letters$as_cr_digits
9085 # The user is always right.
9086 if test "${PATH_SEPARATOR+set}" != set; then
9087 echo "#! /bin/sh" >conf$$.sh
9088 echo "exit 0" >>conf$$.sh
9089 chmod +x conf$$.sh
9090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9091 PATH_SEPARATOR=';'
9092 else
9093 PATH_SEPARATOR=:
9095 rm -f conf$$.sh
9099 as_lineno_1=$LINENO
9100 as_lineno_2=$LINENO
9101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9102 test "x$as_lineno_1" != "x$as_lineno_2" &&
9103 test "x$as_lineno_3" = "x$as_lineno_2" || {
9104 # Find who we are. Look in the path if we contain no path at all
9105 # relative or not.
9106 case $0 in
9107 *[\\/]* ) as_myself=$0 ;;
9108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109 for as_dir in $PATH
9111 IFS=$as_save_IFS
9112 test -z "$as_dir" && as_dir=.
9113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9114 done
9117 esac
9118 # We did not find ourselves, most probably we were run as `sh COMMAND'
9119 # in which case we are not to be found in the path.
9120 if test "x$as_myself" = x; then
9121 as_myself=$0
9123 if test ! -f "$as_myself"; then
9124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9125 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9126 { (exit 1); exit 1; }; }
9128 case $CONFIG_SHELL in
9130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9133 IFS=$as_save_IFS
9134 test -z "$as_dir" && as_dir=.
9135 for as_base in sh bash ksh sh5; do
9136 case $as_dir in
9138 if ("$as_dir/$as_base" -c '
9139 as_lineno_1=$LINENO
9140 as_lineno_2=$LINENO
9141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9142 test "x$as_lineno_1" != "x$as_lineno_2" &&
9143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9146 CONFIG_SHELL=$as_dir/$as_base
9147 export CONFIG_SHELL
9148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9149 fi;;
9150 esac
9151 done
9152 done
9154 esac
9156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9157 # uniformly replaced by the line number. The first 'sed' inserts a
9158 # line-number line before each line; the second 'sed' does the real
9159 # work. The second script uses 'N' to pair each line-number line
9160 # with the numbered line, and appends trailing '-' during
9161 # substitution so that $LINENO is not a special case at line end.
9162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9164 sed '=' <$as_myself |
9165 sed '
9167 s,$,-,
9168 : loop
9169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9170 t loop
9171 s,-$,,
9172 s,^['$as_cr_digits']*\n,,
9173 ' >$as_me.lineno &&
9174 chmod +x $as_me.lineno ||
9175 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9176 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9177 { (exit 1); exit 1; }; }
9179 # Don't try to exec as it changes $[0], causing all sort of problems
9180 # (the dirname of $[0] is not the place where we might find the
9181 # original and so on. Autoconf is especially sensible to this).
9182 . ./$as_me.lineno
9183 # Exit status is that of the last command.
9184 exit
9188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9189 *c*,-n*) ECHO_N= ECHO_C='
9190 ' ECHO_T=' ' ;;
9191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9193 esac
9195 if expr a : '\(a\)' >/dev/null 2>&1; then
9196 as_expr=expr
9197 else
9198 as_expr=false
9201 rm -f conf$$ conf$$.exe conf$$.file
9202 echo >conf$$.file
9203 if ln -s conf$$.file conf$$ 2>/dev/null; then
9204 # We could just check for DJGPP; but this test a) works b) is more generic
9205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9206 if test -f conf$$.exe; then
9207 # Don't use ln at all; we don't have any links
9208 as_ln_s='cp -p'
9209 else
9210 as_ln_s='ln -s'
9212 elif ln conf$$.file conf$$ 2>/dev/null; then
9213 as_ln_s=ln
9214 else
9215 as_ln_s='cp -p'
9217 rm -f conf$$ conf$$.exe conf$$.file
9219 if mkdir -p . 2>/dev/null; then
9220 as_mkdir_p=:
9221 else
9222 test -d ./-p && rmdir ./-p
9223 as_mkdir_p=false
9226 as_executable_p="test -f"
9228 # Sed expression to map a string onto a valid CPP name.
9229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9231 # Sed expression to map a string onto a valid variable name.
9232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9235 # IFS
9236 # We need space, tab and new line, in precisely that order.
9237 as_nl='
9239 IFS=" $as_nl"
9241 # CDPATH.
9242 $as_unset CDPATH
9244 exec 6>&1
9246 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9247 # report actual input values of CONFIG_FILES etc. instead of their
9248 # values after options handling. Logging --version etc. is OK.
9249 exec 5>>config.log
9251 echo
9252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9253 ## Running $as_me. ##
9254 _ASBOX
9255 } >&5
9256 cat >&5 <<_CSEOF
9258 This file was extended by $as_me, which was
9259 generated by GNU Autoconf 2.59. Invocation command line was
9261 CONFIG_FILES = $CONFIG_FILES
9262 CONFIG_HEADERS = $CONFIG_HEADERS
9263 CONFIG_LINKS = $CONFIG_LINKS
9264 CONFIG_COMMANDS = $CONFIG_COMMANDS
9265 $ $0 $@
9267 _CSEOF
9268 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9269 echo >&5
9270 _ACEOF
9272 # Files that config.status was made for.
9273 if test -n "$ac_config_files"; then
9274 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9277 if test -n "$ac_config_headers"; then
9278 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9281 if test -n "$ac_config_links"; then
9282 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9285 if test -n "$ac_config_commands"; then
9286 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9289 cat >>$CONFIG_STATUS <<\_ACEOF
9291 ac_cs_usage="\
9292 \`$as_me' instantiates files from templates according to the
9293 current configuration.
9295 Usage: $0 [OPTIONS] [FILE]...
9297 -h, --help print this help, then exit
9298 -V, --version print version number, then exit
9299 -q, --quiet do not print progress messages
9300 -d, --debug don't remove temporary files
9301 --recheck update $as_me by reconfiguring in the same conditions
9302 --file=FILE[:TEMPLATE]
9303 instantiate the configuration file FILE
9304 --header=FILE[:TEMPLATE]
9305 instantiate the configuration header FILE
9307 Configuration files:
9308 $config_files
9310 Configuration headers:
9311 $config_headers
9313 Configuration commands:
9314 $config_commands
9316 Report bugs to <bug-autoconf@gnu.org>."
9317 _ACEOF
9319 cat >>$CONFIG_STATUS <<_ACEOF
9320 ac_cs_version="\\
9321 config.status
9322 configured by $0, generated by GNU Autoconf 2.59,
9323 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9325 Copyright (C) 2003 Free Software Foundation, Inc.
9326 This config.status script is free software; the Free Software Foundation
9327 gives unlimited permission to copy, distribute and modify it."
9328 srcdir=$srcdir
9329 INSTALL="$INSTALL"
9330 _ACEOF
9332 cat >>$CONFIG_STATUS <<\_ACEOF
9333 # If no file are specified by the user, then we need to provide default
9334 # value. By we need to know if files were specified by the user.
9335 ac_need_defaults=:
9336 while test $# != 0
9338 case $1 in
9339 --*=*)
9340 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9341 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9342 ac_shift=:
9345 ac_option=$1
9346 ac_optarg=$2
9347 ac_shift=shift
9349 *) # This is not an option, so the user has probably given explicit
9350 # arguments.
9351 ac_option=$1
9352 ac_need_defaults=false;;
9353 esac
9355 case $ac_option in
9356 # Handling of the options.
9357 _ACEOF
9358 cat >>$CONFIG_STATUS <<\_ACEOF
9359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9360 ac_cs_recheck=: ;;
9361 --version | --vers* | -V )
9362 echo "$ac_cs_version"; exit 0 ;;
9363 --he | --h)
9364 # Conflict between --help and --header
9365 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9366 Try \`$0 --help' for more information." >&5
9367 echo "$as_me: error: ambiguous option: $1
9368 Try \`$0 --help' for more information." >&2;}
9369 { (exit 1); exit 1; }; };;
9370 --help | --hel | -h )
9371 echo "$ac_cs_usage"; exit 0 ;;
9372 --debug | --d* | -d )
9373 debug=: ;;
9374 --file | --fil | --fi | --f )
9375 $ac_shift
9376 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9377 ac_need_defaults=false;;
9378 --header | --heade | --head | --hea )
9379 $ac_shift
9380 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9381 ac_need_defaults=false;;
9382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9384 ac_cs_silent=: ;;
9386 # This is an error.
9387 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9388 Try \`$0 --help' for more information." >&5
9389 echo "$as_me: error: unrecognized option: $1
9390 Try \`$0 --help' for more information." >&2;}
9391 { (exit 1); exit 1; }; } ;;
9393 *) ac_config_targets="$ac_config_targets $1" ;;
9395 esac
9396 shift
9397 done
9399 ac_configure_extra_args=
9401 if $ac_cs_silent; then
9402 exec 6>/dev/null
9403 ac_configure_extra_args="$ac_configure_extra_args --silent"
9406 _ACEOF
9407 cat >>$CONFIG_STATUS <<_ACEOF
9408 if \$ac_cs_recheck; then
9409 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9410 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9413 _ACEOF
9415 cat >>$CONFIG_STATUS <<_ACEOF
9417 # INIT-COMMANDS section.
9420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9421 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9422 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9423 # from automake.
9424 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9425 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9426 LINGUAS="${LINGUAS-%UNSET%}"
9428 target_cpu_type=${target_cpu_type}
9429 cgen_cpu_prefix=${cgen_cpu_prefix}
9430 obj_format=${obj_format}
9431 te_file=${te_file}
9433 _ACEOF
9437 cat >>$CONFIG_STATUS <<\_ACEOF
9438 for ac_config_target in $ac_config_targets
9440 case "$ac_config_target" in
9441 # Handling of arguments.
9442 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
9443 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
9444 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9445 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9446 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9447 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9448 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9449 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9450 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9451 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9452 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9453 { (exit 1); exit 1; }; };;
9454 esac
9455 done
9457 # If the user did not use the arguments to specify the items to instantiate,
9458 # then the envvar interface is used. Set only those that are not.
9459 # We use the long form for the default assignment because of an extremely
9460 # bizarre bug on SunOS 4.1.3.
9461 if $ac_need_defaults; then
9462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9464 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9467 # Have a temporary directory for convenience. Make it in the build tree
9468 # simply because there is no reason to put it here, and in addition,
9469 # creating and moving files from /tmp can sometimes cause problems.
9470 # Create a temporary directory, and hook for its removal unless debugging.
9471 $debug ||
9473 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9474 trap '{ (exit 1); exit 1; }' 1 2 13 15
9477 # Create a (secure) tmp directory for tmp files.
9480 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9481 test -n "$tmp" && test -d "$tmp"
9482 } ||
9484 tmp=./confstat$$-$RANDOM
9485 (umask 077 && mkdir $tmp)
9486 } ||
9488 echo "$me: cannot create a temporary directory in ." >&2
9489 { (exit 1); exit 1; }
9492 _ACEOF
9494 cat >>$CONFIG_STATUS <<_ACEOF
9497 # CONFIG_FILES section.
9500 # No need to generate the scripts if there are no CONFIG_FILES.
9501 # This happens for instance when ./config.status config.h
9502 if test -n "\$CONFIG_FILES"; then
9503 # Protect against being on the right side of a sed subst in config.status.
9504 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9505 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9506 s,@SHELL@,$SHELL,;t t
9507 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9508 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9509 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9510 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9511 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9512 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9513 s,@exec_prefix@,$exec_prefix,;t t
9514 s,@prefix@,$prefix,;t t
9515 s,@program_transform_name@,$program_transform_name,;t t
9516 s,@bindir@,$bindir,;t t
9517 s,@sbindir@,$sbindir,;t t
9518 s,@libexecdir@,$libexecdir,;t t
9519 s,@datadir@,$datadir,;t t
9520 s,@sysconfdir@,$sysconfdir,;t t
9521 s,@sharedstatedir@,$sharedstatedir,;t t
9522 s,@localstatedir@,$localstatedir,;t t
9523 s,@libdir@,$libdir,;t t
9524 s,@includedir@,$includedir,;t t
9525 s,@oldincludedir@,$oldincludedir,;t t
9526 s,@infodir@,$infodir,;t t
9527 s,@mandir@,$mandir,;t t
9528 s,@build_alias@,$build_alias,;t t
9529 s,@host_alias@,$host_alias,;t t
9530 s,@target_alias@,$target_alias,;t t
9531 s,@DEFS@,$DEFS,;t t
9532 s,@ECHO_C@,$ECHO_C,;t t
9533 s,@ECHO_N@,$ECHO_N,;t t
9534 s,@ECHO_T@,$ECHO_T,;t t
9535 s,@LIBS@,$LIBS,;t t
9536 s,@build@,$build,;t t
9537 s,@build_cpu@,$build_cpu,;t t
9538 s,@build_vendor@,$build_vendor,;t t
9539 s,@build_os@,$build_os,;t t
9540 s,@host@,$host,;t t
9541 s,@host_cpu@,$host_cpu,;t t
9542 s,@host_vendor@,$host_vendor,;t t
9543 s,@host_os@,$host_os,;t t
9544 s,@target@,$target,;t t
9545 s,@target_cpu@,$target_cpu,;t t
9546 s,@target_vendor@,$target_vendor,;t t
9547 s,@target_os@,$target_os,;t t
9548 s,@CC@,$CC,;t t
9549 s,@CFLAGS@,$CFLAGS,;t t
9550 s,@LDFLAGS@,$LDFLAGS,;t t
9551 s,@CPPFLAGS@,$CPPFLAGS,;t t
9552 s,@ac_ct_CC@,$ac_ct_CC,;t t
9553 s,@EXEEXT@,$EXEEXT,;t t
9554 s,@OBJEXT@,$OBJEXT,;t t
9555 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9556 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9557 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9558 s,@CYGPATH_W@,$CYGPATH_W,;t t
9559 s,@PACKAGE@,$PACKAGE,;t t
9560 s,@VERSION@,$VERSION,;t t
9561 s,@ACLOCAL@,$ACLOCAL,;t t
9562 s,@AUTOCONF@,$AUTOCONF,;t t
9563 s,@AUTOMAKE@,$AUTOMAKE,;t t
9564 s,@AUTOHEADER@,$AUTOHEADER,;t t
9565 s,@MAKEINFO@,$MAKEINFO,;t t
9566 s,@install_sh@,$install_sh,;t t
9567 s,@STRIP@,$STRIP,;t t
9568 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9569 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9570 s,@mkdir_p@,$mkdir_p,;t t
9571 s,@AWK@,$AWK,;t t
9572 s,@SET_MAKE@,$SET_MAKE,;t t
9573 s,@am__leading_dot@,$am__leading_dot,;t t
9574 s,@AMTAR@,$AMTAR,;t t
9575 s,@am__tar@,$am__tar,;t t
9576 s,@am__untar@,$am__untar,;t t
9577 s,@DEPDIR@,$DEPDIR,;t t
9578 s,@am__include@,$am__include,;t t
9579 s,@am__quote@,$am__quote,;t t
9580 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9581 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9582 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9583 s,@CCDEPMODE@,$CCDEPMODE,;t t
9584 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9585 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9586 s,@LN_S@,$LN_S,;t t
9587 s,@RANLIB@,$RANLIB,;t t
9588 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9589 s,@LIBTOOL@,$LIBTOOL,;t t
9590 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9591 s,@NO_WERROR@,$NO_WERROR,;t t
9592 s,@GDBINIT@,$GDBINIT,;t t
9593 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
9594 s,@extra_objects@,$extra_objects,;t t
9595 s,@target_cpu_type@,$target_cpu_type,;t t
9596 s,@obj_format@,$obj_format,;t t
9597 s,@te_file@,$te_file,;t t
9598 s,@install_tooldir@,$install_tooldir,;t t
9599 s,@atof@,$atof,;t t
9600 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
9601 s,@YACC@,$YACC,;t t
9602 s,@LEX@,$LEX,;t t
9603 s,@LEXLIB@,$LEXLIB,;t t
9604 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9605 s,@USE_NLS@,$USE_NLS,;t t
9606 s,@LIBINTL@,$LIBINTL,;t t
9607 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9608 s,@INCINTL@,$INCINTL,;t t
9609 s,@XGETTEXT@,$XGETTEXT,;t t
9610 s,@GMSGFMT@,$GMSGFMT,;t t
9611 s,@POSUB@,$POSUB,;t t
9612 s,@CATALOGS@,$CATALOGS,;t t
9613 s,@DATADIRNAME@,$DATADIRNAME,;t t
9614 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9615 s,@GENCAT@,$GENCAT,;t t
9616 s,@CATOBJEXT@,$CATOBJEXT,;t t
9617 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9618 s,@MSGFMT@,$MSGFMT,;t t
9619 s,@MSGMERGE@,$MSGMERGE,;t t
9620 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9621 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9622 s,@MAINT@,$MAINT,;t t
9623 s,@CPP@,$CPP,;t t
9624 s,@EGREP@,$EGREP,;t t
9625 s,@ALLOCA@,$ALLOCA,;t t
9626 s,@LIBM@,$LIBM,;t t
9627 s,@datarootdir@,$datarootdir,;t t
9628 s,@docdir@,$docdir,;t t
9629 s,@htmldir@,$htmldir,;t t
9630 s,@LIBOBJS@,$LIBOBJS,;t t
9631 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9632 CEOF
9634 _ACEOF
9636 cat >>$CONFIG_STATUS <<\_ACEOF
9637 # Split the substitutions into bite-sized pieces for seds with
9638 # small command number limits, like on Digital OSF/1 and HP-UX.
9639 ac_max_sed_lines=48
9640 ac_sed_frag=1 # Number of current file.
9641 ac_beg=1 # First line for current file.
9642 ac_end=$ac_max_sed_lines # Line after last line for current file.
9643 ac_more_lines=:
9644 ac_sed_cmds=
9645 while $ac_more_lines; do
9646 if test $ac_beg -gt 1; then
9647 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9648 else
9649 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9651 if test ! -s $tmp/subs.frag; then
9652 ac_more_lines=false
9653 else
9654 # The purpose of the label and of the branching condition is to
9655 # speed up the sed processing (if there are no `@' at all, there
9656 # is no need to browse any of the substitutions).
9657 # These are the two extra sed commands mentioned above.
9658 (echo ':t
9659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9660 if test -z "$ac_sed_cmds"; then
9661 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9662 else
9663 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9665 ac_sed_frag=`expr $ac_sed_frag + 1`
9666 ac_beg=$ac_end
9667 ac_end=`expr $ac_end + $ac_max_sed_lines`
9669 done
9670 if test -z "$ac_sed_cmds"; then
9671 ac_sed_cmds=cat
9673 fi # test -n "$CONFIG_FILES"
9675 _ACEOF
9676 cat >>$CONFIG_STATUS <<\_ACEOF
9677 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9679 case $ac_file in
9680 - | *:- | *:-:* ) # input from stdin
9681 cat >$tmp/stdin
9682 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9684 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9686 * ) ac_file_in=$ac_file.in ;;
9687 esac
9689 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9690 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9692 X"$ac_file" : 'X\(//\)[^/]' \| \
9693 X"$ac_file" : 'X\(//\)$' \| \
9694 X"$ac_file" : 'X\(/\)' \| \
9695 . : '\(.\)' 2>/dev/null ||
9696 echo X"$ac_file" |
9697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9699 /^X\(\/\/\)$/{ s//\1/; q; }
9700 /^X\(\/\).*/{ s//\1/; q; }
9701 s/.*/./; q'`
9702 { if $as_mkdir_p; then
9703 mkdir -p "$ac_dir"
9704 else
9705 as_dir="$ac_dir"
9706 as_dirs=
9707 while test ! -d "$as_dir"; do
9708 as_dirs="$as_dir $as_dirs"
9709 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9711 X"$as_dir" : 'X\(//\)[^/]' \| \
9712 X"$as_dir" : 'X\(//\)$' \| \
9713 X"$as_dir" : 'X\(/\)' \| \
9714 . : '\(.\)' 2>/dev/null ||
9715 echo X"$as_dir" |
9716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9718 /^X\(\/\/\)$/{ s//\1/; q; }
9719 /^X\(\/\).*/{ s//\1/; q; }
9720 s/.*/./; q'`
9721 done
9722 test ! -n "$as_dirs" || mkdir $as_dirs
9723 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9724 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9725 { (exit 1); exit 1; }; }; }
9727 ac_builddir=.
9729 if test "$ac_dir" != .; then
9730 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9731 # A "../" for each directory in $ac_dir_suffix.
9732 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9733 else
9734 ac_dir_suffix= ac_top_builddir=
9737 case $srcdir in
9738 .) # No --srcdir option. We are building in place.
9739 ac_srcdir=.
9740 if test -z "$ac_top_builddir"; then
9741 ac_top_srcdir=.
9742 else
9743 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9744 fi ;;
9745 [\\/]* | ?:[\\/]* ) # Absolute path.
9746 ac_srcdir=$srcdir$ac_dir_suffix;
9747 ac_top_srcdir=$srcdir ;;
9748 *) # Relative path.
9749 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9750 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9751 esac
9753 # Do not use `cd foo && pwd` to compute absolute paths, because
9754 # the directories may not exist.
9755 case `pwd` in
9756 .) ac_abs_builddir="$ac_dir";;
9758 case "$ac_dir" in
9759 .) ac_abs_builddir=`pwd`;;
9760 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9761 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9762 esac;;
9763 esac
9764 case $ac_abs_builddir in
9765 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9767 case ${ac_top_builddir}. in
9768 .) ac_abs_top_builddir=$ac_abs_builddir;;
9769 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9770 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9771 esac;;
9772 esac
9773 case $ac_abs_builddir in
9774 .) ac_abs_srcdir=$ac_srcdir;;
9776 case $ac_srcdir in
9777 .) ac_abs_srcdir=$ac_abs_builddir;;
9778 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9779 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9780 esac;;
9781 esac
9782 case $ac_abs_builddir in
9783 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9785 case $ac_top_srcdir in
9786 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9787 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9788 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9789 esac;;
9790 esac
9793 case $INSTALL in
9794 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9795 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9796 esac
9798 if test x"$ac_file" != x-; then
9799 { echo "$as_me:$LINENO: creating $ac_file" >&5
9800 echo "$as_me: creating $ac_file" >&6;}
9801 rm -f "$ac_file"
9803 # Let's still pretend it is `configure' which instantiates (i.e., don't
9804 # use $as_me), people would be surprised to read:
9805 # /* config.h. Generated by config.status. */
9806 if test x"$ac_file" = x-; then
9807 configure_input=
9808 else
9809 configure_input="$ac_file. "
9811 configure_input=$configure_input"Generated from `echo $ac_file_in |
9812 sed 's,.*/,,'` by configure."
9814 # First look for the input files in the build tree, otherwise in the
9815 # src tree.
9816 ac_file_inputs=`IFS=:
9817 for f in $ac_file_in; do
9818 case $f in
9819 -) echo $tmp/stdin ;;
9820 [\\/$]*)
9821 # Absolute (can't be DOS-style, as IFS=:)
9822 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9823 echo "$as_me: error: cannot find input file: $f" >&2;}
9824 { (exit 1); exit 1; }; }
9825 echo "$f";;
9826 *) # Relative
9827 if test -f "$f"; then
9828 # Build tree
9829 echo "$f"
9830 elif test -f "$srcdir/$f"; then
9831 # Source tree
9832 echo "$srcdir/$f"
9833 else
9834 # /dev/null tree
9835 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9836 echo "$as_me: error: cannot find input file: $f" >&2;}
9837 { (exit 1); exit 1; }; }
9838 fi;;
9839 esac
9840 done` || { (exit 1); exit 1; }
9841 _ACEOF
9842 cat >>$CONFIG_STATUS <<_ACEOF
9843 sed "$ac_vpsub
9844 $extrasub
9845 _ACEOF
9846 cat >>$CONFIG_STATUS <<\_ACEOF
9848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9849 s,@configure_input@,$configure_input,;t t
9850 s,@srcdir@,$ac_srcdir,;t t
9851 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9852 s,@top_srcdir@,$ac_top_srcdir,;t t
9853 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9854 s,@builddir@,$ac_builddir,;t t
9855 s,@abs_builddir@,$ac_abs_builddir,;t t
9856 s,@top_builddir@,$ac_top_builddir,;t t
9857 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9858 s,@INSTALL@,$ac_INSTALL,;t t
9859 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9860 rm -f $tmp/stdin
9861 if test x"$ac_file" != x-; then
9862 mv $tmp/out $ac_file
9863 else
9864 cat $tmp/out
9865 rm -f $tmp/out
9868 done
9869 _ACEOF
9870 cat >>$CONFIG_STATUS <<\_ACEOF
9873 # CONFIG_HEADER section.
9876 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9877 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9879 # ac_d sets the value in "#define NAME VALUE" lines.
9880 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9881 ac_dB='[ ].*$,\1#\2'
9882 ac_dC=' '
9883 ac_dD=',;t'
9884 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9885 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9886 ac_uB='$,\1#\2define\3'
9887 ac_uC=' '
9888 ac_uD=',;t'
9890 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9891 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9892 case $ac_file in
9893 - | *:- | *:-:* ) # input from stdin
9894 cat >$tmp/stdin
9895 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9897 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9899 * ) ac_file_in=$ac_file.in ;;
9900 esac
9902 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9903 echo "$as_me: creating $ac_file" >&6;}
9905 # First look for the input files in the build tree, otherwise in the
9906 # src tree.
9907 ac_file_inputs=`IFS=:
9908 for f in $ac_file_in; do
9909 case $f in
9910 -) echo $tmp/stdin ;;
9911 [\\/$]*)
9912 # Absolute (can't be DOS-style, as IFS=:)
9913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9914 echo "$as_me: error: cannot find input file: $f" >&2;}
9915 { (exit 1); exit 1; }; }
9916 # Do quote $f, to prevent DOS paths from being IFS'd.
9917 echo "$f";;
9918 *) # Relative
9919 if test -f "$f"; then
9920 # Build tree
9921 echo "$f"
9922 elif test -f "$srcdir/$f"; then
9923 # Source tree
9924 echo "$srcdir/$f"
9925 else
9926 # /dev/null tree
9927 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9928 echo "$as_me: error: cannot find input file: $f" >&2;}
9929 { (exit 1); exit 1; }; }
9930 fi;;
9931 esac
9932 done` || { (exit 1); exit 1; }
9933 # Remove the trailing spaces.
9934 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9936 _ACEOF
9938 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9939 # `conftest.undefs', that substitutes the proper values into
9940 # config.h.in to produce config.h. The first handles `#define'
9941 # templates, and the second `#undef' templates.
9942 # And first: Protect against being on the right side of a sed subst in
9943 # config.status. Protect against being in an unquoted here document
9944 # in config.status.
9945 rm -f conftest.defines conftest.undefs
9946 # Using a here document instead of a string reduces the quoting nightmare.
9947 # Putting comments in sed scripts is not portable.
9949 # `end' is used to avoid that the second main sed command (meant for
9950 # 0-ary CPP macros) applies to n-ary macro definitions.
9951 # See the Autoconf documentation for `clear'.
9952 cat >confdef2sed.sed <<\_ACEOF
9953 s/[\\&,]/\\&/g
9954 s,[\\$`],\\&,g
9955 t clear
9956 : clear
9957 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9958 t end
9959 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9960 : end
9961 _ACEOF
9962 # If some macros were called several times there might be several times
9963 # the same #defines, which is useless. Nevertheless, we may not want to
9964 # sort them, since we want the *last* AC-DEFINE to be honored.
9965 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9966 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9967 rm -f confdef2sed.sed
9969 # This sed command replaces #undef with comments. This is necessary, for
9970 # example, in the case of _POSIX_SOURCE, which is predefined and required
9971 # on some systems where configure will not decide to define it.
9972 cat >>conftest.undefs <<\_ACEOF
9973 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9974 _ACEOF
9976 # Break up conftest.defines because some shells have a limit on the size
9977 # of here documents, and old seds have small limits too (100 cmds).
9978 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9979 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9980 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9981 echo ' :' >>$CONFIG_STATUS
9982 rm -f conftest.tail
9983 while grep . conftest.defines >/dev/null
9985 # Write a limited-size here document to $tmp/defines.sed.
9986 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9987 # Speed up: don't consider the non `#define' lines.
9988 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9989 # Work around the forget-to-reset-the-flag bug.
9990 echo 't clr' >>$CONFIG_STATUS
9991 echo ': clr' >>$CONFIG_STATUS
9992 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9993 echo 'CEOF
9994 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9995 rm -f $tmp/in
9996 mv $tmp/out $tmp/in
9997 ' >>$CONFIG_STATUS
9998 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9999 rm -f conftest.defines
10000 mv conftest.tail conftest.defines
10001 done
10002 rm -f conftest.defines
10003 echo ' fi # grep' >>$CONFIG_STATUS
10004 echo >>$CONFIG_STATUS
10006 # Break up conftest.undefs because some shells have a limit on the size
10007 # of here documents, and old seds have small limits too (100 cmds).
10008 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10009 rm -f conftest.tail
10010 while grep . conftest.undefs >/dev/null
10012 # Write a limited-size here document to $tmp/undefs.sed.
10013 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10014 # Speed up: don't consider the non `#undef'
10015 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10016 # Work around the forget-to-reset-the-flag bug.
10017 echo 't clr' >>$CONFIG_STATUS
10018 echo ': clr' >>$CONFIG_STATUS
10019 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10020 echo 'CEOF
10021 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10022 rm -f $tmp/in
10023 mv $tmp/out $tmp/in
10024 ' >>$CONFIG_STATUS
10025 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10026 rm -f conftest.undefs
10027 mv conftest.tail conftest.undefs
10028 done
10029 rm -f conftest.undefs
10031 cat >>$CONFIG_STATUS <<\_ACEOF
10032 # Let's still pretend it is `configure' which instantiates (i.e., don't
10033 # use $as_me), people would be surprised to read:
10034 # /* config.h. Generated by config.status. */
10035 if test x"$ac_file" = x-; then
10036 echo "/* Generated by configure. */" >$tmp/config.h
10037 else
10038 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10040 cat $tmp/in >>$tmp/config.h
10041 rm -f $tmp/in
10042 if test x"$ac_file" != x-; then
10043 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10044 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10045 echo "$as_me: $ac_file is unchanged" >&6;}
10046 else
10047 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10048 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10049 X"$ac_file" : 'X\(//\)[^/]' \| \
10050 X"$ac_file" : 'X\(//\)$' \| \
10051 X"$ac_file" : 'X\(/\)' \| \
10052 . : '\(.\)' 2>/dev/null ||
10053 echo X"$ac_file" |
10054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10056 /^X\(\/\/\)$/{ s//\1/; q; }
10057 /^X\(\/\).*/{ s//\1/; q; }
10058 s/.*/./; q'`
10059 { if $as_mkdir_p; then
10060 mkdir -p "$ac_dir"
10061 else
10062 as_dir="$ac_dir"
10063 as_dirs=
10064 while test ! -d "$as_dir"; do
10065 as_dirs="$as_dir $as_dirs"
10066 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10068 X"$as_dir" : 'X\(//\)[^/]' \| \
10069 X"$as_dir" : 'X\(//\)$' \| \
10070 X"$as_dir" : 'X\(/\)' \| \
10071 . : '\(.\)' 2>/dev/null ||
10072 echo X"$as_dir" |
10073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10075 /^X\(\/\/\)$/{ s//\1/; q; }
10076 /^X\(\/\).*/{ s//\1/; q; }
10077 s/.*/./; q'`
10078 done
10079 test ! -n "$as_dirs" || mkdir $as_dirs
10080 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10081 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10082 { (exit 1); exit 1; }; }; }
10084 rm -f $ac_file
10085 mv $tmp/config.h $ac_file
10087 else
10088 cat $tmp/config.h
10089 rm -f $tmp/config.h
10091 # Compute $ac_file's index in $config_headers.
10092 _am_stamp_count=1
10093 for _am_header in $config_headers :; do
10094 case $_am_header in
10095 $ac_file | $ac_file:* )
10096 break ;;
10098 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10099 esac
10100 done
10101 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10102 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10103 X$ac_file : 'X\(//\)[^/]' \| \
10104 X$ac_file : 'X\(//\)$' \| \
10105 X$ac_file : 'X\(/\)' \| \
10106 . : '\(.\)' 2>/dev/null ||
10107 echo X$ac_file |
10108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10110 /^X\(\/\/\)$/{ s//\1/; q; }
10111 /^X\(\/\).*/{ s//\1/; q; }
10112 s/.*/./; q'`/stamp-h$_am_stamp_count
10113 done
10114 _ACEOF
10115 cat >>$CONFIG_STATUS <<\_ACEOF
10118 # CONFIG_COMMANDS section.
10120 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10121 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10122 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10123 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10124 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10125 X"$ac_dest" : 'X\(//\)[^/]' \| \
10126 X"$ac_dest" : 'X\(//\)$' \| \
10127 X"$ac_dest" : 'X\(/\)' \| \
10128 . : '\(.\)' 2>/dev/null ||
10129 echo X"$ac_dest" |
10130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10132 /^X\(\/\/\)$/{ s//\1/; q; }
10133 /^X\(\/\).*/{ s//\1/; q; }
10134 s/.*/./; q'`
10135 { if $as_mkdir_p; then
10136 mkdir -p "$ac_dir"
10137 else
10138 as_dir="$ac_dir"
10139 as_dirs=
10140 while test ! -d "$as_dir"; do
10141 as_dirs="$as_dir $as_dirs"
10142 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10144 X"$as_dir" : 'X\(//\)[^/]' \| \
10145 X"$as_dir" : 'X\(//\)$' \| \
10146 X"$as_dir" : 'X\(/\)' \| \
10147 . : '\(.\)' 2>/dev/null ||
10148 echo X"$as_dir" |
10149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10151 /^X\(\/\/\)$/{ s//\1/; q; }
10152 /^X\(\/\).*/{ s//\1/; q; }
10153 s/.*/./; q'`
10154 done
10155 test ! -n "$as_dirs" || mkdir $as_dirs
10156 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10157 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10158 { (exit 1); exit 1; }; }; }
10160 ac_builddir=.
10162 if test "$ac_dir" != .; then
10163 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10164 # A "../" for each directory in $ac_dir_suffix.
10165 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10166 else
10167 ac_dir_suffix= ac_top_builddir=
10170 case $srcdir in
10171 .) # No --srcdir option. We are building in place.
10172 ac_srcdir=.
10173 if test -z "$ac_top_builddir"; then
10174 ac_top_srcdir=.
10175 else
10176 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10177 fi ;;
10178 [\\/]* | ?:[\\/]* ) # Absolute path.
10179 ac_srcdir=$srcdir$ac_dir_suffix;
10180 ac_top_srcdir=$srcdir ;;
10181 *) # Relative path.
10182 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10183 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10184 esac
10186 # Do not use `cd foo && pwd` to compute absolute paths, because
10187 # the directories may not exist.
10188 case `pwd` in
10189 .) ac_abs_builddir="$ac_dir";;
10191 case "$ac_dir" in
10192 .) ac_abs_builddir=`pwd`;;
10193 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10194 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10195 esac;;
10196 esac
10197 case $ac_abs_builddir in
10198 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10200 case ${ac_top_builddir}. in
10201 .) ac_abs_top_builddir=$ac_abs_builddir;;
10202 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10203 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10204 esac;;
10205 esac
10206 case $ac_abs_builddir in
10207 .) ac_abs_srcdir=$ac_srcdir;;
10209 case $ac_srcdir in
10210 .) ac_abs_srcdir=$ac_abs_builddir;;
10211 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10212 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10213 esac;;
10214 esac
10215 case $ac_abs_builddir in
10216 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10218 case $ac_top_srcdir in
10219 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10220 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10221 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10222 esac;;
10223 esac
10226 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10227 echo "$as_me: executing $ac_dest commands" >&6;}
10228 case $ac_dest in
10229 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10230 # Strip MF so we end up with the name of the file.
10231 mf=`echo "$mf" | sed -e 's/:.*$//'`
10232 # Check whether this is an Automake generated Makefile or not.
10233 # We used to match only the files named `Makefile.in', but
10234 # some people rename them; so instead we look at the file content.
10235 # Grep'ing the first line is not enough: some people post-process
10236 # each Makefile.in and add a new line on top of each file to say so.
10237 # So let's grep whole file.
10238 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10239 dirpart=`(dirname "$mf") 2>/dev/null ||
10240 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10241 X"$mf" : 'X\(//\)[^/]' \| \
10242 X"$mf" : 'X\(//\)$' \| \
10243 X"$mf" : 'X\(/\)' \| \
10244 . : '\(.\)' 2>/dev/null ||
10245 echo X"$mf" |
10246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10248 /^X\(\/\/\)$/{ s//\1/; q; }
10249 /^X\(\/\).*/{ s//\1/; q; }
10250 s/.*/./; q'`
10251 else
10252 continue
10254 # Extract the definition of DEPDIR, am__include, and am__quote
10255 # from the Makefile without running `make'.
10256 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10257 test -z "$DEPDIR" && continue
10258 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10259 test -z "am__include" && continue
10260 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10261 # When using ansi2knr, U may be empty or an underscore; expand it
10262 U=`sed -n 's/^U = //p' < "$mf"`
10263 # Find all dependency output files, they are included files with
10264 # $(DEPDIR) in their names. We invoke sed twice because it is the
10265 # simplest approach to changing $(DEPDIR) to its actual value in the
10266 # expansion.
10267 for file in `sed -n "
10268 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10269 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10270 # Make sure the directory exists.
10271 test -f "$dirpart/$file" && continue
10272 fdir=`(dirname "$file") 2>/dev/null ||
10273 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10274 X"$file" : 'X\(//\)[^/]' \| \
10275 X"$file" : 'X\(//\)$' \| \
10276 X"$file" : 'X\(/\)' \| \
10277 . : '\(.\)' 2>/dev/null ||
10278 echo X"$file" |
10279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10281 /^X\(\/\/\)$/{ s//\1/; q; }
10282 /^X\(\/\).*/{ s//\1/; q; }
10283 s/.*/./; q'`
10284 { if $as_mkdir_p; then
10285 mkdir -p $dirpart/$fdir
10286 else
10287 as_dir=$dirpart/$fdir
10288 as_dirs=
10289 while test ! -d "$as_dir"; do
10290 as_dirs="$as_dir $as_dirs"
10291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10293 X"$as_dir" : 'X\(//\)[^/]' \| \
10294 X"$as_dir" : 'X\(//\)$' \| \
10295 X"$as_dir" : 'X\(/\)' \| \
10296 . : '\(.\)' 2>/dev/null ||
10297 echo X"$as_dir" |
10298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10300 /^X\(\/\/\)$/{ s//\1/; q; }
10301 /^X\(\/\).*/{ s//\1/; q; }
10302 s/.*/./; q'`
10303 done
10304 test ! -n "$as_dirs" || mkdir $as_dirs
10305 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10306 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10307 { (exit 1); exit 1; }; }; }
10309 # echo "creating $dirpart/$file"
10310 echo '# dummy' > "$dirpart/$file"
10311 done
10312 done
10314 default-1 )
10315 for ac_file in $CONFIG_FILES; do
10316 # Support "outfile[:infile[:infile...]]"
10317 case "$ac_file" in
10318 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10319 esac
10320 # PO directories have a Makefile.in generated from Makefile.in.in.
10321 case "$ac_file" in */Makefile.in)
10322 # Adjust a relative srcdir.
10323 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10324 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10325 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10326 # In autoconf-2.13 it is called $ac_given_srcdir.
10327 # In autoconf-2.50 it is called $srcdir.
10328 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10329 case "$ac_given_srcdir" in
10330 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10331 /*) top_srcdir="$ac_given_srcdir" ;;
10332 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10333 esac
10334 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10335 rm -f "$ac_dir/POTFILES"
10336 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10337 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10338 POMAKEFILEDEPS="POTFILES.in"
10339 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10340 # on $ac_dir but don't depend on user-specified configuration
10341 # parameters.
10342 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10343 # The LINGUAS file contains the set of available languages.
10344 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10345 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10347 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10348 # Hide the ALL_LINGUAS assigment from automake.
10349 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10350 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10351 else
10352 # The set of available languages was given in configure.in.
10353 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10355 case "$ac_given_srcdir" in
10356 .) srcdirpre= ;;
10357 *) srcdirpre='$(srcdir)/' ;;
10358 esac
10359 POFILES=
10360 GMOFILES=
10361 UPDATEPOFILES=
10362 DUMMYPOFILES=
10363 for lang in $ALL_LINGUAS; do
10364 POFILES="$POFILES $srcdirpre$lang.po"
10365 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10366 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10367 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10368 done
10369 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10370 # environment variable.
10371 INST_LINGUAS=
10372 if test -n "$ALL_LINGUAS"; then
10373 for presentlang in $ALL_LINGUAS; do
10374 useit=no
10375 if test "%UNSET%" != "$LINGUAS"; then
10376 desiredlanguages="$LINGUAS"
10377 else
10378 desiredlanguages="$ALL_LINGUAS"
10380 for desiredlang in $desiredlanguages; do
10381 # Use the presentlang catalog if desiredlang is
10382 # a. equal to presentlang, or
10383 # b. a variant of presentlang (because in this case,
10384 # presentlang can be used as a fallback for messages
10385 # which are not translated in the desiredlang catalog).
10386 case "$desiredlang" in
10387 "$presentlang"*) useit=yes;;
10388 esac
10389 done
10390 if test $useit = yes; then
10391 INST_LINGUAS="$INST_LINGUAS $presentlang"
10393 done
10395 CATALOGS=
10396 if test -n "$INST_LINGUAS"; then
10397 for lang in $INST_LINGUAS; do
10398 CATALOGS="$CATALOGS $lang.gmo"
10399 done
10401 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10402 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10403 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10404 if test -f "$f"; then
10405 case "$f" in
10406 *.orig | *.bak | *~) ;;
10407 *) cat "$f" >> "$ac_dir/Makefile" ;;
10408 esac
10410 done
10413 esac
10414 done ;;
10415 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
10416 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
10417 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
10418 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
10419 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
10420 if test "x$cgen_cpu_prefix" != x ; then
10421 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
10422 fi ;;
10423 esac
10424 done
10425 _ACEOF
10427 cat >>$CONFIG_STATUS <<\_ACEOF
10429 { (exit 0); exit 0; }
10430 _ACEOF
10431 chmod +x $CONFIG_STATUS
10432 ac_clean_files=$ac_clean_files_save
10435 # configure is writing to config.log, and then calls config.status.
10436 # config.status does its own redirection, appending to config.log.
10437 # Unfortunately, on DOS this fails, as config.log is still kept open
10438 # by configure, so config.status won't be able to write to it; its
10439 # output is simply discarded. So we exec the FD to /dev/null,
10440 # effectively closing config.log, so it can be properly (re)opened and
10441 # appended to by config.status. When coming back to configure, we
10442 # need to make the FD available again.
10443 if test "$no_create" != yes; then
10444 ac_cs_success=:
10445 ac_config_status_args=
10446 test "$silent" = yes &&
10447 ac_config_status_args="$ac_config_status_args --quiet"
10448 exec 5>/dev/null
10449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10450 exec 5>>config.log
10451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10452 # would make configure fail if this is the last instruction.
10453 $ac_cs_success || { (exit 1); exit 1; }