Add support for m32r-linux target, including a RELA ABI and PIC.
[binutils.git] / gas / configure
blob37926bca838dd3e720e066893140bb11a491179a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="as.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBM LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
845 if test -n "$ac_init_help"; then
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854 --enable-shared=PKGS build shared libraries default=yes
855 --enable-static=PKGS build static libraries default=yes
856 --enable-fast-install=PKGS optimize for fast installation default=yes
857 --disable-libtool-lock avoid locking (might break parallel builds)
858 --enable-bfd-assembler use BFD back end for writing object files
859 targets alternative target configurations besides the primary
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-build-warnings Enable build-time compiler warnings if gcc is used
862 --disable-nls do not use Native Language Support
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-included-gettext use the GNU gettext library included here
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
918 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
919 # absolute.
920 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
921 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
922 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
923 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
925 cd $ac_dir
926 # Check for guested configure; otherwise get Cygnus style configure.
927 if test -f $ac_srcdir/configure.gnu; then
928 echo
929 $SHELL $ac_srcdir/configure.gnu --help=recursive
930 elif test -f $ac_srcdir/configure; then
931 echo
932 $SHELL $ac_srcdir/configure --help=recursive
933 elif test -f $ac_srcdir/configure.ac ||
934 test -f $ac_srcdir/configure.in; then
935 echo
936 $ac_configure --help
937 else
938 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940 cd $ac_popdir
941 done
944 test -n "$ac_init_help" && exit 0
945 if $ac_init_version; then
946 cat <<\_ACEOF
948 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
949 Free Software Foundation, Inc.
950 This configure script is free software; the Free Software Foundation
951 gives unlimited permission to copy, distribute and modify it.
952 _ACEOF
953 exit 0
955 exec 5>config.log
956 cat >&5 <<_ACEOF
957 This file contains any messages produced by compilers while
958 running configure, to aid debugging if configure makes a mistake.
960 It was created by $as_me, which was
961 generated by GNU Autoconf 2.57. Invocation command line was
963 $ $0 $@
965 _ACEOF
967 cat <<_ASUNAME
968 ## --------- ##
969 ## Platform. ##
970 ## --------- ##
972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
979 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
981 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
982 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
984 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
985 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
986 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
987 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
989 _ASUNAME
991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
992 for as_dir in $PATH
994 IFS=$as_save_IFS
995 test -z "$as_dir" && as_dir=.
996 echo "PATH: $as_dir"
997 done
999 } >&5
1001 cat >&5 <<_ACEOF
1004 ## ----------- ##
1005 ## Core tests. ##
1006 ## ----------- ##
1008 _ACEOF
1011 # Keep a trace of the command line.
1012 # Strip out --no-create and --no-recursion so they do not pile up.
1013 # Strip out --silent because we don't want to record it for future runs.
1014 # Also quote any args containing shell meta-characters.
1015 # Make two passes to allow for proper duplicate-argument suppression.
1016 ac_configure_args=
1017 ac_configure_args0=
1018 ac_configure_args1=
1019 ac_sep=
1020 ac_must_keep_next=false
1021 for ac_pass in 1 2
1023 for ac_arg
1025 case $ac_arg in
1026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028 | -silent | --silent | --silen | --sile | --sil)
1029 continue ;;
1030 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032 esac
1033 case $ac_pass in
1034 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1036 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1037 if test $ac_must_keep_next = true; then
1038 ac_must_keep_next=false # Got value, back to normal.
1039 else
1040 case $ac_arg in
1041 *=* | --config-cache | -C | -disable-* | --disable-* \
1042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1044 | -with-* | --with-* | -without-* | --without-* | --x)
1045 case "$ac_configure_args0 " in
1046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1047 esac
1049 -* ) ac_must_keep_next=true ;;
1050 esac
1052 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053 # Get rid of the leading space.
1054 ac_sep=" "
1056 esac
1057 done
1058 done
1059 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1060 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1062 # When interrupted or exit'd, cleanup temporary files, and complete
1063 # config.log. We remove comments because anyway the quotes in there
1064 # would cause problems or look ugly.
1065 # WARNING: Be sure not to use single quotes in there, as some shells,
1066 # such as our DU 5.0 friend, will then `close' the trap.
1067 trap 'exit_status=$?
1068 # Save into config.log some information that might help in debugging.
1070 echo
1072 cat <<\_ASBOX
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1076 _ASBOX
1077 echo
1078 # The following way of writing the cache mishandles newlines in values,
1080 (set) 2>&1 |
1081 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082 *ac_space=\ *)
1083 sed -n \
1084 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1088 sed -n \
1089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1091 esac;
1093 echo
1095 cat <<\_ASBOX
1096 ## ----------------- ##
1097 ## Output variables. ##
1098 ## ----------------- ##
1099 _ASBOX
1100 echo
1101 for ac_var in $ac_subst_vars
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1105 done | sort
1106 echo
1108 if test -n "$ac_subst_files"; then
1109 cat <<\_ASBOX
1110 ## ------------- ##
1111 ## Output files. ##
1112 ## ------------- ##
1113 _ASBOX
1114 echo
1115 for ac_var in $ac_subst_files
1117 eval ac_val=$`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1119 done | sort
1120 echo
1123 if test -s confdefs.h; then
1124 cat <<\_ASBOX
1125 ## ----------- ##
1126 ## confdefs.h. ##
1127 ## ----------- ##
1128 _ASBOX
1129 echo
1130 sed "/^$/d" confdefs.h | sort
1131 echo
1133 test "$ac_signal" != 0 &&
1134 echo "$as_me: caught signal $ac_signal"
1135 echo "$as_me: exit $exit_status"
1136 } >&5
1137 rm -f core core.* *.core &&
1138 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1139 exit $exit_status
1141 for ac_signal in 1 2 13 15; do
1142 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1143 done
1144 ac_signal=0
1146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1147 rm -rf conftest* confdefs.h
1148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1149 echo >confdefs.h
1151 # Predefined preprocessor variables.
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_NAME "$PACKAGE_NAME"
1155 _ACEOF
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1160 _ACEOF
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1165 _ACEOF
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_STRING "$PACKAGE_STRING"
1170 _ACEOF
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1175 _ACEOF
1178 # Let the site file select an alternate cache file if it wants to.
1179 # Prefer explicitly selected file to automatically selected ones.
1180 if test -z "$CONFIG_SITE"; then
1181 if test "x$prefix" != xNONE; then
1182 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183 else
1184 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1187 for ac_site_file in $CONFIG_SITE; do
1188 if test -r "$ac_site_file"; then
1189 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1190 echo "$as_me: loading site script $ac_site_file" >&6;}
1191 sed 's/^/| /' "$ac_site_file" >&5
1192 . "$ac_site_file"
1194 done
1196 if test -r "$cache_file"; then
1197 # Some versions of bash will fail to source /dev/null (special
1198 # files actually), so we avoid doing that.
1199 if test -f "$cache_file"; then
1200 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1201 echo "$as_me: loading cache $cache_file" >&6;}
1202 case $cache_file in
1203 [\\/]* | ?:[\\/]* ) . $cache_file;;
1204 *) . ./$cache_file;;
1205 esac
1207 else
1208 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1209 echo "$as_me: creating cache $cache_file" >&6;}
1210 >$cache_file
1213 # Check that the precious variables saved in the cache have kept the same
1214 # value.
1215 ac_cache_corrupted=false
1216 for ac_var in `(set) 2>&1 |
1217 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219 eval ac_new_set=\$ac_env_${ac_var}_set
1220 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221 eval ac_new_val="\$ac_env_${ac_var}_value"
1222 case $ac_old_set,$ac_new_set in
1223 set,)
1224 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226 ac_cache_corrupted=: ;;
1227 ,set)
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230 ac_cache_corrupted=: ;;
1231 ,);;
1233 if test "x$ac_old_val" != "x$ac_new_val"; then
1234 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1237 echo "$as_me: former value: $ac_old_val" >&2;}
1238 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1239 echo "$as_me: current value: $ac_new_val" >&2;}
1240 ac_cache_corrupted=:
1241 fi;;
1242 esac
1243 # Pass precious variables to config.status.
1244 if test "$ac_new_set" = set; then
1245 case $ac_new_val in
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 *) ac_arg=$ac_var=$ac_new_val ;;
1249 esac
1250 case " $ac_configure_args " in
1251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1252 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253 esac
1255 done
1256 if $ac_cache_corrupted; then
1257 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261 { (exit 1); exit 1; }; }
1264 ac_ext=c
1265 ac_cpp='$CPP $CPPFLAGS'
1266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289 ac_aux_dir=
1290 for ac_dir in .. $srcdir/..; do
1291 if test -f $ac_dir/install-sh; then
1292 ac_aux_dir=$ac_dir
1293 ac_install_sh="$ac_aux_dir/install-sh -c"
1294 break
1295 elif test -f $ac_dir/install.sh; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/install.sh -c"
1298 break
1299 elif test -f $ac_dir/shtool; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/shtool install -c"
1302 break
1304 done
1305 if test -z "$ac_aux_dir"; then
1306 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1307 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1308 { (exit 1); exit 1; }; }
1310 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1311 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1312 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1314 # Make sure we can run config.sub.
1315 $ac_config_sub sun4 >/dev/null 2>&1 ||
1316 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1317 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1318 { (exit 1); exit 1; }; }
1320 echo "$as_me:$LINENO: checking build system type" >&5
1321 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1322 if test "${ac_cv_build+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 else
1325 ac_cv_build_alias=$build_alias
1326 test -z "$ac_cv_build_alias" &&
1327 ac_cv_build_alias=`$ac_config_guess`
1328 test -z "$ac_cv_build_alias" &&
1329 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1330 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1331 { (exit 1); exit 1; }; }
1332 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1333 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1334 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1335 { (exit 1); exit 1; }; }
1338 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1339 echo "${ECHO_T}$ac_cv_build" >&6
1340 build=$ac_cv_build
1341 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346 echo "$as_me:$LINENO: checking host system type" >&5
1347 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1348 if test "${ac_cv_host+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 else
1351 ac_cv_host_alias=$host_alias
1352 test -z "$ac_cv_host_alias" &&
1353 ac_cv_host_alias=$ac_cv_build_alias
1354 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1356 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1357 { (exit 1); exit 1; }; }
1360 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1361 echo "${ECHO_T}$ac_cv_host" >&6
1362 host=$ac_cv_host
1363 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1368 echo "$as_me:$LINENO: checking target system type" >&5
1369 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1370 if test "${ac_cv_target+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373 ac_cv_target_alias=$target_alias
1374 test "x$ac_cv_target_alias" = "x" &&
1375 ac_cv_target_alias=$ac_cv_host_alias
1376 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1383 echo "${ECHO_T}$ac_cv_target" >&6
1384 target=$ac_cv_target
1385 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390 # The aliases save the names the user supplied, while $host etc.
1391 # will get canonicalized.
1392 test -n "$target_alias" &&
1393 test "$program_prefix$program_suffix$program_transform_name" = \
1394 NONENONEs,x,x, &&
1395 program_prefix=${target_alias}-
1396 ac_ext=c
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1401 if test -n "$ac_tool_prefix"; then
1402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1404 echo "$as_me:$LINENO: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 if test -n "$CC"; then
1410 ac_cv_prog_CC="$CC" # Let the user override the test.
1411 else
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 for as_dir in $PATH
1415 IFS=$as_save_IFS
1416 test -z "$as_dir" && as_dir=.
1417 for ac_exec_ext in '' $ac_executable_extensions; do
1418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421 break 2
1423 done
1424 done
1428 CC=$ac_cv_prog_CC
1429 if test -n "$CC"; then
1430 echo "$as_me:$LINENO: result: $CC" >&5
1431 echo "${ECHO_T}$CC" >&6
1432 else
1433 echo "$as_me:$LINENO: result: no" >&5
1434 echo "${ECHO_T}no" >&6
1438 if test -z "$ac_cv_prog_CC"; then
1439 ac_ct_CC=$CC
1440 # Extract the first word of "gcc", so it can be a program name with args.
1441 set dummy gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 if test -n "$ac_ct_CC"; then
1448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_ac_ct_CC="gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1461 done
1462 done
1466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1467 if test -n "$ac_ct_CC"; then
1468 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1469 echo "${ECHO_T}$ac_ct_CC" >&6
1470 else
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1475 CC=$ac_ct_CC
1476 else
1477 CC="$ac_cv_prog_CC"
1480 if test -z "$CC"; then
1481 if test -n "$ac_tool_prefix"; then
1482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1483 set dummy ${ac_tool_prefix}cc; ac_word=$2
1484 echo "$as_me:$LINENO: checking for $ac_word" >&5
1485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486 if test "${ac_cv_prog_CC+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489 if test -n "$CC"; then
1490 ac_cv_prog_CC="$CC" # Let the user override the test.
1491 else
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 ac_cv_prog_CC="${ac_tool_prefix}cc"
1500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 break 2
1503 done
1504 done
1508 CC=$ac_cv_prog_CC
1509 if test -n "$CC"; then
1510 echo "$as_me:$LINENO: result: $CC" >&5
1511 echo "${ECHO_T}$CC" >&6
1512 else
1513 echo "$as_me:$LINENO: result: no" >&5
1514 echo "${ECHO_T}no" >&6
1518 if test -z "$ac_cv_prog_CC"; then
1519 ac_ct_CC=$CC
1520 # Extract the first word of "cc", so it can be a program name with args.
1521 set dummy cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 if test -n "$ac_ct_CC"; then
1528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_ac_ct_CC="cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1541 done
1542 done
1546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1547 if test -n "$ac_ct_CC"; then
1548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1549 echo "${ECHO_T}$ac_ct_CC" >&6
1550 else
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1555 CC=$ac_ct_CC
1556 else
1557 CC="$ac_cv_prog_CC"
1561 if test -z "$CC"; then
1562 # Extract the first word of "cc", so it can be a program name with args.
1563 set dummy cc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 if test -n "$CC"; then
1570 ac_cv_prog_CC="$CC" # Let the user override the test.
1571 else
1572 ac_prog_rejected=no
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1576 IFS=$as_save_IFS
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1581 ac_prog_rejected=yes
1582 continue
1584 ac_cv_prog_CC="cc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1588 done
1589 done
1591 if test $ac_prog_rejected = yes; then
1592 # We found a bogon in the path, so make sure we never use it.
1593 set dummy $ac_cv_prog_CC
1594 shift
1595 if test $# != 0; then
1596 # We chose a different compiler from the bogus one.
1597 # However, it has the same basename, so the bogon will be chosen
1598 # first if we set CC to just the basename; use the full file name.
1599 shift
1600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1605 CC=$ac_cv_prog_CC
1606 if test -n "$CC"; then
1607 echo "$as_me:$LINENO: result: $CC" >&5
1608 echo "${ECHO_T}$CC" >&6
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1615 if test -z "$CC"; then
1616 if test -n "$ac_tool_prefix"; then
1617 for ac_prog in cl
1619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1640 done
1641 done
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1654 test -n "$CC" && break
1655 done
1657 if test -z "$CC"; then
1658 ac_ct_CC=$CC
1659 for ac_prog in cl
1661 # Extract the first word of "$ac_prog", so it can be a program name with args.
1662 set dummy $ac_prog; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668 if test -n "$ac_ct_CC"; then
1669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1674 IFS=$as_save_IFS
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_ac_ct_CC="$ac_prog"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 break 2
1682 done
1683 done
1687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688 if test -n "$ac_ct_CC"; then
1689 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1690 echo "${ECHO_T}$ac_ct_CC" >&6
1691 else
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1696 test -n "$ac_ct_CC" && break
1697 done
1699 CC=$ac_ct_CC
1705 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706 See \`config.log' for more details." >&5
1707 echo "$as_me: error: no acceptable C compiler found in \$PATH
1708 See \`config.log' for more details." >&2;}
1709 { (exit 1); exit 1; }; }
1711 # Provide some information about the compiler.
1712 echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
1714 ac_compiler=`set X $ac_compile; echo $2`
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1731 cat >conftest.$ac_ext <<_ACEOF
1732 #line $LINENO "configure"
1733 /* confdefs.h. */
1734 _ACEOF
1735 cat confdefs.h >>conftest.$ac_ext
1736 cat >>conftest.$ac_ext <<_ACEOF
1737 /* end confdefs.h. */
1740 main ()
1744 return 0;
1746 _ACEOF
1747 ac_clean_files_save=$ac_clean_files
1748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1749 # Try to create an executable without -o first, disregard a.out.
1750 # It will help us diagnose broken compilers, and finding out an intuition
1751 # of exeext.
1752 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1753 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1755 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1756 (eval $ac_link_default) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }; then
1760 # Find the output, starting from the most likely. This scheme is
1761 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1762 # resort.
1764 # Be careful to initialize this variable, since it used to be cached.
1765 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766 ac_cv_exeext=
1767 # b.out is created by i960 compilers.
1768 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1770 test -f "$ac_file" || continue
1771 case $ac_file in
1772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1774 conftest.$ac_ext )
1775 # This is the source file.
1777 [ab].out )
1778 # We found the default executable, but exeext='' is most
1779 # certainly right.
1780 break;;
1781 *.* )
1782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 # FIXME: I believe we export ac_cv_exeext for Libtool,
1784 # but it would be cool to find out if it's true. Does anybody
1785 # maintain Libtool? --akim.
1786 export ac_cv_exeext
1787 break;;
1789 break;;
1790 esac
1791 done
1792 else
1793 echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1797 See \`config.log' for more details." >&5
1798 echo "$as_me: error: C compiler cannot create executables
1799 See \`config.log' for more details." >&2;}
1800 { (exit 77); exit 77; }; }
1803 ac_exeext=$ac_cv_exeext
1804 echo "$as_me:$LINENO: result: $ac_file" >&5
1805 echo "${ECHO_T}$ac_file" >&6
1807 # Check the compiler produces executables we can run. If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1810 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1811 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1812 # If not cross compiling, check that we can run a simple program.
1813 if test "$cross_compiling" != yes; then
1814 if { ac_try='./$ac_file'
1815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1816 (eval $ac_try) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; }; then
1820 cross_compiling=no
1821 else
1822 if test "$cross_compiling" = maybe; then
1823 cross_compiling=yes
1824 else
1825 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1826 If you meant to cross compile, use \`--host'.
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'.
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1835 echo "$as_me:$LINENO: result: yes" >&5
1836 echo "${ECHO_T}yes" >&6
1838 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1839 ac_clean_files=$ac_clean_files_save
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1843 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1844 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1845 echo "${ECHO_T}$cross_compiling" >&6
1847 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1848 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1850 (eval $ac_link) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; then
1854 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1855 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1856 # work properly (i.e., refer to `conftest.exe'), while it won't with
1857 # `rm'.
1858 for ac_file in conftest.exe conftest conftest.*; do
1859 test -f "$ac_file" || continue
1860 case $ac_file in
1861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1862 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1863 export ac_cv_exeext
1864 break;;
1865 * ) break;;
1866 esac
1867 done
1868 else
1869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1870 See \`config.log' for more details." >&5
1871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1872 See \`config.log' for more details." >&2;}
1873 { (exit 1); exit 1; }; }
1876 rm -f conftest$ac_cv_exeext
1877 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1878 echo "${ECHO_T}$ac_cv_exeext" >&6
1880 rm -f conftest.$ac_ext
1881 EXEEXT=$ac_cv_exeext
1882 ac_exeext=$EXEEXT
1883 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1885 if test "${ac_cv_objext+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 cat >conftest.$ac_ext <<_ACEOF
1889 #line $LINENO "configure"
1890 /* confdefs.h. */
1891 _ACEOF
1892 cat confdefs.h >>conftest.$ac_ext
1893 cat >>conftest.$ac_ext <<_ACEOF
1894 /* end confdefs.h. */
1897 main ()
1901 return 0;
1903 _ACEOF
1904 rm -f conftest.o conftest.obj
1905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1906 (eval $ac_compile) 2>&5
1907 ac_status=$?
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }; then
1910 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1911 case $ac_file in
1912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1914 break;;
1915 esac
1916 done
1917 else
1918 echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1922 See \`config.log' for more details." >&5
1923 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1924 See \`config.log' for more details." >&2;}
1925 { (exit 1); exit 1; }; }
1928 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1930 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1931 echo "${ECHO_T}$ac_cv_objext" >&6
1932 OBJEXT=$ac_cv_objext
1933 ac_objext=$OBJEXT
1934 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1935 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1936 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 cat >conftest.$ac_ext <<_ACEOF
1940 #line $LINENO "configure"
1941 /* confdefs.h. */
1942 _ACEOF
1943 cat confdefs.h >>conftest.$ac_ext
1944 cat >>conftest.$ac_ext <<_ACEOF
1945 /* end confdefs.h. */
1948 main ()
1950 #ifndef __GNUC__
1951 choke me
1952 #endif
1955 return 0;
1957 _ACEOF
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960 (eval $ac_compile) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966 (eval $ac_try) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1970 ac_compiler_gnu=yes
1971 else
1972 echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1975 ac_compiler_gnu=no
1977 rm -f conftest.$ac_objext conftest.$ac_ext
1978 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1981 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1982 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1983 GCC=`test $ac_compiler_gnu = yes && echo yes`
1984 ac_test_CFLAGS=${CFLAGS+set}
1985 ac_save_CFLAGS=$CFLAGS
1986 CFLAGS="-g"
1987 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1988 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1989 if test "${ac_cv_prog_cc_g+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 cat >conftest.$ac_ext <<_ACEOF
1993 #line $LINENO "configure"
1994 /* confdefs.h. */
1995 _ACEOF
1996 cat confdefs.h >>conftest.$ac_ext
1997 cat >>conftest.$ac_ext <<_ACEOF
1998 /* end confdefs.h. */
2001 main ()
2005 return 0;
2007 _ACEOF
2008 rm -f conftest.$ac_objext
2009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010 (eval $ac_compile) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
2020 ac_cv_prog_cc_g=yes
2021 else
2022 echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2025 ac_cv_prog_cc_g=no
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031 if test "$ac_test_CFLAGS" = set; then
2032 CFLAGS=$ac_save_CFLAGS
2033 elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
2035 CFLAGS="-g -O2"
2036 else
2037 CFLAGS="-g"
2039 else
2040 if test "$GCC" = yes; then
2041 CFLAGS="-O2"
2042 else
2043 CFLAGS=
2046 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 ac_cv_prog_cc_stdc=no
2052 ac_save_CC=$CC
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line $LINENO "configure"
2055 /* confdefs.h. */
2056 _ACEOF
2057 cat confdefs.h >>conftest.$ac_ext
2058 cat >>conftest.$ac_ext <<_ACEOF
2059 /* end confdefs.h. */
2060 #include <stdarg.h>
2061 #include <stdio.h>
2062 #include <sys/types.h>
2063 #include <sys/stat.h>
2064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2065 struct buf { int x; };
2066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2067 static char *e (p, i)
2068 char **p;
2069 int i;
2071 return p[i];
2073 static char *f (char * (*g) (char **, int), char **p, ...)
2075 char *s;
2076 va_list v;
2077 va_start (v,p);
2078 s = g (p, va_arg (v,int));
2079 va_end (v);
2080 return s;
2082 int test (int i, double x);
2083 struct s1 {int (*f) (int a);};
2084 struct s2 {int (*f) (double a);};
2085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2086 int argc;
2087 char **argv;
2089 main ()
2091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2093 return 0;
2095 _ACEOF
2096 # Don't try gcc -ansi; that turns off useful extensions and
2097 # breaks some systems' header files.
2098 # AIX -qlanglvl=ansi
2099 # Ultrix and OSF/1 -std1
2100 # HP-UX 10.20 and later -Ae
2101 # HP-UX older versions -Aa -D_HPUX_SOURCE
2102 # SVR4 -Xc -D__EXTENSIONS__
2103 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2105 CC="$ac_save_CC $ac_arg"
2106 rm -f conftest.$ac_objext
2107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108 (eval $ac_compile) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
2112 { ac_try='test -s conftest.$ac_objext'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 (eval $ac_try) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; }; then
2118 ac_cv_prog_cc_stdc=$ac_arg
2119 break
2120 else
2121 echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.$ac_ext >&5
2125 rm -f conftest.$ac_objext
2126 done
2127 rm -f conftest.$ac_ext conftest.$ac_objext
2128 CC=$ac_save_CC
2132 case "x$ac_cv_prog_cc_stdc" in
2133 x|xno)
2134 echo "$as_me:$LINENO: result: none needed" >&5
2135 echo "${ECHO_T}none needed" >&6 ;;
2137 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2138 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2139 CC="$CC $ac_cv_prog_cc_stdc" ;;
2140 esac
2142 # Some people use a C++ compiler to compile C. Since we use `exit',
2143 # in C++ we need to declare it. In case someone uses the same compiler
2144 # for both compiling C and C++ we need to have the C++ compiler decide
2145 # the declaration of exit, since it's the most demanding environment.
2146 cat >conftest.$ac_ext <<_ACEOF
2147 #ifndef __cplusplus
2148 choke me
2149 #endif
2150 _ACEOF
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 for ac_declaration in \
2165 '#include <stdlib.h>' \
2166 'extern "C" void std::exit (int) throw (); using std::exit;' \
2167 'extern "C" void std::exit (int); using std::exit;' \
2168 'extern "C" void exit (int) throw ();' \
2169 'extern "C" void exit (int);' \
2170 'void exit (int);'
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 /* confdefs.h. */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2179 #include <stdlib.h>
2180 $ac_declaration
2182 main ()
2184 exit (42);
2186 return 0;
2188 _ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2202 else
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 continue
2208 rm -f conftest.$ac_objext conftest.$ac_ext
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #line $LINENO "configure"
2211 /* confdefs.h. */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2216 $ac_declaration
2218 main ()
2220 exit (42);
2222 return 0;
2224 _ACEOF
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 break
2238 else
2239 echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2243 rm -f conftest.$ac_objext conftest.$ac_ext
2244 done
2245 rm -f conftest*
2246 if test -n "$ac_declaration"; then
2247 echo '#ifdef __cplusplus' >>confdefs.h
2248 echo $ac_declaration >>confdefs.h
2249 echo '#endif' >>confdefs.h
2252 else
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2257 rm -f conftest.$ac_objext conftest.$ac_ext
2258 ac_ext=c
2259 ac_cpp='$CPP $CPPFLAGS'
2260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2267 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2268 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 ac_check_lib_save_LIBS=$LIBS
2272 LIBS="-lcposix $LIBS"
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 /* confdefs.h. */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2281 /* Override any gcc2 internal prototype to avoid an error. */
2282 #ifdef __cplusplus
2283 extern "C"
2284 #endif
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2287 char strerror ();
2289 main ()
2291 strerror ();
2293 return 0;
2295 _ACEOF
2296 rm -f conftest.$ac_objext conftest$ac_exeext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2298 (eval $ac_link) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest$ac_exeext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 ac_cv_lib_cposix_strerror=yes
2309 else
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2313 ac_cv_lib_cposix_strerror=no
2315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2316 LIBS=$ac_check_lib_save_LIBS
2318 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2319 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2320 if test $ac_cv_lib_cposix_strerror = yes; then
2321 LIBS="$LIBS -lcposix"
2327 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2328 am__api_version="1.7"
2329 # Find a good install program. We prefer a C program (faster),
2330 # so one script is as good as another. But avoid the broken or
2331 # incompatible versions:
2332 # SysV /etc/install, /usr/sbin/install
2333 # SunOS /usr/etc/install
2334 # IRIX /sbin/install
2335 # AIX /bin/install
2336 # AmigaOS /C/install, which installs bootblocks on floppy discs
2337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2340 # ./install, which can be erroneously created by make from ./install.sh.
2341 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2342 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2343 if test -z "$INSTALL"; then
2344 if test "${ac_cv_path_install+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 # Account for people who put trailing slashes in PATH elements.
2353 case $as_dir/ in
2354 ./ | .// | /cC/* | \
2355 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2356 /usr/ucb/* ) ;;
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2360 # by default.
2361 for ac_prog in ginstall scoinst install; do
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2364 if test $ac_prog = install &&
2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2368 elif test $ac_prog = install &&
2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2372 else
2373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2374 break 3
2377 done
2378 done
2380 esac
2381 done
2385 if test "${ac_cv_path_install+set}" = set; then
2386 INSTALL=$ac_cv_path_install
2387 else
2388 # As a last resort, use the slow shell script. We don't cache a
2389 # path for INSTALL within a source directory, because that will
2390 # break other packages using the cache if that directory is
2391 # removed, or if the path is relative.
2392 INSTALL=$ac_install_sh
2395 echo "$as_me:$LINENO: result: $INSTALL" >&5
2396 echo "${ECHO_T}$INSTALL" >&6
2398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2399 # It thinks the first close brace ends the variable substitution.
2400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2406 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2407 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2408 # Just in case
2409 sleep 1
2410 echo timestamp > conftest.file
2411 # Do `set' in a subshell so we don't clobber the current shell's
2412 # arguments. Must try -L first in case configure is actually a
2413 # symlink; some systems play weird games with the mod time of symlinks
2414 # (eg FreeBSD returns the mod time of the symlink's containing
2415 # directory).
2416 if (
2417 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2418 if test "$*" = "X"; then
2419 # -L didn't work.
2420 set X `ls -t $srcdir/configure conftest.file`
2422 rm -f conftest.file
2423 if test "$*" != "X $srcdir/configure conftest.file" \
2424 && test "$*" != "X conftest.file $srcdir/configure"; then
2426 # If neither matched, then we have a broken ls. This can happen
2427 # if, for instance, CONFIG_SHELL is bash and it inherits a
2428 # broken ls alias from the environment. This has actually
2429 # happened. Such a system could not be considered "sane".
2430 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2431 alias in your environment" >&5
2432 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2433 alias in your environment" >&2;}
2434 { (exit 1); exit 1; }; }
2437 test "$2" = conftest.file
2439 then
2440 # Ok.
2442 else
2443 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2444 Check your system clock" >&5
2445 echo "$as_me: error: newly created file is older than distributed files!
2446 Check your system clock" >&2;}
2447 { (exit 1); exit 1; }; }
2449 echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6
2451 test "$program_prefix" != NONE &&
2452 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2456 # Double any \ or $. echo might interpret backslashes.
2457 # By default was `s,x,x', remove it if useless.
2458 cat <<\_ACEOF >conftest.sed
2459 s/[\\$]/&&/g;s/;s,x,x,$//
2460 _ACEOF
2461 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2462 rm conftest.sed
2465 # expand $ac_aux_dir to an absolute path
2466 am_aux_dir=`cd $ac_aux_dir && pwd`
2468 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2469 # Use eval to expand $SHELL
2470 if eval "$MISSING --run true"; then
2471 am_missing_run="$MISSING --run "
2472 else
2473 am_missing_run=
2474 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2475 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2478 for ac_prog in gawk mawk nawk awk
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481 set dummy $ac_prog; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_AWK+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 if test -n "$AWK"; then
2488 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_AWK="$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2501 done
2502 done
2506 AWK=$ac_cv_prog_AWK
2507 if test -n "$AWK"; then
2508 echo "$as_me:$LINENO: result: $AWK" >&5
2509 echo "${ECHO_T}$AWK" >&6
2510 else
2511 echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2515 test -n "$AWK" && break
2516 done
2518 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2519 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2520 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2521 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 cat >conftest.make <<\_ACEOF
2525 all:
2526 @echo 'ac_maketemp="$(MAKE)"'
2527 _ACEOF
2528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2529 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2530 if test -n "$ac_maketemp"; then
2531 eval ac_cv_prog_make_${ac_make}_set=yes
2532 else
2533 eval ac_cv_prog_make_${ac_make}_set=no
2535 rm -f conftest.make
2537 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2538 echo "$as_me:$LINENO: result: yes" >&5
2539 echo "${ECHO_T}yes" >&6
2540 SET_MAKE=
2541 else
2542 echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6
2544 SET_MAKE="MAKE=${MAKE-make}"
2547 rm -rf .tst 2>/dev/null
2548 mkdir .tst 2>/dev/null
2549 if test -d .tst; then
2550 am__leading_dot=.
2551 else
2552 am__leading_dot=_
2554 rmdir .tst 2>/dev/null
2556 DEPDIR="${am__leading_dot}deps"
2558 ac_config_commands="$ac_config_commands depfiles"
2561 am_make=${MAKE-make}
2562 cat > confinc << 'END'
2563 am__doit:
2564 @echo done
2565 .PHONY: am__doit
2567 # If we don't find an include directive, just comment out the code.
2568 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2569 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2570 am__include="#"
2571 am__quote=
2572 _am_result=none
2573 # First try GNU make style include.
2574 echo "include confinc" > confmf
2575 # We grep out `Entering directory' and `Leaving directory'
2576 # messages which can occur if `w' ends up in MAKEFLAGS.
2577 # In particular we don't look at `^make:' because GNU make might
2578 # be invoked under some other name (usually "gmake"), in which
2579 # case it prints its new name instead of `make'.
2580 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2581 am__include=include
2582 am__quote=
2583 _am_result=GNU
2585 # Now try BSD make style include.
2586 if test "$am__include" = "#"; then
2587 echo '.include "confinc"' > confmf
2588 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2589 am__include=.include
2590 am__quote="\""
2591 _am_result=BSD
2596 echo "$as_me:$LINENO: result: $_am_result" >&5
2597 echo "${ECHO_T}$_am_result" >&6
2598 rm -f confinc confmf
2600 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2601 if test "${enable_dependency_tracking+set}" = set; then
2602 enableval="$enable_dependency_tracking"
2605 if test "x$enable_dependency_tracking" != xno; then
2606 am_depcomp="$ac_aux_dir/depcomp"
2607 AMDEPBACKSLASH='\'
2611 if test "x$enable_dependency_tracking" != xno; then
2612 AMDEP_TRUE=
2613 AMDEP_FALSE='#'
2614 else
2615 AMDEP_TRUE='#'
2616 AMDEP_FALSE=
2621 # test to see if srcdir already configured
2622 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2623 test -f $srcdir/config.status; then
2624 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2625 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2626 { (exit 1); exit 1; }; }
2629 # test whether we have cygpath
2630 if test -z "$CYGPATH_W"; then
2631 if (cygpath --version) >/dev/null 2>/dev/null; then
2632 CYGPATH_W='cygpath -w'
2633 else
2634 CYGPATH_W=echo
2639 # Define the identity of the package.
2640 PACKAGE=gas
2641 VERSION=${BFD_VERSION}
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE "$PACKAGE"
2646 _ACEOF
2649 cat >>confdefs.h <<_ACEOF
2650 #define VERSION "$VERSION"
2651 _ACEOF
2653 # Some tools Automake needs.
2655 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2658 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2661 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2664 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2667 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2670 AMTAR=${AMTAR-"${am_missing_run}tar"}
2672 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2674 # Installed binaries are usually stripped using `strip' when the user
2675 # run `make install-strip'. However `strip' might not be the right
2676 # tool to use in cross-compilation environments, therefore Automake
2677 # will honor the `STRIP' environment variable to overrule this program.
2678 if test "$cross_compiling" != no; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}strip; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_STRIP+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$STRIP"; then
2688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2706 STRIP=$ac_cv_prog_STRIP
2707 if test -n "$STRIP"; then
2708 echo "$as_me:$LINENO: result: $STRIP" >&5
2709 echo "${ECHO_T}$STRIP" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2716 if test -z "$ac_cv_prog_STRIP"; then
2717 ac_ct_STRIP=$STRIP
2718 # Extract the first word of "strip", so it can be a program name with args.
2719 set dummy strip; ac_word=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 if test -n "$ac_ct_STRIP"; then
2726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_ac_ct_STRIP="strip"
2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2739 done
2740 done
2742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2746 if test -n "$ac_ct_STRIP"; then
2747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2748 echo "${ECHO_T}$ac_ct_STRIP" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2754 STRIP=$ac_ct_STRIP
2755 else
2756 STRIP="$ac_cv_prog_STRIP"
2760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2762 # We need awk for the "check" target. The system "awk" is bad on
2763 # some platforms.
2766 depcc="$CC" am_compiler_list=
2768 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2769 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2770 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2774 # We make a subdir and do the tests there. Otherwise we can end up
2775 # making bogus files that we don't know about and never remove. For
2776 # instance it was reported that on HP-UX the gcc test will end up
2777 # making a dummy file named `D' -- because `-MD' means `put the output
2778 # in D'.
2779 mkdir conftest.dir
2780 # Copy depcomp to subdir because otherwise we won't find it if we're
2781 # using a relative directory.
2782 cp "$am_depcomp" conftest.dir
2783 cd conftest.dir
2784 # We will build objects and dependencies in a subdirectory because
2785 # it helps to detect inapplicable dependency modes. For instance
2786 # both Tru64's cc and ICC support -MD to output dependencies as a
2787 # side effect of compilation, but ICC will put the dependencies in
2788 # the current directory while Tru64 will put them in the object
2789 # directory.
2790 mkdir sub
2792 am_cv_CC_dependencies_compiler_type=none
2793 if test "$am_compiler_list" = ""; then
2794 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2796 for depmode in $am_compiler_list; do
2797 # Setup a source with many dependencies, because some compilers
2798 # like to wrap large dependency lists on column 80 (with \), and
2799 # we should not choose a depcomp mode which is confused by this.
2801 # We need to recreate these files for each test, as the compiler may
2802 # overwrite some of them when testing with obscure command lines.
2803 # This happens at least with the AIX C compiler.
2804 : > sub/conftest.c
2805 for i in 1 2 3 4 5 6; do
2806 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2807 : > sub/conftst$i.h
2808 done
2809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2811 case $depmode in
2812 nosideeffect)
2813 # after this tag, mechanisms are not by side-effect, so they'll
2814 # only be used when explicitly requested
2815 if test "x$enable_dependency_tracking" = xyes; then
2816 continue
2817 else
2818 break
2821 none) break ;;
2822 esac
2823 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2824 # mode. It turns out that the SunPro C++ compiler does not properly
2825 # handle `-M -o', and we need to detect this.
2826 if depmode=$depmode \
2827 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2829 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2830 >/dev/null 2>conftest.err &&
2831 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2832 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2833 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2834 # icc doesn't choke on unknown options, it will just issue warnings
2835 # (even with -Werror). So we grep stderr for any message
2836 # that says an option was ignored.
2837 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2838 am_cv_CC_dependencies_compiler_type=$depmode
2839 break
2842 done
2844 cd ..
2845 rm -rf conftest.dir
2846 else
2847 am_cv_CC_dependencies_compiler_type=none
2851 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2852 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2853 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2858 test "x$enable_dependency_tracking" != xno \
2859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2860 am__fastdepCC_TRUE=
2861 am__fastdepCC_FALSE='#'
2862 else
2863 am__fastdepCC_TRUE='#'
2864 am__fastdepCC_FALSE=
2870 # Check whether --enable-shared or --disable-shared was given.
2871 if test "${enable_shared+set}" = set; then
2872 enableval="$enable_shared"
2873 p=${PACKAGE-default}
2874 case $enableval in
2875 yes) enable_shared=yes ;;
2876 no) enable_shared=no ;;
2878 enable_shared=no
2879 # Look at the argument we got. We use all the common list separators.
2880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2881 for pkg in $enableval; do
2882 if test "X$pkg" = "X$p"; then
2883 enable_shared=yes
2885 done
2886 IFS="$ac_save_ifs"
2888 esac
2889 else
2890 enable_shared=yes
2892 # Check whether --enable-static or --disable-static was given.
2893 if test "${enable_static+set}" = set; then
2894 enableval="$enable_static"
2895 p=${PACKAGE-default}
2896 case $enableval in
2897 yes) enable_static=yes ;;
2898 no) enable_static=no ;;
2900 enable_static=no
2901 # Look at the argument we got. We use all the common list separators.
2902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2903 for pkg in $enableval; do
2904 if test "X$pkg" = "X$p"; then
2905 enable_static=yes
2907 done
2908 IFS="$ac_save_ifs"
2910 esac
2911 else
2912 enable_static=yes
2914 # Check whether --enable-fast-install or --disable-fast-install was given.
2915 if test "${enable_fast_install+set}" = set; then
2916 enableval="$enable_fast_install"
2917 p=${PACKAGE-default}
2918 case $enableval in
2919 yes) enable_fast_install=yes ;;
2920 no) enable_fast_install=no ;;
2922 enable_fast_install=no
2923 # Look at the argument we got. We use all the common list separators.
2924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2925 for pkg in $enableval; do
2926 if test "X$pkg" = "X$p"; then
2927 enable_fast_install=yes
2929 done
2930 IFS="$ac_save_ifs"
2932 esac
2933 else
2934 enable_fast_install=yes
2937 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2938 if test "${with_gnu_ld+set}" = set; then
2939 withval="$with_gnu_ld"
2940 test "$withval" = no || with_gnu_ld=yes
2941 else
2942 with_gnu_ld=no
2944 ac_prog=ld
2945 if test "$GCC" = yes; then
2946 # Check if gcc -print-prog-name=ld gives a path.
2947 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2948 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2949 case $host in
2950 *-*-mingw*)
2951 # gcc leaves a trailing carriage return which upsets mingw
2952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2955 esac
2956 case $ac_prog in
2957 # Accept absolute paths.
2958 [\\/]* | [A-Za-z]:[\\/]*)
2959 re_direlt='/[^/][^/]*/\.\./'
2960 # Canonicalize the path of ld
2961 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2963 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2964 done
2965 test -z "$LD" && LD="$ac_prog"
2968 # If it fails, then pretend we aren't using GCC.
2969 ac_prog=ld
2972 # If it is relative, then search for the first ld in PATH.
2973 with_gnu_ld=unknown
2975 esac
2976 elif test "$with_gnu_ld" = yes; then
2977 echo "$as_me:$LINENO: checking for GNU ld" >&5
2978 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2979 else
2980 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2981 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2983 if test "${lt_cv_path_LD+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -z "$LD"; then
2987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2988 for ac_dir in $PATH; do
2989 test -z "$ac_dir" && ac_dir=.
2990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2991 lt_cv_path_LD="$ac_dir/$ac_prog"
2992 # Check to see if the program is GNU ld. I'd rather use --version,
2993 # but apparently some GNU ld's only accept -v.
2994 # Break only if it was the GNU/non-GNU ld that we prefer.
2995 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2996 test "$with_gnu_ld" != no && break
2997 else
2998 test "$with_gnu_ld" != yes && break
3001 done
3002 IFS="$ac_save_ifs"
3003 else
3004 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3008 LD="$lt_cv_path_LD"
3009 if test -n "$LD"; then
3010 echo "$as_me:$LINENO: result: $LD" >&5
3011 echo "${ECHO_T}$LD" >&6
3012 else
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3016 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3017 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3018 { (exit 1); exit 1; }; }
3019 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3020 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3021 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3025 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3026 lt_cv_prog_gnu_ld=yes
3027 else
3028 lt_cv_prog_gnu_ld=no
3031 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3032 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3033 with_gnu_ld=$lt_cv_prog_gnu_ld
3036 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3037 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3038 if test "${lt_cv_ld_reload_flag+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041 lt_cv_ld_reload_flag='-r'
3043 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3044 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3045 reload_flag=$lt_cv_ld_reload_flag
3046 test -n "$reload_flag" && reload_flag=" $reload_flag"
3048 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3049 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3050 if test "${lt_cv_path_NM+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053 if test -n "$NM"; then
3054 # Let the user override the test.
3055 lt_cv_path_NM="$NM"
3056 else
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3058 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3059 test -z "$ac_dir" && ac_dir=.
3060 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3061 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3062 # Check to see if the nm accepts a BSD-compat flag.
3063 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3064 # nm: unknown option "B" ignored
3065 # Tru64's nm complains that /dev/null is an invalid object file
3066 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3067 lt_cv_path_NM="$tmp_nm -B"
3068 break
3069 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3070 lt_cv_path_NM="$tmp_nm -p"
3071 break
3072 else
3073 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3074 continue # so that we can try to find one that supports BSD flags
3077 done
3078 IFS="$ac_save_ifs"
3079 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3083 NM="$lt_cv_path_NM"
3084 echo "$as_me:$LINENO: result: $NM" >&5
3085 echo "${ECHO_T}$NM" >&6
3087 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3088 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3089 LN_S=$as_ln_s
3090 if test "$LN_S" = "ln -s"; then
3091 echo "$as_me:$LINENO: result: yes" >&5
3092 echo "${ECHO_T}yes" >&6
3093 else
3094 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3095 echo "${ECHO_T}no, using $LN_S" >&6
3098 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3099 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3100 if test "${lt_cv_deplibs_check_method+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 lt_cv_file_magic_cmd='$MAGIC_CMD'
3104 lt_cv_file_magic_test_file=
3105 lt_cv_deplibs_check_method='unknown'
3106 # Need to set the preceding variable on all platforms that support
3107 # interlibrary dependencies.
3108 # 'none' -- dependencies not supported.
3109 # `unknown' -- same as none, but documents that we really don't know.
3110 # 'pass_all' -- all dependencies passed with no checks.
3111 # 'test_compile' -- check by making test program.
3112 # 'file_magic [regex]' -- check by looking for files in library path
3113 # which responds to the $file_magic_cmd with a given egrep regex.
3114 # If you have `file' or equivalent on your system and you're not sure
3115 # whether `pass_all' will *always* work, you probably want this one.
3117 case $host_os in
3118 aix*)
3119 lt_cv_deplibs_check_method=pass_all
3122 beos*)
3123 lt_cv_deplibs_check_method=pass_all
3126 bsdi4*)
3127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3128 lt_cv_file_magic_cmd='/usr/bin/file -L'
3129 lt_cv_file_magic_test_file=/shlib/libc.so
3132 cygwin* | mingw* |pw32*)
3133 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3134 lt_cv_file_magic_cmd='$OBJDUMP -f'
3137 darwin* | rhapsody*)
3138 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3139 lt_cv_file_magic_cmd='/usr/bin/file -L'
3140 case "$host_os" in
3141 rhapsody* | darwin1.012)
3142 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3144 *) # Darwin 1.3 on
3145 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3147 esac
3150 freebsd* )
3151 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3152 case $host_cpu in
3153 i*86 )
3154 # Not sure whether the presence of OpenBSD here was a mistake.
3155 # Let's accept both of them until this is cleared up.
3156 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3157 lt_cv_file_magic_cmd=/usr/bin/file
3158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3160 esac
3161 else
3162 lt_cv_deplibs_check_method=pass_all
3166 gnu*)
3167 lt_cv_deplibs_check_method=pass_all
3170 hpux10.20*|hpux11*)
3171 case $host_cpu in
3172 hppa*)
3173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3174 lt_cv_file_magic_cmd=/usr/bin/file
3175 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3177 ia64*)
3178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3179 lt_cv_file_magic_cmd=/usr/bin/file
3180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3182 esac
3185 irix5* | irix6*)
3186 case $host_os in
3187 irix5*)
3188 # this will be overridden with pass_all, but let us keep it just in case
3189 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3192 case $LD in
3193 *-32|*"-32 ") libmagic=32-bit;;
3194 *-n32|*"-n32 ") libmagic=N32;;
3195 *-64|*"-64 ") libmagic=64-bit;;
3196 *) libmagic=never-match;;
3197 esac
3198 # this will be overridden with pass_all, but let us keep it just in case
3199 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3201 esac
3202 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3203 lt_cv_deplibs_check_method=pass_all
3206 # This must be Linux ELF.
3207 linux-gnu*)
3208 case $host_cpu in
3209 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3210 lt_cv_deplibs_check_method=pass_all ;;
3212 # glibc up to 2.1.1 does not perform some relocations on ARM
3213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3214 esac
3215 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3218 netbsd*)
3219 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3220 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3221 else
3222 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3226 newsos6)
3227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3228 lt_cv_file_magic_cmd=/usr/bin/file
3229 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3232 osf3* | osf4* | osf5*)
3233 # this will be overridden with pass_all, but let us keep it just in case
3234 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3235 lt_cv_file_magic_test_file=/shlib/libc.so
3236 lt_cv_deplibs_check_method=pass_all
3239 sco3.2v5*)
3240 lt_cv_deplibs_check_method=pass_all
3243 solaris*)
3244 lt_cv_deplibs_check_method=pass_all
3245 lt_cv_file_magic_test_file=/lib/libc.so
3248 sysv5uw[78]* | sysv4*uw2*)
3249 lt_cv_deplibs_check_method=pass_all
3252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3253 case $host_vendor in
3254 ncr)
3255 lt_cv_deplibs_check_method=pass_all
3257 motorola)
3258 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]'
3259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3261 esac
3263 esac
3266 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3267 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3268 file_magic_cmd=$lt_cv_file_magic_cmd
3269 deplibs_check_method=$lt_cv_deplibs_check_method
3274 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3276 # Only perform the check for file, if the check method requires it
3277 case $deplibs_check_method in
3278 file_magic*)
3279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3280 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3281 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 case $MAGIC_CMD in
3287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3289 ?:/*)
3290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3293 ac_save_MAGIC_CMD="$MAGIC_CMD"
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3295 ac_dummy="/usr/bin:$PATH"
3296 for ac_dir in $ac_dummy; do
3297 test -z "$ac_dir" && ac_dir=.
3298 if test -f $ac_dir/${ac_tool_prefix}file; then
3299 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3300 if test -n "$file_magic_test_file"; then
3301 case $deplibs_check_method in
3302 "file_magic "*)
3303 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3306 egrep "$file_magic_regex" > /dev/null; then
3308 else
3309 cat <<EOF 1>&2
3311 *** Warning: the command libtool uses to detect shared libraries,
3312 *** $file_magic_cmd, produces output that libtool cannot recognize.
3313 *** The result is that libtool may fail to recognize shared libraries
3314 *** as such. This will affect the creation of libtool libraries that
3315 *** depend on shared libraries, but programs linked with such libtool
3316 *** libraries will work regardless of this problem. Nevertheless, you
3317 *** may want to report the problem to your system manager and/or to
3318 *** bug-libtool@gnu.org
3321 fi ;;
3322 esac
3324 break
3326 done
3327 IFS="$ac_save_ifs"
3328 MAGIC_CMD="$ac_save_MAGIC_CMD"
3330 esac
3333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3334 if test -n "$MAGIC_CMD"; then
3335 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3336 echo "${ECHO_T}$MAGIC_CMD" >&6
3337 else
3338 echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3342 if test -z "$lt_cv_path_MAGIC_CMD"; then
3343 if test -n "$ac_tool_prefix"; then
3344 echo "$as_me:$LINENO: checking for file" >&5
3345 echo $ECHO_N "checking for file... $ECHO_C" >&6
3346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 case $MAGIC_CMD in
3351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3353 ?:/*)
3354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3357 ac_save_MAGIC_CMD="$MAGIC_CMD"
3358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3359 ac_dummy="/usr/bin:$PATH"
3360 for ac_dir in $ac_dummy; do
3361 test -z "$ac_dir" && ac_dir=.
3362 if test -f $ac_dir/file; then
3363 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3364 if test -n "$file_magic_test_file"; then
3365 case $deplibs_check_method in
3366 "file_magic "*)
3367 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3370 egrep "$file_magic_regex" > /dev/null; then
3372 else
3373 cat <<EOF 1>&2
3375 *** Warning: the command libtool uses to detect shared libraries,
3376 *** $file_magic_cmd, produces output that libtool cannot recognize.
3377 *** The result is that libtool may fail to recognize shared libraries
3378 *** as such. This will affect the creation of libtool libraries that
3379 *** depend on shared libraries, but programs linked with such libtool
3380 *** libraries will work regardless of this problem. Nevertheless, you
3381 *** may want to report the problem to your system manager and/or to
3382 *** bug-libtool@gnu.org
3385 fi ;;
3386 esac
3388 break
3390 done
3391 IFS="$ac_save_ifs"
3392 MAGIC_CMD="$ac_save_MAGIC_CMD"
3394 esac
3397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3398 if test -n "$MAGIC_CMD"; then
3399 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3400 echo "${ECHO_T}$MAGIC_CMD" >&6
3401 else
3402 echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3406 else
3407 MAGIC_CMD=:
3413 esac
3415 if test -n "$ac_tool_prefix"; then
3416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_prog_RANLIB+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$RANLIB"; then
3424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3442 RANLIB=$ac_cv_prog_RANLIB
3443 if test -n "$RANLIB"; then
3444 echo "$as_me:$LINENO: result: $RANLIB" >&5
3445 echo "${ECHO_T}$RANLIB" >&6
3446 else
3447 echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6
3452 if test -z "$ac_cv_prog_RANLIB"; then
3453 ac_ct_RANLIB=$RANLIB
3454 # Extract the first word of "ranlib", so it can be a program name with args.
3455 set dummy ranlib; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 if test -n "$ac_ct_RANLIB"; then
3462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_ac_ct_RANLIB="ranlib"
3472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3475 done
3476 done
3478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3482 if test -n "$ac_ct_RANLIB"; then
3483 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3484 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3485 else
3486 echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3490 RANLIB=$ac_ct_RANLIB
3491 else
3492 RANLIB="$ac_cv_prog_RANLIB"
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}strip; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_STRIP+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$STRIP"; then
3504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3522 STRIP=$ac_cv_prog_STRIP
3523 if test -n "$STRIP"; then
3524 echo "$as_me:$LINENO: result: $STRIP" >&5
3525 echo "${ECHO_T}$STRIP" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3532 if test -z "$ac_cv_prog_STRIP"; then
3533 ac_ct_STRIP=$STRIP
3534 # Extract the first word of "strip", so it can be a program name with args.
3535 set dummy strip; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541 if test -n "$ac_ct_STRIP"; then
3542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_STRIP="strip"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3558 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3562 if test -n "$ac_ct_STRIP"; then
3563 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3564 echo "${ECHO_T}$ac_ct_STRIP" >&6
3565 else
3566 echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3570 STRIP=$ac_ct_STRIP
3571 else
3572 STRIP="$ac_cv_prog_STRIP"
3576 # Check for any special flags to pass to ltconfig.
3577 libtool_flags="--cache-file=$cache_file"
3578 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3579 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3580 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3581 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3582 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3585 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3586 if test "${enable_libtool_lock+set}" = set; then
3587 enableval="$enable_libtool_lock"
3590 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3591 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3594 # Check whether --with-pic or --without-pic was given.
3595 if test "${with_pic+set}" = set; then
3596 withval="$with_pic"
3597 pic_mode="$withval"
3598 else
3599 pic_mode=default
3601 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3602 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3604 # Some flags need to be propagated to the compiler or linker for good
3605 # libtool support.
3606 case $host in
3607 *-*-irix6*)
3608 # Find out which ABI we are using.
3609 echo '#line 3609 "configure"' > conftest.$ac_ext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611 (eval $ac_compile) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; then
3615 if test "$lt_cv_prog_gnu_ld" = yes; then
3616 case `/usr/bin/file conftest.$ac_objext` in
3617 *32-bit*)
3618 LD="${LD-ld} -melf32bsmip"
3620 *N32*)
3621 LD="${LD-ld} -melf32bmipn32"
3623 *64-bit*)
3624 LD="${LD-ld} -melf64bmip"
3626 esac
3627 else
3628 case `/usr/bin/file conftest.$ac_objext` in
3629 *32-bit*)
3630 LD="${LD-ld} -32"
3632 *N32*)
3633 LD="${LD-ld} -n32"
3635 *64-bit*)
3636 LD="${LD-ld} -64"
3638 esac
3641 rm -rf conftest*
3644 ia64-*-hpux*)
3645 # Find out which ABI we are using.
3646 echo 'int i;' > conftest.$ac_ext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; then
3652 case "`/usr/bin/file conftest.o`" in
3653 *ELF-32*)
3654 HPUX_IA64_MODE="32"
3656 *ELF-64*)
3657 HPUX_IA64_MODE="64"
3659 esac
3661 rm -rf conftest*
3664 *-*-sco3.2v5*)
3665 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3666 SAVE_CFLAGS="$CFLAGS"
3667 CFLAGS="$CFLAGS -belf"
3668 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3669 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3670 if test "${lt_cv_cc_needs_belf+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681 cat >conftest.$ac_ext <<_ACEOF
3682 #line $LINENO "configure"
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3690 main ()
3694 return 0;
3696 _ACEOF
3697 rm -f conftest.$ac_objext conftest$ac_exeext
3698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3699 (eval $ac_link) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } &&
3703 { ac_try='test -s conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 lt_cv_cc_needs_belf=yes
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 lt_cv_cc_needs_belf=no
3716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3725 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3726 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3727 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3728 CFLAGS="$SAVE_CFLAGS"
3733 esac
3736 # Save cache, so that ltconfig can load it
3737 cat >confcache <<\_ACEOF
3738 # This file is a shell script that caches the results of configure
3739 # tests run on this system so they can be shared between configure
3740 # scripts and configure runs, see configure's option --config-cache.
3741 # It is not useful on other systems. If it contains results you don't
3742 # want to keep, you may remove or edit it.
3744 # config.status only pays attention to the cache file if you give it
3745 # the --recheck option to rerun configure.
3747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3749 # following values.
3751 _ACEOF
3753 # The following way of writing the cache mishandles newlines in values,
3754 # but we know of no workaround that is simple, portable, and efficient.
3755 # So, don't put newlines in cache variables' values.
3756 # Ultrix sh set writes to stderr and can't be redirected directly,
3757 # and sets the high bit in the cache file unless we assign to the vars.
3759 (set) 2>&1 |
3760 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3761 *ac_space=\ *)
3762 # `set' does not quote correctly, so add quotes (double-quote
3763 # substitution turns \\\\ into \\, and sed turns \\ into \).
3764 sed -n \
3765 "s/'/'\\\\''/g;
3766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3769 # `set' quotes correctly as required by POSIX, so do not add quotes.
3770 sed -n \
3771 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3773 esac;
3775 sed '
3776 t clear
3777 : clear
3778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3779 t end
3780 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3781 : end' >>confcache
3782 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3783 if test -w $cache_file; then
3784 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3785 cat confcache >$cache_file
3786 else
3787 echo "not updating unwritable cache $cache_file"
3790 rm -f confcache
3792 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3793 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3794 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3795 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3796 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3797 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3798 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3799 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3800 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3801 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3802 echo "$as_me: error: libtool configure failed" >&2;}
3803 { (exit 1); exit 1; }; }
3805 # Reload cache, that may have been modified by ltconfig
3806 if test -r "$cache_file"; then
3807 # Some versions of bash will fail to source /dev/null (special
3808 # files actually), so we avoid doing that.
3809 if test -f "$cache_file"; then
3810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3811 echo "$as_me: loading cache $cache_file" >&6;}
3812 case $cache_file in
3813 [\\/]* | ?:[\\/]* ) . $cache_file;;
3814 *) . ./$cache_file;;
3815 esac
3817 else
3818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3819 echo "$as_me: creating cache $cache_file" >&6;}
3820 >$cache_file
3824 # This can be used to rebuild libtool when needed
3825 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3827 # Always use our own libtool.
3828 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3830 # Redirect the config.log output again, so that the ltconfig log is not
3831 # clobbered by the next message.
3832 exec 5>>./config.log
3840 user_bfd_gas=
3841 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
3842 if test "${enable_bfd_assembler+set}" = set; then
3843 enableval="$enable_bfd_assembler"
3844 case "${enableval}" in
3845 yes) need_bfd=yes user_bfd_gas=yes ;;
3846 no) user_bfd_gas=no ;;
3847 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
3848 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
3849 { (exit 1); exit 1; }; } ;;
3850 esac
3851 fi; # Check whether --enable-targets or --disable-targets was given.
3852 if test "${enable_targets+set}" = set; then
3853 enableval="$enable_targets"
3854 case "${enableval}" in
3855 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3856 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3857 { (exit 1); exit 1; }; }
3859 no) enable_targets= ;;
3860 *) enable_targets=$enableval ;;
3861 esac
3862 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3863 if test "${enable_commonbfdlib+set}" = set; then
3864 enableval="$enable_commonbfdlib"
3865 case "${enableval}" in
3866 yes) commonbfdlib=true ;;
3867 no) commonbfdlib=false ;;
3868 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3869 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3870 { (exit 1); exit 1; }; } ;;
3871 esac
3873 using_cgen=no
3875 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3876 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3877 if test "${enable_build_warnings+set}" = set; then
3878 enableval="$enable_build_warnings"
3879 case "${enableval}" in
3880 yes) ;;
3881 no) build_warnings="-w";;
3882 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3883 build_warnings="${build_warnings} ${t}";;
3884 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3885 build_warnings="${t} ${build_warnings}";;
3886 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3887 esac
3888 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3889 echo "Setting warning flags = $build_warnings" 6>&1
3891 fi; WARN_CFLAGS=""
3892 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3893 WARN_CFLAGS="${build_warnings}"
3897 # Generate a header file
3898 ac_config_headers="$ac_config_headers config.h:config.in"
3901 # If we are on a DOS filesystem, we must use gdb.ini rather than
3902 # .gdbinit.
3903 case "${host}" in
3904 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
3905 GDBINIT="gdb.ini"
3906 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
3910 GDBINIT=".gdbinit"
3911 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
3914 esac
3917 te_file=generic
3919 # Makefile target for installing gas in $(tooldir)/bin.
3920 install_tooldir=install-exec-tooldir
3922 canon_targets=""
3923 all_targets=no
3924 if test -n "$enable_targets" ; then
3925 for t in `echo $enable_targets | sed 's/,/ /g'`; do
3926 if test $t = "all"; then
3927 all_targets=yes
3928 continue
3930 result=`$ac_config_sub $t 2>/dev/null`
3931 if test -n "$result" ; then
3932 canon_targets="$canon_targets $result"
3933 # else
3934 # # Permit "all", etc. We don't support it yet though.
3935 # canon_targets="$canon_targets $t"
3937 done
3938 _gas_uniq_list="$canon_targets"
3939 _gas_uniq_newlist=""
3940 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3941 case $_gas_uniq_i in
3942 _gas_uniq_dummy) ;;
3943 *) case " $_gas_uniq_newlist " in
3944 *" $_gas_uniq_i "*) ;;
3945 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3946 esac ;;
3947 esac
3948 done
3949 canon_targets=$_gas_uniq_newlist
3953 emulations=""
3955 for this_target in $target $canon_targets ; do
3957 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
3959 # check for architecture variants
3960 arch=
3961 endian=
3962 case ${cpu} in
3963 am33_2.0) cpu_type=mn10300 endian=little ;;
3964 alpha*) cpu_type=alpha ;;
3965 arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
3966 arm*|xscale*|strongarm*) cpu_type=arm endian=little ;;
3967 c4x*) cpu_type=tic4x ;;
3968 hppa*) cpu_type=hppa ;;
3969 i[3-7]86) cpu_type=i386 arch=i386;;
3970 x86_64) cpu_type=i386 arch=x86_64;;
3971 ia64) cpu_type=ia64 ;;
3972 ip2k) cpu_type=ip2k endian=big ;;
3973 iq2000) cpu_type=iq2000 endian=big ;;
3974 m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
3975 m680[012346]0) cpu_type=m68k ;;
3976 m68008) cpu_type=m68k ;;
3977 m683??) cpu_type=m68k ;;
3978 m5200) cpu_type=m68k ;;
3979 m8*) cpu_type=m88k ;;
3980 mips*el) cpu_type=mips endian=little ;;
3981 mips*) cpu_type=mips endian=big ;;
3982 or32*) cpu_type=or32 endian=big ;;
3983 pjl*) cpu_type=pj endian=little ;;
3984 pj*) cpu_type=pj endian=big ;;
3985 powerpc*le*) cpu_type=ppc endian=little ;;
3986 powerpc*) cpu_type=ppc endian=big ;;
3987 rs6000*) cpu_type=ppc ;;
3988 s390x*) cpu_type=s390 arch=s390x ;;
3989 s390*) cpu_type=s390 arch=s390 ;;
3990 sh5*) cpu_type=sh64 endian=big ;;
3991 sh5le*) cpu_type=sh64 endian=little ;;
3992 sh64*) cpu_type=sh64 endian=big ;;
3993 sh64le*) cpu_type=sh64 endian=little ;;
3994 sh*le) cpu_type=sh endian=little ;;
3995 sh*) cpu_type=sh endian=big ;;
3996 sparclite*) cpu_type=sparc arch=sparclite ;;
3997 sparclet*) cpu_type=sparc arch=sparclet ;;
3998 sparc64*) cpu_type=sparc arch=v9-64 ;;
3999 sparc86x*) cpu_type=sparc arch=sparc86x ;;
4000 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
4001 v850*) cpu_type=v850 ;;
4002 xtensa*) cpu_type=xtensa arch=xtensa ;;
4003 m32r) cpu_type=m32r target_cpu=m32r endian=big ;;
4004 m32rle) cpu_type=m32r target_cpu=m32r endian=little ;;
4005 *) cpu_type=${cpu} ;;
4006 esac
4008 if test ${this_target} = $target ; then
4009 target_cpu_type=${cpu_type}
4010 elif test ${target_cpu_type} != ${cpu_type} ; then
4011 continue
4014 generic_target=${cpu_type}-$vendor-$os
4015 dev=no
4016 bfd_gas=no
4017 em=generic
4019 # assign object format
4020 case ${generic_target} in
4021 a29k-*-coff) fmt=coff ;;
4022 a29k-amd-udi) fmt=coff ;;
4023 a29k-amd-ebmon) fmt=coff ;;
4024 a29k-nyu-sym1) fmt=coff ;;
4025 a29k-*-rtems*) fmt=coff ;;
4026 a29k-*-vxworks*) fmt=coff ;;
4028 alpha*-*-*vms*) fmt=evax ;;
4029 alpha*-*-netware*) fmt=ecoff ;;
4030 alpha*-*-osf*) fmt=ecoff ;;
4031 alpha*-*-linuxecoff*) fmt=ecoff ;;
4032 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
4033 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
4034 alpha*-*-openbsd*) fmt=elf em=obsd ;;
4036 # cpu_type for am33_2.0 is set to mn10300
4037 mn10300-*-linux*) fmt=elf bfd_gas=yes em=linux ;;
4039 arc-*-elf*) fmt=elf ;;
4041 arm-*-aout) fmt=aout ;;
4042 arm-*-coff | thumb-*-coff) fmt=coff ;;
4043 arm-*-rtems* | thumb-*-rtems*) fmt=elf ;;
4044 arm-*-elf | thumb-*-elf) fmt=elf ;;
4045 arm-*-kaos*) fmt=elf ;;
4046 arm*-*-conix*) fmt=elf ;;
4047 arm-*-linux*aout*) fmt=aout em=linux ;;
4048 arm*-*-linux-gnu*) fmt=elf em=linux ;;
4049 arm*-*-uclinux*) fmt=elf em=linux ;;
4050 arm-*-netbsdelf*) fmt=elf em=nbsd ;;
4051 arm-*-*n*bsd*) fmt=aout em=nbsd ;;
4052 arm-**-nto*) fmt=elf ;;
4053 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
4054 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
4055 arm-wince-pe | arm-*-wince) fmt=coff em=wince-pe ;;
4056 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
4057 arm-*-riscix*) fmt=aout em=riscix ;;
4059 avr-*-*) fmt=elf ;;
4061 cris-*-linux-gnu*) fmt=multi bfd_gas=yes em=linux ;;
4062 cris-*-*) fmt=multi bfd_gas=yes ;;
4064 d10v-*-*) fmt=elf ;;
4065 d30v-*-*) fmt=elf ;;
4066 dlx-*-*) fmt=elf ;;
4068 fr30-*-*) fmt=elf ;;
4069 frv-*-*) fmt=elf ;;
4071 hppa-*-linux*) case ${cpu} in
4072 hppa*64*) fmt=elf em=hppalinux64;;
4073 hppa*) fmt=elf em=linux;;
4074 esac ;;
4075 hppa-*-*elf*) fmt=elf em=hppa ;;
4076 hppa-*-lites*) fmt=elf em=hppa ;;
4077 hppa-*-netbsd*) fmt=elf em=nbsd ;;
4078 hppa-*-openbsd*) fmt=elf em=hppa ;;
4079 hppa-*-osf*) fmt=som em=hppa ;;
4080 hppa-*-rtems*) fmt=elf em=hppa ;;
4081 hppa-*-hpux11*) case ${cpu} in
4082 hppa*64*) fmt=elf em=hppa64 ;;
4083 hppa*) fmt=som em=hppa ;;
4084 esac ;;
4085 hppa-*-hpux*) fmt=som em=hppa ;;
4086 hppa-*-mpeix*) fmt=som em=hppa ;;
4087 hppa-*-bsd*) fmt=som em=hppa ;;
4088 hppa-*-hiux*) fmt=som em=hppa ;;
4090 h8300-*-rtems*) fmt=coff ;;
4091 h8300-*-coff) fmt=coff ;;
4092 h8300-*-elf) fmt=elf ;;
4093 h8500-*-rtems*) fmt=coff ;;
4094 h8500-*-coff) fmt=coff ;;
4096 i370-*-elf* | i370-*-linux*) fmt=elf ;;
4097 i386-ibm-aix*) fmt=coff em=i386aix ;;
4098 i386-sequent-bsd*) fmt=aout em=dynix ;;
4099 i386-*-beospe*) fmt=coff em=pe ;;
4100 i386-*-beos*) fmt=elf ;;
4101 i386-*-coff) fmt=coff ;;
4102 i386-*-elf) fmt=elf ;;
4103 i386-*-kaos*) fmt=elf ;;
4104 i386-*-bsd*) fmt=aout em=386bsd ;;
4105 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
4106 i386-*-netbsdpe*) fmt=coff em=pe ;;
4107 i386-*-netbsd*-gnu* | \
4108 i386-*-knetbsd*-gnu | \
4109 i386-*-netbsdelf*) fmt=elf em=nbsd ;;
4110 i386-*-*n*bsd*) case ${cpu} in
4111 x86_64) fmt=elf em=nbsd ;;
4112 *) fmt=aout em=nbsd ;;
4113 esac ;;
4114 i386-*-linux*aout*) fmt=aout em=linux ;;
4115 i386-*-linux*oldld) fmt=aout em=linux ;;
4116 i386-*-linux*coff*) fmt=coff em=linux ;;
4117 i386-*-linux-gnu*) fmt=elf em=linux ;;
4118 x86_64-*-linux-gnu*) fmt=elf em=linux ;;
4119 i386-*-lynxos*) fmt=coff em=lynx ;;
4120 i386-*-sysv[45]*) fmt=elf ;;
4121 i386-*-solaris*) fmt=elf ;;
4122 i386-*-freebsdaout*) fmt=aout em=386bsd ;;
4123 i386-*-freebsd[12].*) fmt=aout em=386bsd ;;
4124 i386-*-freebsd[12]) fmt=aout em=386bsd ;;
4125 i386-*-freebsd* | i386-*-kfreebsd*-gnu)
4126 fmt=elf em=freebsd ;;
4127 i386-*-sysv*) fmt=coff ;;
4128 i386-*-sco3.2v5*coff) fmt=coff ;;
4129 i386-*-isc*) fmt=coff ;;
4130 i386-*-sco3.2v5*) fmt=elf
4131 if test ${this_target} = $target; then
4133 cat >>confdefs.h <<\_ACEOF
4134 #define SCO_ELF 1
4135 _ACEOF
4137 fi ;;
4138 i386-*-sco3.2*) fmt=coff ;;
4139 i386-*-vsta) fmt=aout ;;
4140 i386-*-msdosdjgpp* \
4141 | i386-*-go32* \
4142 | i386-go32-rtems*) fmt=coff em=go32
4144 cat >>confdefs.h <<\_ACEOF
4145 #define STRICTCOFF 1
4146 _ACEOF
4148 i386-*-rtemself*) fmt=elf ;;
4149 i386-*-rtemscoff*) fmt=coff ;;
4150 i386-*-rtems*) fmt=elf ;;
4151 i386-*-gnu*) fmt=elf ;;
4152 i386-*-mach*) fmt=aout em=mach ;;
4153 i386-*-msdos*) fmt=aout ;;
4154 i386-*-moss*) fmt=elf ;;
4155 i386-*-pe) fmt=coff em=pe ;;
4156 i386-*-cygwin*) fmt=coff em=pe ;;
4157 i386-*-interix*) fmt=coff em=interix ;;
4158 i386-*-mingw32*) fmt=coff em=pe ;;
4159 i386-*-nto-qnx*) fmt=elf ;;
4160 i386-*-*nt*) fmt=coff em=pe ;;
4161 i386-*-chaos) fmt=elf ;;
4163 i860-*-*) fmt=elf endian=little
4164 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4165 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} ;;
4166 i960-*-bout) fmt=bout ;;
4167 i960-*-coff) fmt=coff em=ic960 ;;
4168 i960-*-rtems*) fmt=coff em=ic960 ;;
4169 i960-*-nindy*) fmt=bout ;;
4170 i960-*-vxworks5.0) fmt=bout ;;
4171 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
4172 i960-*-vxworks*) fmt=bout ;;
4173 i960-*-elf*) fmt=elf ;;
4175 ia64-*-elf*) fmt=elf ;;
4176 ia64-*-aix*) fmt=elf em=ia64aix ;;
4177 ia64-*-linux-gnu*) fmt=elf em=linux ;;
4178 ia64-*-hpux*) fmt=elf em=hpux ;;
4179 ia64-*-netbsd*) fmt=elf em=nbsd ;;
4181 ip2k-*-*) fmt=elf ;;
4183 iq2000-*-elf) fmt=elf bfd_gas=yes ;;
4185 m32r-*-elf*) fmt=elf ;;
4186 m32r-*-linux*) fmt=elf em=linux;;
4188 m68hc11-*-* | m6811-*-*) fmt=elf ;;
4189 m68hc12-*-* | m6812-*-*) fmt=elf ;;
4191 m68k-*-vxworks*) fmt=aout em=sun3 ;;
4192 m68k-ericsson-ose) fmt=aout em=sun3 ;;
4193 m68k-*-sunos*) fmt=aout em=sun3 ;;
4194 m68k-motorola-sysv*) fmt=coff em=delta ;;
4195 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
4196 m68k-apollo-*) fmt=coff em=apollo ;;
4197 m68k-*-elf*) fmt=elf ;;
4198 m68k-*-sysv4*) fmt=elf em=svr4 ;;
4199 m68k-*-sysv*) fmt=coff ;;
4200 m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;;
4201 m68k-*-rtems*) fmt=elf ;;
4202 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
4203 m68k-*-linux*aout*) fmt=aout em=linux ;;
4204 m68k-*-linux-gnu*) fmt=elf em=linux ;;
4205 m68k-*-gnu*) fmt=elf ;;
4206 m68k-*-lynxos*) fmt=coff em=lynx ;;
4207 m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
4208 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4209 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4210 m68k-apple-aux*) fmt=coff em=aux ;;
4211 m68k-*-psos*) fmt=elf em=psos;;
4213 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
4214 m88k-*-coff*) fmt=coff ;;
4216 mcore-*-elf) fmt=elf ;;
4217 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
4219 # don't change em like *-*-bsd does
4220 mips-dec-openbsd*) fmt=elf endian=little ;;
4221 mips-dec-bsd*) fmt=aout endian=little ;;
4222 mips-sony-bsd*) fmt=ecoff ;;
4223 mips-*-bsd*)
4224 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4225 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4226 { (exit 1); exit 1; }; } ;;
4227 mips-*-ultrix*) fmt=ecoff endian=little ;;
4228 mips-*-osf*) fmt=ecoff endian=little ;;
4229 mips-*-ecoff*) fmt=ecoff ;;
4230 mips-*-pe*) fmt=coff endian=little em=pe ;;
4231 mips-*-irix6*) fmt=elf em=irix ;;
4232 mips-*-irix5*) fmt=elf em=irix ;;
4233 mips-*-irix*) fmt=ecoff em=irix ;;
4234 mips-*-lnews*) fmt=ecoff em=lnews ;;
4235 mips-*-riscos*) fmt=ecoff ;;
4236 mips*-*-linux*) fmt=elf em=tmips ;;
4237 mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
4238 mips-*-sysv*) fmt=ecoff ;;
4239 mips-*-elf* | mips-*-rtems*) fmt=elf ;;
4240 mips-*-netbsd*) fmt=elf ;;
4241 mips-*-openbsd*) fmt=elf ;;
4243 mmix-*-*) fmt=elf ;;
4244 mn10200-*-*) fmt=elf ;;
4245 mn10300-*-*) fmt=elf ;;
4246 msp430-*-*) fmt=elf ;;
4247 openrisc-*-*) fmt=elf ;;
4248 or32-*-rtems*) fmt=coff ;;
4249 or32-*-coff) fmt=coff ;;
4250 or32-*-elf) fmt=elf ;;
4251 pj*) fmt=elf ;;
4253 ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
4254 ppc-*-winnt*) fmt=coff em=pe ;;
4255 ppc-*-aix5.[01]) fmt=coff em=aix5 ;;
4256 ppc-*-aix5.*) fmt=coff em=aix5
4258 cat >>confdefs.h <<\_ACEOF
4259 #define AIX_WEAK_SUPPORT 1
4260 _ACEOF
4263 ppc-*-aix*) fmt=coff ;;
4264 ppc-*-beos*) fmt=coff ;;
4265 ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
4266 ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
4267 ppc-*-linux-gnu*) fmt=elf em=linux
4268 case "$endian" in
4269 big) ;;
4270 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4271 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4272 { (exit 1); exit 1; }; } ;;
4273 esac ;;
4274 ppc-*-solaris*) fmt=elf
4275 if test ${this_target} = $target; then
4277 cat >>confdefs.h <<\_ACEOF
4278 #define TARGET_SOLARIS_COMMENT 1
4279 _ACEOF
4282 if test x${endian} = xbig; then
4283 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4284 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4285 { (exit 1); exit 1; }; }
4286 fi ;;
4287 ppc-*-rtems*) fmt=elf ;;
4288 ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;;
4289 ppc-*-netware*) fmt=elf em=ppcnw ;;
4290 ppc-**-nto*) fmt=elf ;;
4291 ppc-*-kaos*) fmt=elf ;;
4293 s390x-*-linux-gnu*) fmt=elf em=linux ;;
4294 s390-*-linux-gnu*) fmt=elf em=linux ;;
4296 sh*-*-linux*) fmt=elf em=linux
4297 case ${cpu} in
4298 sh*eb) endian=big ;;
4299 *) endian=little ;;
4300 esac ;;
4301 sh5*-*-netbsd*) fmt=elf em=nbsd ;;
4302 sh64*-*-netbsd*) fmt=elf em=nbsd ;;
4303 sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
4304 sh-*-elf*) fmt=elf ;;
4305 sh-*-coff*) fmt=coff ;;
4306 sh-*-nto*) fmt=elf ;;
4307 sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
4308 sh-*-rtemself*) fmt=elf ;;
4309 sh-*-rtems*) fmt=coff ;;
4310 sh-*-kaos*) fmt=elf ;;
4311 shle*-*-kaos*) fmt=elf ;;
4312 sh64-*-elf*) fmt=elf ;;
4314 ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
4315 ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
4316 ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
4317 ns32k-*-*n*bsd*) fmt=aout em=nbsd532 ;;
4319 sparc-*-rtemsaout*) fmt=aout ;;
4320 sparc-*-rtemself*) fmt=elf ;;
4321 sparc-*-rtems*) fmt=elf ;;
4322 sparc-*-sunos4*) fmt=aout em=sun3 ;;
4323 sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
4324 sparc-*-coff) fmt=coff ;;
4325 sparc-*-linux*aout*) fmt=aout em=linux ;;
4326 sparc-*-linux-gnu*) fmt=elf em=linux ;;
4327 sparc-*-lynxos*) fmt=coff em=lynx ;;
4328 sparc-fujitsu-none) fmt=aout ;;
4329 sparc-*-elf) fmt=elf ;;
4330 sparc-*-sysv4*) fmt=elf ;;
4331 sparc-*-solaris*) fmt=elf ;;
4332 sparc-*-netbsdelf*) fmt=elf em=nbsd ;;
4333 sparc-*-*n*bsd*) case ${cpu} in
4334 sparc64) fmt=elf em=nbsd ;;
4335 *) fmt=aout em=nbsd ;;
4336 esac ;;
4337 strongarm-*-coff) fmt=coff ;;
4338 strongarm-*-elf) fmt=elf ;;
4339 strongarm-*-kaos*) fmt=elf ;;
4340 xscale-*-coff) fmt=coff ;;
4341 xscale-*-elf) fmt=elf ;;
4343 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
4344 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
4345 tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;;
4346 tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;;
4347 tic80-*-*) fmt=coff ;;
4349 v850-*-*) fmt=elf ;;
4350 v850e-*-*) fmt=elf ;;
4351 v850ea-*-*) fmt=elf ;;
4353 vax-*-netbsdelf*) fmt=elf em=nbsd ;;
4354 vax-*-netbsd*) fmt=aout em=nbsd ;;
4355 vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
4356 vax-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
4357 vax-*-vms) fmt=vms ;;
4359 w65-*-*) fmt=coff ;;
4361 xstormy16-*-*) fmt=elf ;;
4363 xtensa-*-*) fmt=elf ;;
4365 z8k-*-coff | z8k-*-sim) fmt=coff ;;
4367 *-*-aout | *-*-scout) fmt=aout ;;
4368 *-*-freebsd* | *-*-kfreebsd*-gnu) fmt=elf em=freebsd ;;
4369 *-*-nindy*) fmt=bout ;;
4370 *-*-bsd*) fmt=aout em=sun3 ;;
4371 *-*-generic) fmt=generic ;;
4372 *-*-xray | *-*-hms) fmt=coff ;;
4373 *-*-sim) fmt=coff ;;
4374 *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
4375 *-*-aros*) fmt=elf em=linux bfd_gas=yes ;;
4376 *-*-vxworks | *-*-windiss) fmt=elf ;;
4377 *-*-netware) fmt=elf ;;
4378 esac
4380 if test ${this_target} = $target ; then
4381 endian_def=
4382 if test x${endian} = xbig; then
4383 endian_def=1
4384 elif test x${endian} = xlittle; then
4385 endian_def=0
4387 if test x${endian_def} != x; then
4389 cat >>confdefs.h <<_ACEOF
4390 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4391 _ACEOF
4396 case ${cpu_type}-${fmt} in
4397 alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
4398 | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
4399 | *-elf | *-ecoff | *-som)
4400 bfd_gas=yes ;;
4401 esac
4403 # Other random stuff.
4405 case ${cpu_type} in
4406 mips)
4407 # Set mips_cpu to the name of the default CPU.
4408 case ${target_cpu} in
4409 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4410 mips_cpu=from-abi
4412 mipsisa32 | mipsisa32el)
4413 mips_cpu=mips32
4415 mipsisa32r2 | mipsisa32r2el)
4416 mips_cpu=mips32r2
4418 mipsisa64 | mipsisa64el)
4419 mips_cpu=mips64
4421 mipsisa64r2 | mipsisa64r2el)
4422 mips_cpu=mips64r2
4424 mipstx39 | mipstx39el)
4425 mips_cpu=r3900
4427 mips64vr | mips64vrel)
4428 mips_cpu=vr4100
4430 mipsisa32r2* | mipsisa64r2*)
4431 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4433 mips64* | mipsisa64* | mipsisa32*)
4434 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4437 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4438 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4439 { (exit 1); exit 1; }; }
4441 esac
4442 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4443 # binaries. It's a GNU extension that some OSes don't understand.
4444 # The value only matters on ELF targets.
4445 case ${target} in
4446 *-*-irix*)
4447 use_e_mips_abi_o32=0
4450 use_e_mips_abi_o32=1
4452 esac
4453 # Decide whether to generate 32-bit or 64-bit code by default.
4454 # Used to resolve -march=from-abi when an embedded ABI is selected.
4455 case ${target} in
4456 mips64*-*-* | mipsisa64*-*-*)
4457 mips_default_64bit=1
4460 mips_default_64bit=0
4462 esac
4463 # Decide which ABI to target by default.
4464 case ${target} in
4465 mips64*-linux* | mips-sgi-irix6*)
4466 mips_default_abi=N32_ABI
4468 mips*-linux*)
4469 mips_default_abi=O32_ABI
4472 mips_default_abi=NO_ABI
4474 esac
4476 cat >>confdefs.h <<_ACEOF
4477 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4478 _ACEOF
4481 cat >>confdefs.h <<_ACEOF
4482 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4483 _ACEOF
4486 cat >>confdefs.h <<_ACEOF
4487 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4488 _ACEOF
4491 cat >>confdefs.h <<_ACEOF
4492 #define MIPS_DEFAULT_ABI $mips_default_abi
4493 _ACEOF
4496 esac
4498 # Do we need the opcodes library?
4499 case ${cpu_type} in
4500 vax | i386 | tic30)
4504 need_opcodes=yes
4506 case "${enable_shared}" in
4507 yes) shared_opcodes=true ;;
4508 *opcodes*) shared_opcodes=true ;;
4509 *) shared_opcodes=false ;;
4510 esac
4511 if test "${shared_opcodes}" = "true"; then
4512 # A shared libopcodes must be linked against libbfd.
4513 need_bfd=yes
4516 esac
4518 # Any other special object files needed ?
4519 case ${cpu_type} in
4520 fr30 | ip2k | iq2000 | m32r | openrisc)
4521 using_cgen=yes
4524 frv)
4525 using_cgen=yes
4527 m68k)
4528 case ${extra_objects} in
4529 *m68k-parse.o*) ;;
4530 *) extra_objects="$extra_objects m68k-parse.o" ;;
4531 esac
4534 mips)
4535 echo ${extra_objects} | grep -s "itbl-parse.o"
4536 if test $? -ne 0 ; then
4537 extra_objects="$extra_objects itbl-parse.o"
4540 echo ${extra_objects} | grep -s "itbl-lex.o"
4541 if test $? -ne 0 ; then
4542 extra_objects="$extra_objects itbl-lex.o"
4545 echo ${extra_objects} | grep -s "itbl-ops.o"
4546 if test $? -ne 0 ; then
4547 extra_objects="$extra_objects itbl-ops.o"
4551 i386 | s390 | sparc)
4552 if test $this_target = $target ; then
4554 cat >>confdefs.h <<_ACEOF
4555 #define DEFAULT_ARCH "${arch}"
4556 _ACEOF
4561 xstormy16)
4562 using_cgen=yes
4565 xtensa)
4566 echo ${extra_objects} | grep -s "xtensa-relax.o"
4567 if test $? -ne 0 ; then
4568 extra_objects="$extra_objects xtensa-relax.o"
4574 esac
4576 if test $using_cgen = yes ; then
4577 case "x${extra_objects}" in
4578 *cgen.o*) ;;
4579 *) extra_objects="$extra_objects cgen.o" ;;
4580 esac
4583 # See if we really can support this configuration with the emulation code.
4585 if test $this_target = $target ; then
4586 primary_bfd_gas=$bfd_gas
4587 obj_format=$fmt
4588 te_file=$em
4590 if test $bfd_gas = no ; then
4591 # Can't support other configurations this way.
4592 break
4594 elif test $bfd_gas = no ; then
4595 # Can't support this configuration.
4596 break
4599 # From target name and format, produce a list of supported emulations.
4601 case ${generic_target}-${fmt} in
4602 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4603 mips*-*-linux*-*) case "$endian" in
4604 big) emulation="mipsbelf mipslelf mipself" ;;
4605 *) emulation="mipslelf mipsbelf mipself" ;;
4606 esac ;;
4607 mips-*-lnews*-ecoff) ;;
4608 mips-*-*-ecoff) case "$endian" in
4609 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4610 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4611 esac ;;
4612 mips-*-*-elf) case "$endian" in
4613 big) emulation="mipsbelf mipslelf mipself" ;;
4614 *) emulation="mipslelf mipsbelf mipself" ;;
4615 esac ;;
4616 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4617 # i386-pc-pe-coff != i386-pc-coff.
4618 i386-*-pe-coff) ;;
4619 # Uncommenting the next line will turn on support for i386 AOUT
4620 # for the default linux configuration
4621 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4623 i386-*-aout) emulation="i386aout" ;;
4624 i386-*-coff) emulation="i386coff" ;;
4625 i386-*-elf) emulation="i386elf" ;;
4627 # Always all formats. The first stated emulation becomes the default.
4628 cris-*-*aout*) emulation="crisaout criself" ;;
4629 cris-*-*) emulation="criself crisaout" ;;
4630 esac
4632 emulations="$emulations $emulation"
4634 done
4636 # Turn on all targets if possible
4637 if test ${all_targets} = "yes"; then
4638 case ${target_cpu_type} in
4639 i386)
4640 case ${obj_format} in
4641 aout)
4642 emulations="$emulations i386coff i386elf"
4644 coff)
4645 emulations="$emulations i386aout i386elf"
4647 elf)
4648 emulations="$emulations i386aout i386coff"
4650 esac
4652 esac
4655 # Assign floating point type. Most processors with FP support
4656 # IEEE FP. On those that don't support FP at all, usually IEEE
4657 # is emulated.
4658 case ${target_cpu} in
4659 vax | tahoe ) atof=${target_cpu} ;;
4660 pdp11) atof=vax ;;
4661 *) atof=ieee ;;
4662 esac
4664 case "${obj_format}" in
4665 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4666 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4667 { (exit 1); exit 1; }; } ;;
4668 esac
4670 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4671 cgen_cpu_prefix=""
4672 if test $using_cgen = yes ; then
4673 case ${target_cpu} in
4674 *) cgen_cpu_prefix=${target_cpu} ;;
4675 esac
4678 cat >>confdefs.h <<\_ACEOF
4679 #define USING_CGEN 1
4680 _ACEOF
4685 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4686 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4687 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4688 { (exit 1); exit 1; }; }
4691 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4692 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4693 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4694 { (exit 1); exit 1; }; }
4697 case ${user_bfd_gas}-${primary_bfd_gas} in
4698 yes-yes | no-no)
4699 # We didn't override user's choice.
4701 no-yes)
4702 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4703 echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
4705 no-preferred)
4706 primary_bfd_gas=no
4708 *-preferred)
4709 primary_bfd_gas=yes
4711 yes-*)
4712 primary_bfd_gas=yes
4715 # User specified nothing.
4717 esac
4719 # Some COFF configurations want these random other flags set.
4720 case ${obj_format} in
4721 coff)
4722 case ${target_cpu_type} in
4723 i386)
4724 cat >>confdefs.h <<\_ACEOF
4725 #define I386COFF 1
4726 _ACEOF
4728 m68k)
4729 cat >>confdefs.h <<\_ACEOF
4730 #define M68KCOFF 1
4731 _ACEOF
4733 m88k)
4734 cat >>confdefs.h <<\_ACEOF
4735 #define M88KCOFF 1
4736 _ACEOF
4738 esac
4740 esac
4742 # Getting this done right is going to be a bitch. Each configuration specified
4743 # with --enable-targets=... should be checked for environment, format, cpu, and
4744 # bfd_gas setting.
4746 # For each configuration, the necessary object file support code must be linked
4747 # in. This might be only one, it might be up to four. The necessary emulation
4748 # code needs to be provided, too.
4750 # And then there's "--enable-targets=all"....
4752 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4754 formats="${obj_format}"
4755 emfiles=""
4756 EMULATIONS=""
4757 _gas_uniq_list="$emulations"
4758 _gas_uniq_newlist=""
4759 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4760 case $_gas_uniq_i in
4761 _gas_uniq_dummy) ;;
4762 *) case " $_gas_uniq_newlist " in
4763 *" $_gas_uniq_i "*) ;;
4764 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4765 esac ;;
4766 esac
4767 done
4768 emulations=$_gas_uniq_newlist
4770 for em in . $emulations ; do
4771 case $em in
4772 .) continue ;;
4773 mipsbelf | mipslelf | mipself)
4774 fmt=elf file=mipself ;;
4775 mipsbecoff | mipslecoff | mipsecoff)
4776 fmt=ecoff file=mipsecoff ;;
4777 *coff)
4778 fmt=coff file=$em ;;
4779 *aout)
4780 fmt=aout file=$em ;;
4781 *elf)
4782 fmt=elf file=$em ;;
4783 esac
4784 formats="$formats $fmt"
4785 emfiles="$emfiles e-$file.o"
4786 EMULATIONS="$EMULATIONS &$em,"
4787 done
4788 _gas_uniq_list="$formats"
4789 _gas_uniq_newlist=""
4790 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4791 case $_gas_uniq_i in
4792 _gas_uniq_dummy) ;;
4793 *) case " $_gas_uniq_newlist " in
4794 *" $_gas_uniq_i "*) ;;
4795 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4796 esac ;;
4797 esac
4798 done
4799 formats=$_gas_uniq_newlist
4801 _gas_uniq_list="$emfiles"
4802 _gas_uniq_newlist=""
4803 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4804 case $_gas_uniq_i in
4805 _gas_uniq_dummy) ;;
4806 *) case " $_gas_uniq_newlist " in
4807 *" $_gas_uniq_i "*) ;;
4808 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4809 esac ;;
4810 esac
4811 done
4812 emfiles=$_gas_uniq_newlist
4814 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4815 for fmt in $formats ; do
4816 case $fmt in
4817 aout)
4818 cat >>confdefs.h <<\_ACEOF
4819 #define OBJ_MAYBE_AOUT 1
4820 _ACEOF
4822 bout)
4823 cat >>confdefs.h <<\_ACEOF
4824 #define OBJ_MAYBE_BOUT 1
4825 _ACEOF
4827 coff)
4828 cat >>confdefs.h <<\_ACEOF
4829 #define OBJ_MAYBE_COFF 1
4830 _ACEOF
4832 ecoff)
4833 cat >>confdefs.h <<\_ACEOF
4834 #define OBJ_MAYBE_ECOFF 1
4835 _ACEOF
4837 elf)
4838 cat >>confdefs.h <<\_ACEOF
4839 #define OBJ_MAYBE_ELF 1
4840 _ACEOF
4842 generic)
4843 cat >>confdefs.h <<\_ACEOF
4844 #define OBJ_MAYBE_GENERIC 1
4845 _ACEOF
4847 hp300)
4848 cat >>confdefs.h <<\_ACEOF
4849 #define OBJ_MAYBE_HP300 1
4850 _ACEOF
4852 ieee)
4853 cat >>confdefs.h <<\_ACEOF
4854 #define OBJ_MAYBE_IEEE 1
4855 _ACEOF
4857 som)
4858 cat >>confdefs.h <<\_ACEOF
4859 #define OBJ_MAYBE_SOM 1
4860 _ACEOF
4862 vms)
4863 cat >>confdefs.h <<\_ACEOF
4864 #define OBJ_MAYBE_VMS 1
4865 _ACEOF
4867 esac
4868 extra_objects="$extra_objects obj-$fmt.o"
4869 done
4870 obj_format=multi
4872 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
4873 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4874 # e-mips* has more than one emulation per file, e-i386* has just one at the
4875 # moment. If only one emulation is specified, then don't define
4876 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4877 case "${obj_format}${emfiles}" in
4878 multi* | *mips*)
4879 extra_objects="$extra_objects $emfiles"
4881 cat >>confdefs.h <<\_ACEOF
4882 #define USE_EMULATIONS 1
4883 _ACEOF
4885 esac
4889 cat >>confdefs.h <<_ACEOF
4890 #define EMULATIONS $EMULATIONS
4891 _ACEOF
4894 cat >>confdefs.h <<_ACEOF
4895 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
4896 _ACEOF
4899 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4900 yes-*-coff) need_bfd=yes ;;
4901 no-*-coff) need_bfd=yes
4903 cat >>confdefs.h <<\_ACEOF
4904 #define MANY_SEGMENTS 1
4905 _ACEOF
4907 esac
4909 reject_dev_configs=yes
4911 case ${reject_dev_configs}-${dev} in
4912 yes-yes) # Oops.
4913 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
4914 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
4915 { (exit 1); exit 1; }; }
4917 esac
4925 case "${primary_bfd_gas}" in
4926 yes)
4927 cat >>confdefs.h <<\_ACEOF
4928 #define BFD_ASSEMBLER 1
4929 _ACEOF
4931 need_bfd=yes ;;
4932 esac
4934 # do we need the opcodes library?
4935 case "${need_opcodes}" in
4936 yes)
4937 OPCODES_LIB=../opcodes/libopcodes.la
4939 esac
4941 case "${need_bfd}" in
4942 yes)
4943 BFDLIB=../bfd/libbfd.la
4944 BFDVER_H=../bfd/bfdver.h
4945 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
4947 esac
4956 cat >>confdefs.h <<_ACEOF
4957 #define TARGET_ALIAS "${target_alias}"
4958 _ACEOF
4961 cat >>confdefs.h <<_ACEOF
4962 #define TARGET_CANONICAL "${target}"
4963 _ACEOF
4966 cat >>confdefs.h <<_ACEOF
4967 #define TARGET_CPU "${target_cpu}"
4968 _ACEOF
4971 cat >>confdefs.h <<_ACEOF
4972 #define TARGET_VENDOR "${target_vendor}"
4973 _ACEOF
4976 cat >>confdefs.h <<_ACEOF
4977 #define TARGET_OS "${target_os}"
4978 _ACEOF
4981 ac_ext=c
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986 if test -n "$ac_tool_prefix"; then
4987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4989 echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4991 if test "${ac_cv_prog_CC+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 if test -n "$CC"; then
4995 ac_cv_prog_CC="$CC" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5008 done
5009 done
5013 CC=$ac_cv_prog_CC
5014 if test -n "$CC"; then
5015 echo "$as_me:$LINENO: result: $CC" >&5
5016 echo "${ECHO_T}$CC" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6
5023 if test -z "$ac_cv_prog_CC"; then
5024 ac_ct_CC=$CC
5025 # Extract the first word of "gcc", so it can be a program name with args.
5026 set dummy gcc; ac_word=$2
5027 echo "$as_me:$LINENO: checking for $ac_word" >&5
5028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 if test -n "$ac_ct_CC"; then
5033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_prog_ac_ct_CC="gcc"
5043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5046 done
5047 done
5051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5052 if test -n "$ac_ct_CC"; then
5053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5054 echo "${ECHO_T}$ac_ct_CC" >&6
5055 else
5056 echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6
5060 CC=$ac_ct_CC
5061 else
5062 CC="$ac_cv_prog_CC"
5065 if test -z "$CC"; then
5066 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5068 set dummy ${ac_tool_prefix}cc; ac_word=$2
5069 echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5071 if test "${ac_cv_prog_CC+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 if test -n "$CC"; then
5075 ac_cv_prog_CC="$CC" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_CC="${ac_tool_prefix}cc"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5088 done
5089 done
5093 CC=$ac_cv_prog_CC
5094 if test -n "$CC"; then
5095 echo "$as_me:$LINENO: result: $CC" >&5
5096 echo "${ECHO_T}$CC" >&6
5097 else
5098 echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6
5103 if test -z "$ac_cv_prog_CC"; then
5104 ac_ct_CC=$CC
5105 # Extract the first word of "cc", so it can be a program name with args.
5106 set dummy cc; ac_word=$2
5107 echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 if test -n "$ac_ct_CC"; then
5113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_CC="cc"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132 if test -n "$ac_ct_CC"; then
5133 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5134 echo "${ECHO_T}$ac_ct_CC" >&6
5135 else
5136 echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6
5140 CC=$ac_ct_CC
5141 else
5142 CC="$ac_cv_prog_CC"
5146 if test -z "$CC"; then
5147 # Extract the first word of "cc", so it can be a program name with args.
5148 set dummy cc; ac_word=$2
5149 echo "$as_me:$LINENO: checking for $ac_word" >&5
5150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151 if test "${ac_cv_prog_CC+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 if test -n "$CC"; then
5155 ac_cv_prog_CC="$CC" # Let the user override the test.
5156 else
5157 ac_prog_rejected=no
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5166 ac_prog_rejected=yes
5167 continue
5169 ac_cv_prog_CC="cc"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5173 done
5174 done
5176 if test $ac_prog_rejected = yes; then
5177 # We found a bogon in the path, so make sure we never use it.
5178 set dummy $ac_cv_prog_CC
5179 shift
5180 if test $# != 0; then
5181 # We chose a different compiler from the bogus one.
5182 # However, it has the same basename, so the bogon will be chosen
5183 # first if we set CC to just the basename; use the full file name.
5184 shift
5185 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5190 CC=$ac_cv_prog_CC
5191 if test -n "$CC"; then
5192 echo "$as_me:$LINENO: result: $CC" >&5
5193 echo "${ECHO_T}$CC" >&6
5194 else
5195 echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6
5200 if test -z "$CC"; then
5201 if test -n "$ac_tool_prefix"; then
5202 for ac_prog in cl
5204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_CC+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$CC"; then
5212 ac_cv_prog_CC="$CC" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5230 CC=$ac_cv_prog_CC
5231 if test -n "$CC"; then
5232 echo "$as_me:$LINENO: result: $CC" >&5
5233 echo "${ECHO_T}$CC" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5239 test -n "$CC" && break
5240 done
5242 if test -z "$CC"; then
5243 ac_ct_CC=$CC
5244 for ac_prog in cl
5246 # Extract the first word of "$ac_prog", so it can be a program name with args.
5247 set dummy $ac_prog; ac_word=$2
5248 echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 if test -n "$ac_ct_CC"; then
5254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_CC="$ac_prog"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5273 if test -n "$ac_ct_CC"; then
5274 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5275 echo "${ECHO_T}$ac_ct_CC" >&6
5276 else
5277 echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5281 test -n "$ac_ct_CC" && break
5282 done
5284 CC=$ac_ct_CC
5290 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5291 See \`config.log' for more details." >&5
5292 echo "$as_me: error: no acceptable C compiler found in \$PATH
5293 See \`config.log' for more details." >&2;}
5294 { (exit 1); exit 1; }; }
5296 # Provide some information about the compiler.
5297 echo "$as_me:$LINENO:" \
5298 "checking for C compiler version" >&5
5299 ac_compiler=`set X $ac_compile; echo $2`
5300 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5301 (eval $ac_compiler --version </dev/null >&5) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5306 (eval $ac_compiler -v </dev/null >&5) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }
5310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5311 (eval $ac_compiler -V </dev/null >&5) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5316 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5318 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5330 main ()
5332 #ifndef __GNUC__
5333 choke me
5334 #endif
5337 return 0;
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_compiler_gnu=yes
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_compiler_gnu=no
5359 rm -f conftest.$ac_objext conftest.$ac_ext
5360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5365 GCC=`test $ac_compiler_gnu = yes && echo yes`
5366 ac_test_CFLAGS=${CFLAGS+set}
5367 ac_save_CFLAGS=$CFLAGS
5368 CFLAGS="-g"
5369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5371 if test "${ac_cv_prog_cc_g+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 cat >conftest.$ac_ext <<_ACEOF
5375 #line $LINENO "configure"
5376 /* confdefs.h. */
5377 _ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5383 main ()
5387 return 0;
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -s conftest.$ac_objext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 (eval $ac_try) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5402 ac_cv_prog_cc_g=yes
5403 else
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 ac_cv_prog_cc_g=no
5409 rm -f conftest.$ac_objext conftest.$ac_ext
5411 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5412 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5413 if test "$ac_test_CFLAGS" = set; then
5414 CFLAGS=$ac_save_CFLAGS
5415 elif test $ac_cv_prog_cc_g = yes; then
5416 if test "$GCC" = yes; then
5417 CFLAGS="-g -O2"
5418 else
5419 CFLAGS="-g"
5421 else
5422 if test "$GCC" = yes; then
5423 CFLAGS="-O2"
5424 else
5425 CFLAGS=
5428 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5429 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5430 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433 ac_cv_prog_cc_stdc=no
5434 ac_save_CC=$CC
5435 cat >conftest.$ac_ext <<_ACEOF
5436 #line $LINENO "configure"
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <stdarg.h>
5443 #include <stdio.h>
5444 #include <sys/types.h>
5445 #include <sys/stat.h>
5446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5447 struct buf { int x; };
5448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5449 static char *e (p, i)
5450 char **p;
5451 int i;
5453 return p[i];
5455 static char *f (char * (*g) (char **, int), char **p, ...)
5457 char *s;
5458 va_list v;
5459 va_start (v,p);
5460 s = g (p, va_arg (v,int));
5461 va_end (v);
5462 return s;
5464 int test (int i, double x);
5465 struct s1 {int (*f) (int a);};
5466 struct s2 {int (*f) (double a);};
5467 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5468 int argc;
5469 char **argv;
5471 main ()
5473 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5475 return 0;
5477 _ACEOF
5478 # Don't try gcc -ansi; that turns off useful extensions and
5479 # breaks some systems' header files.
5480 # AIX -qlanglvl=ansi
5481 # Ultrix and OSF/1 -std1
5482 # HP-UX 10.20 and later -Ae
5483 # HP-UX older versions -Aa -D_HPUX_SOURCE
5484 # SVR4 -Xc -D__EXTENSIONS__
5485 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5487 CC="$ac_save_CC $ac_arg"
5488 rm -f conftest.$ac_objext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490 (eval $ac_compile) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try='test -s conftest.$ac_objext'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 (eval $ac_try) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5500 ac_cv_prog_cc_stdc=$ac_arg
5501 break
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 rm -f conftest.$ac_objext
5508 done
5509 rm -f conftest.$ac_ext conftest.$ac_objext
5510 CC=$ac_save_CC
5514 case "x$ac_cv_prog_cc_stdc" in
5515 x|xno)
5516 echo "$as_me:$LINENO: result: none needed" >&5
5517 echo "${ECHO_T}none needed" >&6 ;;
5519 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5520 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5521 CC="$CC $ac_cv_prog_cc_stdc" ;;
5522 esac
5524 # Some people use a C++ compiler to compile C. Since we use `exit',
5525 # in C++ we need to declare it. In case someone uses the same compiler
5526 # for both compiling C and C++ we need to have the C++ compiler decide
5527 # the declaration of exit, since it's the most demanding environment.
5528 cat >conftest.$ac_ext <<_ACEOF
5529 #ifndef __cplusplus
5530 choke me
5531 #endif
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -s conftest.$ac_objext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 for ac_declaration in \
5547 '#include <stdlib.h>' \
5548 'extern "C" void std::exit (int) throw (); using std::exit;' \
5549 'extern "C" void std::exit (int); using std::exit;' \
5550 'extern "C" void exit (int) throw ();' \
5551 'extern "C" void exit (int);' \
5552 'void exit (int);'
5554 cat >conftest.$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 #include <stdlib.h>
5562 $ac_declaration
5564 main ()
5566 exit (42);
5568 return 0;
5570 _ACEOF
5571 rm -f conftest.$ac_objext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573 (eval $ac_compile) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } &&
5577 { ac_try='test -s conftest.$ac_objext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 continue
5590 rm -f conftest.$ac_objext conftest.$ac_ext
5591 cat >conftest.$ac_ext <<_ACEOF
5592 #line $LINENO "configure"
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 $ac_declaration
5600 main ()
5602 exit (42);
5604 return 0;
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 break
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5625 rm -f conftest.$ac_objext conftest.$ac_ext
5626 done
5627 rm -f conftest*
5628 if test -n "$ac_declaration"; then
5629 echo '#ifdef __cplusplus' >>confdefs.h
5630 echo $ac_declaration >>confdefs.h
5631 echo '#endif' >>confdefs.h
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5639 rm -f conftest.$ac_objext conftest.$ac_ext
5640 ac_ext=c
5641 ac_cpp='$CPP $CPPFLAGS'
5642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647 for ac_prog in 'bison -y' byacc
5649 # Extract the first word of "$ac_prog", so it can be a program name with args.
5650 set dummy $ac_prog; ac_word=$2
5651 echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5653 if test "${ac_cv_prog_YACC+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 if test -n "$YACC"; then
5657 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666 ac_cv_prog_YACC="$ac_prog"
5667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5670 done
5671 done
5675 YACC=$ac_cv_prog_YACC
5676 if test -n "$YACC"; then
5677 echo "$as_me:$LINENO: result: $YACC" >&5
5678 echo "${ECHO_T}$YACC" >&6
5679 else
5680 echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5684 test -n "$YACC" && break
5685 done
5686 test -n "$YACC" || YACC="yacc"
5688 for ac_prog in flex lex
5690 # Extract the first word of "$ac_prog", so it can be a program name with args.
5691 set dummy $ac_prog; ac_word=$2
5692 echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694 if test "${ac_cv_prog_LEX+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697 if test -n "$LEX"; then
5698 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_LEX="$ac_prog"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5711 done
5712 done
5716 LEX=$ac_cv_prog_LEX
5717 if test -n "$LEX"; then
5718 echo "$as_me:$LINENO: result: $LEX" >&5
5719 echo "${ECHO_T}$LEX" >&6
5720 else
5721 echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6
5725 test -n "$LEX" && break
5726 done
5727 test -n "$LEX" || LEX=":"
5729 if test -z "$LEXLIB"
5730 then
5731 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5732 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5733 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 ac_check_lib_save_LIBS=$LIBS
5737 LIBS="-lfl $LIBS"
5738 cat >conftest.$ac_ext <<_ACEOF
5739 #line $LINENO "configure"
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5746 /* Override any gcc2 internal prototype to avoid an error. */
5747 #ifdef __cplusplus
5748 extern "C"
5749 #endif
5750 /* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5752 char yywrap ();
5754 main ()
5756 yywrap ();
5758 return 0;
5760 _ACEOF
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5763 (eval $ac_link) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -s conftest$ac_exeext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_lib_fl_yywrap=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 ac_cv_lib_fl_yywrap=no
5780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5781 LIBS=$ac_check_lib_save_LIBS
5783 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5784 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5785 if test $ac_cv_lib_fl_yywrap = yes; then
5786 LEXLIB="-lfl"
5787 else
5788 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5789 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5790 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 ac_check_lib_save_LIBS=$LIBS
5794 LIBS="-ll $LIBS"
5795 cat >conftest.$ac_ext <<_ACEOF
5796 #line $LINENO "configure"
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5803 /* Override any gcc2 internal prototype to avoid an error. */
5804 #ifdef __cplusplus
5805 extern "C"
5806 #endif
5807 /* We use char because int might match the return type of a gcc2
5808 builtin and then its argument prototype would still apply. */
5809 char yywrap ();
5811 main ()
5813 yywrap ();
5815 return 0;
5817 _ACEOF
5818 rm -f conftest.$ac_objext conftest$ac_exeext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5820 (eval $ac_link) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -s conftest$ac_exeext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_cv_lib_l_yywrap=yes
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 ac_cv_lib_l_yywrap=no
5837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5838 LIBS=$ac_check_lib_save_LIBS
5840 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5841 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5842 if test $ac_cv_lib_l_yywrap = yes; then
5843 LEXLIB="-ll"
5850 if test "x$LEX" != "x:"; then
5851 echo "$as_me:$LINENO: checking lex output file root" >&5
5852 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5853 if test "${ac_cv_prog_lex_root+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 # The minimal lex program is just a single line: %%. But some broken lexes
5857 # (Solaris, I think it was) want two %% lines, so accommodate them.
5858 cat >conftest.l <<_ACEOF
5861 _ACEOF
5862 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5863 (eval $LEX conftest.l) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }
5867 if test -f lex.yy.c; then
5868 ac_cv_prog_lex_root=lex.yy
5869 elif test -f lexyy.c; then
5870 ac_cv_prog_lex_root=lexyy
5871 else
5872 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5873 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5874 { (exit 1); exit 1; }; }
5877 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5878 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5879 rm -f conftest.l
5880 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5882 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5883 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5884 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887 # POSIX says lex can declare yytext either as a pointer or an array; the
5888 # default is implementation-dependent. Figure out which it is, since
5889 # not all implementations provide the %pointer and %array declarations.
5890 ac_cv_prog_lex_yytext_pointer=no
5891 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5892 ac_save_LIBS=$LIBS
5893 LIBS="$LIBS $LEXLIB"
5894 cat >conftest.$ac_ext <<_ACEOF
5895 `cat $LEX_OUTPUT_ROOT.c`
5896 _ACEOF
5897 rm -f conftest.$ac_objext conftest$ac_exeext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5899 (eval $ac_link) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -s conftest$ac_exeext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_cv_prog_lex_yytext_pointer=yes
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5916 LIBS=$ac_save_LIBS
5917 rm -f "${LEX_OUTPUT_ROOT}.c"
5920 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5921 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5922 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5924 cat >>confdefs.h <<\_ACEOF
5925 #define YYTEXT_POINTER 1
5926 _ACEOF
5931 if test "$LEX" = :; then
5932 LEX=${am_missing_run}flex
5935 ALL_LINGUAS="fr tr es"
5936 if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5939 echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941 if test "${ac_cv_prog_RANLIB+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944 if test -n "$RANLIB"; then
5945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5958 done
5959 done
5963 RANLIB=$ac_cv_prog_RANLIB
5964 if test -n "$RANLIB"; then
5965 echo "$as_me:$LINENO: result: $RANLIB" >&5
5966 echo "${ECHO_T}$RANLIB" >&6
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5973 if test -z "$ac_cv_prog_RANLIB"; then
5974 ac_ct_RANLIB=$RANLIB
5975 # Extract the first word of "ranlib", so it can be a program name with args.
5976 set dummy ranlib; ac_word=$2
5977 echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 if test -n "$ac_ct_RANLIB"; then
5983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_ac_ct_RANLIB="ranlib"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5996 done
5997 done
5999 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6002 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6003 if test -n "$ac_ct_RANLIB"; then
6004 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6005 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6006 else
6007 echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6
6011 RANLIB=$ac_ct_RANLIB
6012 else
6013 RANLIB="$ac_cv_prog_RANLIB"
6016 ac_ext=c
6017 ac_cpp='$CPP $CPPFLAGS'
6018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6022 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6023 # On Suns, sometimes $CPP names a directory.
6024 if test -n "$CPP" && test -d "$CPP"; then
6025 CPP=
6027 if test -z "$CPP"; then
6028 if test "${ac_cv_prog_CPP+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031 # Double quotes because CPP needs to be expanded
6032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6034 ac_preproc_ok=false
6035 for ac_c_preproc_warn_flag in '' yes
6037 # Use a header file that comes with gcc, so configuring glibc
6038 # with a fresh cross-compiler works.
6039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6040 # <limits.h> exists even on freestanding compilers.
6041 # On the NeXT, cc -E runs the code through the compiler's parser,
6042 # not just through cpp. "Syntax error" is here to catch this case.
6043 cat >conftest.$ac_ext <<_ACEOF
6044 #line $LINENO "configure"
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #ifdef __STDC__
6051 # include <limits.h>
6052 #else
6053 # include <assert.h>
6054 #endif
6055 Syntax error
6056 _ACEOF
6057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } >/dev/null; then
6065 if test -s conftest.err; then
6066 ac_cpp_err=$ac_c_preproc_warn_flag
6067 else
6068 ac_cpp_err=
6070 else
6071 ac_cpp_err=yes
6073 if test -z "$ac_cpp_err"; then
6075 else
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 # Broken: fails on valid input.
6080 continue
6082 rm -f conftest.err conftest.$ac_ext
6084 # OK, works on sane cases. Now check whether non-existent headers
6085 # can be detected and how.
6086 cat >conftest.$ac_ext <<_ACEOF
6087 #line $LINENO "configure"
6088 /* confdefs.h. */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #include <ac_nonexistent.h>
6094 _ACEOF
6095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } >/dev/null; then
6103 if test -s conftest.err; then
6104 ac_cpp_err=$ac_c_preproc_warn_flag
6105 else
6106 ac_cpp_err=
6108 else
6109 ac_cpp_err=yes
6111 if test -z "$ac_cpp_err"; then
6112 # Broken: success on invalid input.
6113 continue
6114 else
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 # Passes both tests.
6119 ac_preproc_ok=:
6120 break
6122 rm -f conftest.err conftest.$ac_ext
6124 done
6125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6126 rm -f conftest.err conftest.$ac_ext
6127 if $ac_preproc_ok; then
6128 break
6131 done
6132 ac_cv_prog_CPP=$CPP
6135 CPP=$ac_cv_prog_CPP
6136 else
6137 ac_cv_prog_CPP=$CPP
6139 echo "$as_me:$LINENO: result: $CPP" >&5
6140 echo "${ECHO_T}$CPP" >&6
6141 ac_preproc_ok=false
6142 for ac_c_preproc_warn_flag in '' yes
6144 # Use a header file that comes with gcc, so configuring glibc
6145 # with a fresh cross-compiler works.
6146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6147 # <limits.h> exists even on freestanding compilers.
6148 # On the NeXT, cc -E runs the code through the compiler's parser,
6149 # not just through cpp. "Syntax error" is here to catch this case.
6150 cat >conftest.$ac_ext <<_ACEOF
6151 #line $LINENO "configure"
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #ifdef __STDC__
6158 # include <limits.h>
6159 #else
6160 # include <assert.h>
6161 #endif
6162 Syntax error
6163 _ACEOF
6164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6166 ac_status=$?
6167 grep -v '^ *+' conftest.er1 >conftest.err
6168 rm -f conftest.er1
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } >/dev/null; then
6172 if test -s conftest.err; then
6173 ac_cpp_err=$ac_c_preproc_warn_flag
6174 else
6175 ac_cpp_err=
6177 else
6178 ac_cpp_err=yes
6180 if test -z "$ac_cpp_err"; then
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 # Broken: fails on valid input.
6187 continue
6189 rm -f conftest.err conftest.$ac_ext
6191 # OK, works on sane cases. Now check whether non-existent headers
6192 # can be detected and how.
6193 cat >conftest.$ac_ext <<_ACEOF
6194 #line $LINENO "configure"
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 #include <ac_nonexistent.h>
6201 _ACEOF
6202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } >/dev/null; then
6210 if test -s conftest.err; then
6211 ac_cpp_err=$ac_c_preproc_warn_flag
6212 else
6213 ac_cpp_err=
6215 else
6216 ac_cpp_err=yes
6218 if test -z "$ac_cpp_err"; then
6219 # Broken: success on invalid input.
6220 continue
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 # Passes both tests.
6226 ac_preproc_ok=:
6227 break
6229 rm -f conftest.err conftest.$ac_ext
6231 done
6232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6233 rm -f conftest.err conftest.$ac_ext
6234 if $ac_preproc_ok; then
6236 else
6237 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6238 See \`config.log' for more details." >&5
6239 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6240 See \`config.log' for more details." >&2;}
6241 { (exit 1); exit 1; }; }
6244 ac_ext=c
6245 ac_cpp='$CPP $CPPFLAGS'
6246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6251 echo "$as_me:$LINENO: checking for egrep" >&5
6252 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6253 if test "${ac_cv_prog_egrep+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6257 then ac_cv_prog_egrep='grep -E'
6258 else ac_cv_prog_egrep='egrep'
6261 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6262 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6263 EGREP=$ac_cv_prog_egrep
6266 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6267 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6268 if test "${ac_cv_header_stdc+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271 cat >conftest.$ac_ext <<_ACEOF
6272 #line $LINENO "configure"
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 #include <stdlib.h>
6279 #include <stdarg.h>
6280 #include <string.h>
6281 #include <float.h>
6284 main ()
6288 return 0;
6290 _ACEOF
6291 rm -f conftest.$ac_objext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293 (eval $ac_compile) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_header_stdc=yes
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 ac_cv_header_stdc=no
6310 rm -f conftest.$ac_objext conftest.$ac_ext
6312 if test $ac_cv_header_stdc = yes; then
6313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6314 cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6316 /* confdefs.h. */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 #include <string.h>
6323 _ACEOF
6324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6325 $EGREP "memchr" >/dev/null 2>&1; then
6327 else
6328 ac_cv_header_stdc=no
6330 rm -f conftest*
6334 if test $ac_cv_header_stdc = yes; then
6335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6336 cat >conftest.$ac_ext <<_ACEOF
6337 #line $LINENO "configure"
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #include <stdlib.h>
6345 _ACEOF
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "free" >/dev/null 2>&1; then
6349 else
6350 ac_cv_header_stdc=no
6352 rm -f conftest*
6356 if test $ac_cv_header_stdc = yes; then
6357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6358 if test "$cross_compiling" = yes; then
6360 else
6361 cat >conftest.$ac_ext <<_ACEOF
6362 #line $LINENO "configure"
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <ctype.h>
6369 #if ((' ' & 0x0FF) == 0x020)
6370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6372 #else
6373 # define ISLOWER(c) \
6374 (('a' <= (c) && (c) <= 'i') \
6375 || ('j' <= (c) && (c) <= 'r') \
6376 || ('s' <= (c) && (c) <= 'z'))
6377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6378 #endif
6380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6382 main ()
6384 int i;
6385 for (i = 0; i < 256; i++)
6386 if (XOR (islower (i), ISLOWER (i))
6387 || toupper (i) != TOUPPER (i))
6388 exit(2);
6389 exit (0);
6391 _ACEOF
6392 rm -f conftest$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394 (eval $ac_link) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6404 else
6405 echo "$as_me: program exited with status $ac_status" >&5
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ( exit $ac_status )
6410 ac_cv_header_stdc=no
6412 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6416 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6417 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6418 if test $ac_cv_header_stdc = yes; then
6420 cat >>confdefs.h <<\_ACEOF
6421 #define STDC_HEADERS 1
6422 _ACEOF
6426 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6427 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6428 if test "${ac_cv_c_const+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 cat >conftest.$ac_ext <<_ACEOF
6432 #line $LINENO "configure"
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6440 main ()
6442 /* FIXME: Include the comments suggested by Paul. */
6443 #ifndef __cplusplus
6444 /* Ultrix mips cc rejects this. */
6445 typedef int charset[2];
6446 const charset x;
6447 /* SunOS 4.1.1 cc rejects this. */
6448 char const *const *ccp;
6449 char **p;
6450 /* NEC SVR4.0.2 mips cc rejects this. */
6451 struct point {int x, y;};
6452 static struct point const zero = {0,0};
6453 /* AIX XL C 1.02.0.0 rejects this.
6454 It does not let you subtract one const X* pointer from another in
6455 an arm of an if-expression whose if-part is not a constant
6456 expression */
6457 const char *g = "string";
6458 ccp = &g + (g ? g-g : 0);
6459 /* HPUX 7.0 cc rejects these. */
6460 ++ccp;
6461 p = (char**) ccp;
6462 ccp = (char const *const *) p;
6463 { /* SCO 3.2v4 cc rejects this. */
6464 char *t;
6465 char const *s = 0 ? (char *) 0 : (char const *) 0;
6467 *t++ = 0;
6469 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6470 int x[] = {25, 17};
6471 const int *foo = &x[0];
6472 ++foo;
6474 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6475 typedef const int *iptr;
6476 iptr p = 0;
6477 ++p;
6479 { /* AIX XL C 1.02.0.0 rejects this saying
6480 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6481 struct s { int j; const int *ap[3]; };
6482 struct s *b; b->j = 5;
6484 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6485 const int foo = 10;
6487 #endif
6490 return 0;
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6495 (eval $ac_compile) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try='test -s conftest.$ac_objext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 ac_cv_c_const=yes
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_cv_c_const=no
6512 rm -f conftest.$ac_objext conftest.$ac_ext
6514 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6515 echo "${ECHO_T}$ac_cv_c_const" >&6
6516 if test $ac_cv_c_const = no; then
6518 cat >>confdefs.h <<\_ACEOF
6519 #define const
6520 _ACEOF
6524 echo "$as_me:$LINENO: checking for inline" >&5
6525 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6526 if test "${ac_cv_c_inline+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529 ac_cv_c_inline=no
6530 for ac_kw in inline __inline__ __inline; do
6531 cat >conftest.$ac_ext <<_ACEOF
6532 #line $LINENO "configure"
6533 /* confdefs.h. */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 #ifndef __cplusplus
6539 typedef int foo_t;
6540 static $ac_kw foo_t static_foo () {return 0; }
6541 $ac_kw foo_t foo () {return 0; }
6542 #endif
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_cv_c_inline=$ac_kw; break
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6563 rm -f conftest.$ac_objext conftest.$ac_ext
6564 done
6567 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6568 echo "${ECHO_T}$ac_cv_c_inline" >&6
6569 case $ac_cv_c_inline in
6570 inline | yes) ;;
6572 cat >>confdefs.h <<\_ACEOF
6573 #define inline
6574 _ACEOF
6576 *) cat >>confdefs.h <<_ACEOF
6577 #define inline $ac_cv_c_inline
6578 _ACEOF
6580 esac
6582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6593 inttypes.h stdint.h unistd.h
6595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596 echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 cat >conftest.$ac_ext <<_ACEOF
6602 #line $LINENO "configure"
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 $ac_includes_default
6610 #include <$ac_header>
6611 _ACEOF
6612 rm -f conftest.$ac_objext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -s conftest.$ac_objext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 eval "$as_ac_Header=yes"
6625 else
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 eval "$as_ac_Header=no"
6631 rm -f conftest.$ac_objext conftest.$ac_ext
6633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6636 cat >>confdefs.h <<_ACEOF
6637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6638 _ACEOF
6642 done
6645 echo "$as_me:$LINENO: checking for off_t" >&5
6646 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6647 if test "${ac_cv_type_off_t+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 cat >conftest.$ac_ext <<_ACEOF
6651 #line $LINENO "configure"
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 $ac_includes_default
6659 main ()
6661 if ((off_t *) 0)
6662 return 0;
6663 if (sizeof (off_t))
6664 return 0;
6666 return 0;
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_cv_type_off_t=yes
6682 else
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_cv_type_off_t=no
6688 rm -f conftest.$ac_objext conftest.$ac_ext
6690 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6691 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6692 if test $ac_cv_type_off_t = yes; then
6694 else
6696 cat >>confdefs.h <<_ACEOF
6697 #define off_t long
6698 _ACEOF
6702 echo "$as_me:$LINENO: checking for size_t" >&5
6703 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6704 if test "${ac_cv_type_size_t+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 cat >conftest.$ac_ext <<_ACEOF
6708 #line $LINENO "configure"
6709 /* confdefs.h. */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 $ac_includes_default
6716 main ()
6718 if ((size_t *) 0)
6719 return 0;
6720 if (sizeof (size_t))
6721 return 0;
6723 return 0;
6725 _ACEOF
6726 rm -f conftest.$ac_objext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6728 (eval $ac_compile) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try='test -s conftest.$ac_objext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 (eval $ac_try) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 ac_cv_type_size_t=yes
6739 else
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6743 ac_cv_type_size_t=no
6745 rm -f conftest.$ac_objext conftest.$ac_ext
6747 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6748 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6749 if test $ac_cv_type_size_t = yes; then
6751 else
6753 cat >>confdefs.h <<_ACEOF
6754 #define size_t unsigned
6755 _ACEOF
6759 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6760 # for constant arguments. Useless!
6761 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6762 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6763 if test "${ac_cv_working_alloca_h+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 cat >conftest.$ac_ext <<_ACEOF
6767 #line $LINENO "configure"
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <alloca.h>
6775 main ()
6777 char *p = (char *) alloca (2 * sizeof (int));
6779 return 0;
6781 _ACEOF
6782 rm -f conftest.$ac_objext conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 2>&5
6785 ac_status=$?
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -s conftest$ac_exeext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 (eval $ac_try) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6794 ac_cv_working_alloca_h=yes
6795 else
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 ac_cv_working_alloca_h=no
6801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6803 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6804 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6805 if test $ac_cv_working_alloca_h = yes; then
6807 cat >>confdefs.h <<\_ACEOF
6808 #define HAVE_ALLOCA_H 1
6809 _ACEOF
6813 echo "$as_me:$LINENO: checking for alloca" >&5
6814 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6815 if test "${ac_cv_func_alloca_works+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818 cat >conftest.$ac_ext <<_ACEOF
6819 #line $LINENO "configure"
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #ifdef __GNUC__
6826 # define alloca __builtin_alloca
6827 #else
6828 # ifdef _MSC_VER
6829 # include <malloc.h>
6830 # define alloca _alloca
6831 # else
6832 # if HAVE_ALLOCA_H
6833 # include <alloca.h>
6834 # else
6835 # ifdef _AIX
6836 #pragma alloca
6837 # else
6838 # ifndef alloca /* predefined by HP cc +Olibcalls */
6839 char *alloca ();
6840 # endif
6841 # endif
6842 # endif
6843 # endif
6844 #endif
6847 main ()
6849 char *p = (char *) alloca (1);
6851 return 0;
6853 _ACEOF
6854 rm -f conftest.$ac_objext conftest$ac_exeext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856 (eval $ac_link) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -s conftest$ac_exeext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 ac_cv_func_alloca_works=yes
6867 else
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6871 ac_cv_func_alloca_works=no
6873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6875 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6876 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6878 if test $ac_cv_func_alloca_works = yes; then
6880 cat >>confdefs.h <<\_ACEOF
6881 #define HAVE_ALLOCA 1
6882 _ACEOF
6884 else
6885 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6886 # that cause trouble. Some versions do not even contain alloca or
6887 # contain a buggy version. If you still want to use their alloca,
6888 # use ar to extract alloca.o from them instead of compiling alloca.c.
6890 ALLOCA=alloca.$ac_objext
6892 cat >>confdefs.h <<\_ACEOF
6893 #define C_ALLOCA 1
6894 _ACEOF
6897 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6898 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6899 if test "${ac_cv_os_cray+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 cat >conftest.$ac_ext <<_ACEOF
6903 #line $LINENO "configure"
6904 /* confdefs.h. */
6905 _ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 #if defined(CRAY) && ! defined(CRAY2)
6910 webecray
6911 #else
6912 wenotbecray
6913 #endif
6915 _ACEOF
6916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917 $EGREP "webecray" >/dev/null 2>&1; then
6918 ac_cv_os_cray=yes
6919 else
6920 ac_cv_os_cray=no
6922 rm -f conftest*
6925 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6926 echo "${ECHO_T}$ac_cv_os_cray" >&6
6927 if test $ac_cv_os_cray = yes; then
6928 for ac_func in _getb67 GETB67 getb67; do
6929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6930 echo "$as_me:$LINENO: checking for $ac_func" >&5
6931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6932 if eval "test \"\${$as_ac_var+set}\" = set"; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935 cat >conftest.$ac_ext <<_ACEOF
6936 #line $LINENO "configure"
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char $ac_func (); below.
6944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6945 <limits.h> exists even on freestanding compilers. */
6946 #ifdef __STDC__
6947 # include <limits.h>
6948 #else
6949 # include <assert.h>
6950 #endif
6951 /* Override any gcc2 internal prototype to avoid an error. */
6952 #ifdef __cplusplus
6953 extern "C"
6955 #endif
6956 /* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */
6958 char $ac_func ();
6959 /* The GNU C library defines this for functions which it implements
6960 to always fail with ENOSYS. Some functions are actually named
6961 something starting with __ and the normal name is an alias. */
6962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6963 choke me
6964 #else
6965 char (*f) () = $ac_func;
6966 #endif
6967 #ifdef __cplusplus
6969 #endif
6972 main ()
6974 return f != $ac_func;
6976 return 0;
6978 _ACEOF
6979 rm -f conftest.$ac_objext conftest$ac_exeext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981 (eval $ac_link) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 eval "$as_ac_var=yes"
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 eval "$as_ac_var=no"
6998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7002 if test `eval echo '${'$as_ac_var'}'` = yes; then
7004 cat >>confdefs.h <<_ACEOF
7005 #define CRAY_STACKSEG_END $ac_func
7006 _ACEOF
7008 break
7011 done
7014 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7015 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7016 if test "${ac_cv_c_stack_direction+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 if test "$cross_compiling" = yes; then
7020 ac_cv_c_stack_direction=0
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7030 find_stack_direction ()
7032 static char *addr = 0;
7033 auto char dummy;
7034 if (addr == 0)
7036 addr = &dummy;
7037 return find_stack_direction ();
7039 else
7040 return (&dummy > addr) ? 1 : -1;
7044 main ()
7046 exit (find_stack_direction () < 0);
7048 _ACEOF
7049 rm -f conftest$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 ac_cv_c_stack_direction=1
7061 else
7062 echo "$as_me: program exited with status $ac_status" >&5
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ( exit $ac_status )
7067 ac_cv_c_stack_direction=-1
7069 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7072 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7073 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7075 cat >>confdefs.h <<_ACEOF
7076 #define STACK_DIRECTION $ac_cv_c_stack_direction
7077 _ACEOF
7084 for ac_header in stdlib.h unistd.h
7086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088 echo "$as_me:$LINENO: checking for $ac_header" >&5
7089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7095 else
7096 # Is the header compilable?
7097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7099 cat >conftest.$ac_ext <<_ACEOF
7100 #line $LINENO "configure"
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7107 #include <$ac_header>
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -s conftest.$ac_objext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_header_compiler=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 ac_header_compiler=no
7128 rm -f conftest.$ac_objext conftest.$ac_ext
7129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7130 echo "${ECHO_T}$ac_header_compiler" >&6
7132 # Is the header present?
7133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7135 cat >conftest.$ac_ext <<_ACEOF
7136 #line $LINENO "configure"
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <$ac_header>
7143 _ACEOF
7144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } >/dev/null; then
7152 if test -s conftest.err; then
7153 ac_cpp_err=$ac_c_preproc_warn_flag
7154 else
7155 ac_cpp_err=
7157 else
7158 ac_cpp_err=yes
7160 if test -z "$ac_cpp_err"; then
7161 ac_header_preproc=yes
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_header_preproc=no
7168 rm -f conftest.err conftest.$ac_ext
7169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7170 echo "${ECHO_T}$ac_header_preproc" >&6
7172 # So? What about this header?
7173 case $ac_header_compiler:$ac_header_preproc in
7174 yes:no )
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7180 cat <<\_ASBOX
7181 ## ------------------------------------ ##
7182 ## Report this to bug-autoconf@gnu.org. ##
7183 ## ------------------------------------ ##
7184 _ASBOX
7186 sed "s/^/$as_me: WARNING: /" >&2
7188 no:yes )
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7196 cat <<\_ASBOX
7197 ## ------------------------------------ ##
7198 ## Report this to bug-autoconf@gnu.org. ##
7199 ## ------------------------------------ ##
7200 _ASBOX
7202 sed "s/^/$as_me: WARNING: /" >&2
7204 esac
7205 echo "$as_me:$LINENO: checking for $ac_header" >&5
7206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210 eval "$as_ac_Header=$ac_header_preproc"
7212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7217 cat >>confdefs.h <<_ACEOF
7218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7219 _ACEOF
7223 done
7226 for ac_func in getpagesize
7228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7229 echo "$as_me:$LINENO: checking for $ac_func" >&5
7230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7231 if eval "test \"\${$as_ac_var+set}\" = set"; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 #line $LINENO "configure"
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char $ac_func (); below.
7243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7244 <limits.h> exists even on freestanding compilers. */
7245 #ifdef __STDC__
7246 # include <limits.h>
7247 #else
7248 # include <assert.h>
7249 #endif
7250 /* Override any gcc2 internal prototype to avoid an error. */
7251 #ifdef __cplusplus
7252 extern "C"
7254 #endif
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7257 char $ac_func ();
7258 /* The GNU C library defines this for functions which it implements
7259 to always fail with ENOSYS. Some functions are actually named
7260 something starting with __ and the normal name is an alias. */
7261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 choke me
7263 #else
7264 char (*f) () = $ac_func;
7265 #endif
7266 #ifdef __cplusplus
7268 #endif
7271 main ()
7273 return f != $ac_func;
7275 return 0;
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try='test -s conftest$ac_exeext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 eval "$as_ac_var=yes"
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 eval "$as_ac_var=no"
7297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7301 if test `eval echo '${'$as_ac_var'}'` = yes; then
7302 cat >>confdefs.h <<_ACEOF
7303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7304 _ACEOF
7307 done
7309 echo "$as_me:$LINENO: checking for working mmap" >&5
7310 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7311 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 if test "$cross_compiling" = yes; then
7315 ac_cv_func_mmap_fixed_mapped=no
7316 else
7317 cat >conftest.$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7319 /* confdefs.h. */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 $ac_includes_default
7325 /* malloc might have been renamed as rpl_malloc. */
7326 #undef malloc
7328 /* Thanks to Mike Haertel and Jim Avera for this test.
7329 Here is a matrix of mmap possibilities:
7330 mmap private not fixed
7331 mmap private fixed at somewhere currently unmapped
7332 mmap private fixed at somewhere already mapped
7333 mmap shared not fixed
7334 mmap shared fixed at somewhere currently unmapped
7335 mmap shared fixed at somewhere already mapped
7336 For private mappings, we should verify that changes cannot be read()
7337 back from the file, nor mmap's back from the file at a different
7338 address. (There have been systems where private was not correctly
7339 implemented like the infamous i386 svr4.0, and systems where the
7340 VM page cache was not coherent with the file system buffer cache
7341 like early versions of FreeBSD and possibly contemporary NetBSD.)
7342 For shared mappings, we should conversely verify that changes get
7343 propagated back to all the places they're supposed to be.
7345 Grep wants private fixed already mapped.
7346 The main things grep needs to know about mmap are:
7347 * does it exist and is it safe to write into the mmap'd area
7348 * how to use it (BSD variants) */
7350 #include <fcntl.h>
7351 #include <sys/mman.h>
7353 #if !STDC_HEADERS && !HAVE_STDLIB_H
7354 char *malloc ();
7355 #endif
7357 /* This mess was copied from the GNU getpagesize.h. */
7358 #if !HAVE_GETPAGESIZE
7359 /* Assume that all systems that can run configure have sys/param.h. */
7360 # if !HAVE_SYS_PARAM_H
7361 # define HAVE_SYS_PARAM_H 1
7362 # endif
7364 # ifdef _SC_PAGESIZE
7365 # define getpagesize() sysconf(_SC_PAGESIZE)
7366 # else /* no _SC_PAGESIZE */
7367 # if HAVE_SYS_PARAM_H
7368 # include <sys/param.h>
7369 # ifdef EXEC_PAGESIZE
7370 # define getpagesize() EXEC_PAGESIZE
7371 # else /* no EXEC_PAGESIZE */
7372 # ifdef NBPG
7373 # define getpagesize() NBPG * CLSIZE
7374 # ifndef CLSIZE
7375 # define CLSIZE 1
7376 # endif /* no CLSIZE */
7377 # else /* no NBPG */
7378 # ifdef NBPC
7379 # define getpagesize() NBPC
7380 # else /* no NBPC */
7381 # ifdef PAGESIZE
7382 # define getpagesize() PAGESIZE
7383 # endif /* PAGESIZE */
7384 # endif /* no NBPC */
7385 # endif /* no NBPG */
7386 # endif /* no EXEC_PAGESIZE */
7387 # else /* no HAVE_SYS_PARAM_H */
7388 # define getpagesize() 8192 /* punt totally */
7389 # endif /* no HAVE_SYS_PARAM_H */
7390 # endif /* no _SC_PAGESIZE */
7392 #endif /* no HAVE_GETPAGESIZE */
7395 main ()
7397 char *data, *data2, *data3;
7398 int i, pagesize;
7399 int fd;
7401 pagesize = getpagesize ();
7403 /* First, make a file with some known garbage in it. */
7404 data = (char *) malloc (pagesize);
7405 if (!data)
7406 exit (1);
7407 for (i = 0; i < pagesize; ++i)
7408 *(data + i) = rand ();
7409 umask (0);
7410 fd = creat ("conftest.mmap", 0600);
7411 if (fd < 0)
7412 exit (1);
7413 if (write (fd, data, pagesize) != pagesize)
7414 exit (1);
7415 close (fd);
7417 /* Next, try to mmap the file at a fixed address which already has
7418 something else allocated at it. If we can, also make sure that
7419 we see the same garbage. */
7420 fd = open ("conftest.mmap", O_RDWR);
7421 if (fd < 0)
7422 exit (1);
7423 data2 = (char *) malloc (2 * pagesize);
7424 if (!data2)
7425 exit (1);
7426 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7427 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7428 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7429 exit (1);
7430 for (i = 0; i < pagesize; ++i)
7431 if (*(data + i) != *(data2 + i))
7432 exit (1);
7434 /* Finally, make sure that changes to the mapped area do not
7435 percolate back to the file as seen by read(). (This is a bug on
7436 some variants of i386 svr4.0.) */
7437 for (i = 0; i < pagesize; ++i)
7438 *(data2 + i) = *(data2 + i) + 1;
7439 data3 = (char *) malloc (pagesize);
7440 if (!data3)
7441 exit (1);
7442 if (read (fd, data3, pagesize) != pagesize)
7443 exit (1);
7444 for (i = 0; i < pagesize; ++i)
7445 if (*(data + i) != *(data3 + i))
7446 exit (1);
7447 close (fd);
7448 exit (0);
7450 _ACEOF
7451 rm -f conftest$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453 (eval $ac_link) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_cv_func_mmap_fixed_mapped=yes
7463 else
7464 echo "$as_me: program exited with status $ac_status" >&5
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ( exit $ac_status )
7469 ac_cv_func_mmap_fixed_mapped=no
7471 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7474 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7475 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7476 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_MMAP 1
7480 _ACEOF
7483 rm -f conftest.mmap
7495 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7496 unistd.h values.h sys/param.h
7498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7500 echo "$as_me:$LINENO: checking for $ac_header" >&5
7501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7507 else
7508 # Is the header compilable?
7509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7511 cat >conftest.$ac_ext <<_ACEOF
7512 #line $LINENO "configure"
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 $ac_includes_default
7519 #include <$ac_header>
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_header_compiler=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_header_compiler=no
7540 rm -f conftest.$ac_objext conftest.$ac_ext
7541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7542 echo "${ECHO_T}$ac_header_compiler" >&6
7544 # Is the header present?
7545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <$ac_header>
7555 _ACEOF
7556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } >/dev/null; then
7564 if test -s conftest.err; then
7565 ac_cpp_err=$ac_c_preproc_warn_flag
7566 else
7567 ac_cpp_err=
7569 else
7570 ac_cpp_err=yes
7572 if test -z "$ac_cpp_err"; then
7573 ac_header_preproc=yes
7574 else
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7578 ac_header_preproc=no
7580 rm -f conftest.err conftest.$ac_ext
7581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7582 echo "${ECHO_T}$ac_header_preproc" >&6
7584 # So? What about this header?
7585 case $ac_header_compiler:$ac_header_preproc in
7586 yes:no )
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7592 cat <<\_ASBOX
7593 ## ------------------------------------ ##
7594 ## Report this to bug-autoconf@gnu.org. ##
7595 ## ------------------------------------ ##
7596 _ASBOX
7598 sed "s/^/$as_me: WARNING: /" >&2
7600 no:yes )
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7608 cat <<\_ASBOX
7609 ## ------------------------------------ ##
7610 ## Report this to bug-autoconf@gnu.org. ##
7611 ## ------------------------------------ ##
7612 _ASBOX
7614 sed "s/^/$as_me: WARNING: /" >&2
7616 esac
7617 echo "$as_me:$LINENO: checking for $ac_header" >&5
7618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622 eval "$as_ac_Header=$ac_header_preproc"
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7629 cat >>confdefs.h <<_ACEOF
7630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631 _ACEOF
7635 done
7647 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7648 __argz_count __argz_stringify __argz_next
7650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7651 echo "$as_me:$LINENO: checking for $ac_func" >&5
7652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7653 if eval "test \"\${$as_ac_var+set}\" = set"; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 cat >conftest.$ac_ext <<_ACEOF
7657 #line $LINENO "configure"
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 /* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char $ac_func (); below.
7665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7666 <limits.h> exists even on freestanding compilers. */
7667 #ifdef __STDC__
7668 # include <limits.h>
7669 #else
7670 # include <assert.h>
7671 #endif
7672 /* Override any gcc2 internal prototype to avoid an error. */
7673 #ifdef __cplusplus
7674 extern "C"
7676 #endif
7677 /* We use char because int might match the return type of a gcc2
7678 builtin and then its argument prototype would still apply. */
7679 char $ac_func ();
7680 /* The GNU C library defines this for functions which it implements
7681 to always fail with ENOSYS. Some functions are actually named
7682 something starting with __ and the normal name is an alias. */
7683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7684 choke me
7685 #else
7686 char (*f) () = $ac_func;
7687 #endif
7688 #ifdef __cplusplus
7690 #endif
7693 main ()
7695 return f != $ac_func;
7697 return 0;
7699 _ACEOF
7700 rm -f conftest.$ac_objext conftest$ac_exeext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7702 (eval $ac_link) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -s conftest$ac_exeext'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 eval "$as_ac_var=yes"
7713 else
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 eval "$as_ac_var=no"
7719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7723 if test `eval echo '${'$as_ac_var'}'` = yes; then
7724 cat >>confdefs.h <<_ACEOF
7725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7726 _ACEOF
7729 done
7732 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7734 for ac_func in stpcpy
7736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7737 echo "$as_me:$LINENO: checking for $ac_func" >&5
7738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7739 if eval "test \"\${$as_ac_var+set}\" = set"; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 cat >conftest.$ac_ext <<_ACEOF
7743 #line $LINENO "configure"
7744 /* confdefs.h. */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 /* System header to define __stub macros and hopefully few prototypes,
7750 which can conflict with char $ac_func (); below.
7751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7752 <limits.h> exists even on freestanding compilers. */
7753 #ifdef __STDC__
7754 # include <limits.h>
7755 #else
7756 # include <assert.h>
7757 #endif
7758 /* Override any gcc2 internal prototype to avoid an error. */
7759 #ifdef __cplusplus
7760 extern "C"
7762 #endif
7763 /* We use char because int might match the return type of a gcc2
7764 builtin and then its argument prototype would still apply. */
7765 char $ac_func ();
7766 /* The GNU C library defines this for functions which it implements
7767 to always fail with ENOSYS. Some functions are actually named
7768 something starting with __ and the normal name is an alias. */
7769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7770 choke me
7771 #else
7772 char (*f) () = $ac_func;
7773 #endif
7774 #ifdef __cplusplus
7776 #endif
7779 main ()
7781 return f != $ac_func;
7783 return 0;
7785 _ACEOF
7786 rm -f conftest.$ac_objext conftest$ac_exeext
7787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7788 (eval $ac_link) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 eval "$as_ac_var=yes"
7799 else
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7803 eval "$as_ac_var=no"
7805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7809 if test `eval echo '${'$as_ac_var'}'` = yes; then
7810 cat >>confdefs.h <<_ACEOF
7811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7812 _ACEOF
7815 done
7818 if test "${ac_cv_func_stpcpy}" = "yes"; then
7820 cat >>confdefs.h <<\_ACEOF
7821 #define HAVE_STPCPY 1
7822 _ACEOF
7826 if test $ac_cv_header_locale_h = yes; then
7827 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7828 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7829 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 cat >conftest.$ac_ext <<_ACEOF
7833 #line $LINENO "configure"
7834 /* confdefs.h. */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 #include <locale.h>
7841 main ()
7843 return LC_MESSAGES
7845 return 0;
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 am_cv_val_LC_MESSAGES=yes
7861 else
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 am_cv_val_LC_MESSAGES=no
7867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7869 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7870 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7871 if test $am_cv_val_LC_MESSAGES = yes; then
7873 cat >>confdefs.h <<\_ACEOF
7874 #define HAVE_LC_MESSAGES 1
7875 _ACEOF
7879 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7880 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7881 # Check whether --enable-nls or --disable-nls was given.
7882 if test "${enable_nls+set}" = set; then
7883 enableval="$enable_nls"
7884 USE_NLS=$enableval
7885 else
7886 USE_NLS=yes
7888 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7889 echo "${ECHO_T}$USE_NLS" >&6
7892 USE_INCLUDED_LIBINTL=no
7894 if test "$USE_NLS" = "yes"; then
7896 cat >>confdefs.h <<\_ACEOF
7897 #define ENABLE_NLS 1
7898 _ACEOF
7900 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7901 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7903 # Check whether --with-included-gettext or --without-included-gettext was given.
7904 if test "${with_included_gettext+set}" = set; then
7905 withval="$with_included_gettext"
7906 nls_cv_force_use_gnu_gettext=$withval
7907 else
7908 nls_cv_force_use_gnu_gettext=no
7910 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7911 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7913 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7914 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7915 nls_cv_header_intl=
7916 nls_cv_header_libgt=
7917 CATOBJEXT=NONE
7919 if test "${ac_cv_header_libintl_h+set}" = set; then
7920 echo "$as_me:$LINENO: checking for libintl.h" >&5
7921 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7922 if test "${ac_cv_header_libintl_h+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7926 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7927 else
7928 # Is the header compilable?
7929 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7930 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 $ac_includes_default
7939 #include <libintl.h>
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_header_compiler=yes
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_header_compiler=no
7960 rm -f conftest.$ac_objext conftest.$ac_ext
7961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7962 echo "${ECHO_T}$ac_header_compiler" >&6
7964 # Is the header present?
7965 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7966 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7967 cat >conftest.$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7969 /* confdefs.h. */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 #include <libintl.h>
7975 _ACEOF
7976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7977 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
7984 if test -s conftest.err; then
7985 ac_cpp_err=$ac_c_preproc_warn_flag
7986 else
7987 ac_cpp_err=
7989 else
7990 ac_cpp_err=yes
7992 if test -z "$ac_cpp_err"; then
7993 ac_header_preproc=yes
7994 else
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 ac_header_preproc=no
8000 rm -f conftest.err conftest.$ac_ext
8001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8002 echo "${ECHO_T}$ac_header_preproc" >&6
8004 # So? What about this header?
8005 case $ac_header_compiler:$ac_header_preproc in
8006 yes:no )
8007 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8008 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8010 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8012 cat <<\_ASBOX
8013 ## ------------------------------------ ##
8014 ## Report this to bug-autoconf@gnu.org. ##
8015 ## ------------------------------------ ##
8016 _ASBOX
8018 sed "s/^/$as_me: WARNING: /" >&2
8020 no:yes )
8021 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8022 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8023 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8024 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8025 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8026 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8028 cat <<\_ASBOX
8029 ## ------------------------------------ ##
8030 ## Report this to bug-autoconf@gnu.org. ##
8031 ## ------------------------------------ ##
8032 _ASBOX
8034 sed "s/^/$as_me: WARNING: /" >&2
8036 esac
8037 echo "$as_me:$LINENO: checking for libintl.h" >&5
8038 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8039 if test "${ac_cv_header_libintl_h+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042 ac_cv_header_libintl_h=$ac_header_preproc
8044 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8045 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8048 if test $ac_cv_header_libintl_h = yes; then
8049 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8050 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8051 if test "${gt_cv_func_gettext_libc+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054 cat >conftest.$ac_ext <<_ACEOF
8055 #line $LINENO "configure"
8056 /* confdefs.h. */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8061 #include <libintl.h>
8063 main ()
8065 return (int) gettext ("")
8067 return 0;
8069 _ACEOF
8070 rm -f conftest.$ac_objext conftest$ac_exeext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8072 (eval $ac_link) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -s conftest$ac_exeext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 gt_cv_func_gettext_libc=yes
8083 else
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 gt_cv_func_gettext_libc=no
8089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8091 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8092 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8094 if test "$gt_cv_func_gettext_libc" != "yes"; then
8095 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8096 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8097 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-lintl $LIBS"
8102 cat >conftest.$ac_ext <<_ACEOF
8103 #line $LINENO "configure"
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8110 /* Override any gcc2 internal prototype to avoid an error. */
8111 #ifdef __cplusplus
8112 extern "C"
8113 #endif
8114 /* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8116 char bindtextdomain ();
8118 main ()
8120 bindtextdomain ();
8122 return 0;
8124 _ACEOF
8125 rm -f conftest.$ac_objext conftest$ac_exeext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8127 (eval $ac_link) 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -s conftest$ac_exeext'
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 (eval $ac_try) 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_cv_lib_intl_bindtextdomain=yes
8138 else
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8142 ac_cv_lib_intl_bindtextdomain=no
8144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8145 LIBS=$ac_check_lib_save_LIBS
8147 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8148 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8149 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8150 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8151 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8152 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8164 main ()
8166 return (int) gettext ("")
8168 return 0;
8170 _ACEOF
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -s conftest$ac_exeext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 gt_cv_func_gettext_libintl=yes
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 gt_cv_func_gettext_libintl=no
8190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8193 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8198 if test "$gt_cv_func_gettext_libc" = "yes" \
8199 || test "$gt_cv_func_gettext_libintl" = "yes"; then
8201 cat >>confdefs.h <<\_ACEOF
8202 #define HAVE_GETTEXT 1
8203 _ACEOF
8205 # Extract the first word of "msgfmt", so it can be a program name with args.
8206 set dummy msgfmt; ac_word=$2
8207 echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8209 if test "${ac_cv_path_MSGFMT+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 case "$MSGFMT" in
8214 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8218 for ac_dir in $PATH; do
8219 test -z "$ac_dir" && ac_dir=.
8220 if test -f $ac_dir/$ac_word; then
8221 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8222 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8223 break
8226 done
8227 IFS="$ac_save_ifs"
8228 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8230 esac
8232 MSGFMT="$ac_cv_path_MSGFMT"
8233 if test -n "$MSGFMT"; then
8234 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8235 echo "${ECHO_T}$MSGFMT" >&6
8236 else
8237 echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6
8240 if test "$MSGFMT" != "no"; then
8242 for ac_func in dcgettext
8244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8245 echo "$as_me:$LINENO: checking for $ac_func" >&5
8246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8247 if eval "test \"\${$as_ac_var+set}\" = set"; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 cat >conftest.$ac_ext <<_ACEOF
8251 #line $LINENO "configure"
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 /* System header to define __stub macros and hopefully few prototypes,
8258 which can conflict with char $ac_func (); below.
8259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8260 <limits.h> exists even on freestanding compilers. */
8261 #ifdef __STDC__
8262 # include <limits.h>
8263 #else
8264 # include <assert.h>
8265 #endif
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 #ifdef __cplusplus
8268 extern "C"
8270 #endif
8271 /* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8273 char $ac_func ();
8274 /* The GNU C library defines this for functions which it implements
8275 to always fail with ENOSYS. Some functions are actually named
8276 something starting with __ and the normal name is an alias. */
8277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8278 choke me
8279 #else
8280 char (*f) () = $ac_func;
8281 #endif
8282 #ifdef __cplusplus
8284 #endif
8287 main ()
8289 return f != $ac_func;
8291 return 0;
8293 _ACEOF
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 eval "$as_ac_var=yes"
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 eval "$as_ac_var=no"
8313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8317 if test `eval echo '${'$as_ac_var'}'` = yes; then
8318 cat >>confdefs.h <<_ACEOF
8319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8320 _ACEOF
8323 done
8325 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8326 set dummy gmsgfmt; ac_word=$2
8327 echo "$as_me:$LINENO: checking for $ac_word" >&5
8328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8329 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332 case $GMSGFMT in
8333 [\\/]* | ?:[\\/]*)
8334 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8344 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8346 break 2
8348 done
8349 done
8351 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8353 esac
8355 GMSGFMT=$ac_cv_path_GMSGFMT
8357 if test -n "$GMSGFMT"; then
8358 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8359 echo "${ECHO_T}$GMSGFMT" >&6
8360 else
8361 echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6
8365 # Extract the first word of "xgettext", so it can be a program name with args.
8366 set dummy xgettext; ac_word=$2
8367 echo "$as_me:$LINENO: checking for $ac_word" >&5
8368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8369 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372 case "$XGETTEXT" in
8374 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8378 for ac_dir in $PATH; do
8379 test -z "$ac_dir" && ac_dir=.
8380 if test -f $ac_dir/$ac_word; then
8381 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8382 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8383 break
8386 done
8387 IFS="$ac_save_ifs"
8388 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8390 esac
8392 XGETTEXT="$ac_cv_path_XGETTEXT"
8393 if test -n "$XGETTEXT"; then
8394 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8395 echo "${ECHO_T}$XGETTEXT" >&6
8396 else
8397 echo "$as_me:$LINENO: result: no" >&5
8398 echo "${ECHO_T}no" >&6
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8410 main ()
8412 extern int _nl_msg_cat_cntr;
8413 return _nl_msg_cat_cntr
8415 return 0;
8417 _ACEOF
8418 rm -f conftest.$ac_objext conftest$ac_exeext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8420 (eval $ac_link) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 CATOBJEXT=.gmo
8431 DATADIRNAME=share
8432 else
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8436 CATOBJEXT=.mo
8437 DATADIRNAME=lib
8439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8440 INSTOBJEXT=.mo
8449 if test "$CATOBJEXT" = "NONE"; then
8450 nls_cv_use_gnu_gettext=yes
8454 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8455 INTLOBJS="\$(GETTOBJS)"
8456 # Extract the first word of "msgfmt", so it can be a program name with args.
8457 set dummy msgfmt; ac_word=$2
8458 echo "$as_me:$LINENO: checking for $ac_word" >&5
8459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8460 if test "${ac_cv_path_MSGFMT+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 case "$MSGFMT" in
8465 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8469 for ac_dir in $PATH; do
8470 test -z "$ac_dir" && ac_dir=.
8471 if test -f $ac_dir/$ac_word; then
8472 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8473 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8474 break
8477 done
8478 IFS="$ac_save_ifs"
8479 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8481 esac
8483 MSGFMT="$ac_cv_path_MSGFMT"
8484 if test -n "$MSGFMT"; then
8485 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8486 echo "${ECHO_T}$MSGFMT" >&6
8487 else
8488 echo "$as_me:$LINENO: result: no" >&5
8489 echo "${ECHO_T}no" >&6
8492 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8493 set dummy gmsgfmt; ac_word=$2
8494 echo "$as_me:$LINENO: checking for $ac_word" >&5
8495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8496 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 case $GMSGFMT in
8500 [\\/]* | ?:[\\/]*)
8501 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8515 done
8516 done
8518 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8520 esac
8522 GMSGFMT=$ac_cv_path_GMSGFMT
8524 if test -n "$GMSGFMT"; then
8525 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8526 echo "${ECHO_T}$GMSGFMT" >&6
8527 else
8528 echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6
8532 # Extract the first word of "xgettext", so it can be a program name with args.
8533 set dummy xgettext; ac_word=$2
8534 echo "$as_me:$LINENO: checking for $ac_word" >&5
8535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8536 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 case "$XGETTEXT" in
8541 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8545 for ac_dir in $PATH; do
8546 test -z "$ac_dir" && ac_dir=.
8547 if test -f $ac_dir/$ac_word; then
8548 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8549 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8550 break
8553 done
8554 IFS="$ac_save_ifs"
8555 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8557 esac
8559 XGETTEXT="$ac_cv_path_XGETTEXT"
8560 if test -n "$XGETTEXT"; then
8561 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8562 echo "${ECHO_T}$XGETTEXT" >&6
8563 else
8564 echo "$as_me:$LINENO: result: no" >&5
8565 echo "${ECHO_T}no" >&6
8569 USE_INCLUDED_LIBINTL=yes
8570 CATOBJEXT=.gmo
8571 INSTOBJEXT=.mo
8572 DATADIRNAME=share
8573 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8574 INTLLIBS=$INTLDEPS
8575 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8576 nls_cv_header_intl=libintl.h
8577 nls_cv_header_libgt=libgettext.h
8580 if test "$XGETTEXT" != ":"; then
8581 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8583 else
8584 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8585 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8586 XGETTEXT=":"
8590 # We need to process the po/ directory.
8591 POSUB=po
8592 else
8593 DATADIRNAME=share
8594 nls_cv_header_intl=libintl.h
8595 nls_cv_header_libgt=libgettext.h
8598 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8599 # because some of the sources are only built for this goal.
8600 if test "$PACKAGE" = gettext; then
8601 USE_NLS=yes
8602 USE_INCLUDED_LIBINTL=yes
8605 for lang in $ALL_LINGUAS; do
8606 GMOFILES="$GMOFILES $lang.gmo"
8607 POFILES="$POFILES $lang.po"
8608 done
8623 if test "x$CATOBJEXT" != "x"; then
8624 if test "x$ALL_LINGUAS" = "x"; then
8625 LINGUAS=
8626 else
8627 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8628 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8629 NEW_LINGUAS=
8630 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8631 case "$ALL_LINGUAS" in
8632 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8633 esac
8634 done
8635 LINGUAS=$NEW_LINGUAS
8636 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8637 echo "${ECHO_T}$LINGUAS" >&6
8640 if test -n "$LINGUAS"; then
8641 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8645 if test $ac_cv_header_locale_h = yes; then
8646 INCLUDE_LOCALE_H="#include <locale.h>"
8647 else
8648 INCLUDE_LOCALE_H="\
8649 /* The system does not provide the header <locale.h>. Take care yourself. */"
8653 if test -f $srcdir/po2tbl.sed.in; then
8654 if test "$CATOBJEXT" = ".cat"; then
8655 if test "${ac_cv_header_linux_version_h+set}" = set; then
8656 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8657 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8658 if test "${ac_cv_header_linux_version_h+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8662 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8663 else
8664 # Is the header compilable?
8665 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8666 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8667 cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #include <linux/version.h>
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8679 (eval $ac_compile) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -s conftest.$ac_objext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 (eval $ac_try) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 ac_header_compiler=yes
8690 else
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 ac_header_compiler=no
8696 rm -f conftest.$ac_objext conftest.$ac_ext
8697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8698 echo "${ECHO_T}$ac_header_compiler" >&6
8700 # Is the header present?
8701 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8702 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8703 cat >conftest.$ac_ext <<_ACEOF
8704 #line $LINENO "configure"
8705 /* confdefs.h. */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 #include <linux/version.h>
8711 _ACEOF
8712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } >/dev/null; then
8720 if test -s conftest.err; then
8721 ac_cpp_err=$ac_c_preproc_warn_flag
8722 else
8723 ac_cpp_err=
8725 else
8726 ac_cpp_err=yes
8728 if test -z "$ac_cpp_err"; then
8729 ac_header_preproc=yes
8730 else
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_header_preproc=no
8736 rm -f conftest.err conftest.$ac_ext
8737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8738 echo "${ECHO_T}$ac_header_preproc" >&6
8740 # So? What about this header?
8741 case $ac_header_compiler:$ac_header_preproc in
8742 yes:no )
8743 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8744 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8746 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8748 cat <<\_ASBOX
8749 ## ------------------------------------ ##
8750 ## Report this to bug-autoconf@gnu.org. ##
8751 ## ------------------------------------ ##
8752 _ASBOX
8754 sed "s/^/$as_me: WARNING: /" >&2
8756 no:yes )
8757 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8758 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8760 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8762 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8764 cat <<\_ASBOX
8765 ## ------------------------------------ ##
8766 ## Report this to bug-autoconf@gnu.org. ##
8767 ## ------------------------------------ ##
8768 _ASBOX
8770 sed "s/^/$as_me: WARNING: /" >&2
8772 esac
8773 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8774 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8775 if test "${ac_cv_header_linux_version_h+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 else
8778 ac_cv_header_linux_version_h=$ac_header_preproc
8780 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8781 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8784 if test $ac_cv_header_linux_version_h = yes; then
8785 msgformat=linux
8786 else
8787 msgformat=xopen
8792 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8794 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8795 $srcdir/po2tbl.sed.in > po2tbl.sed
8798 if test "$PACKAGE" = "gettext"; then
8799 GT_NO="#NO#"
8800 GT_YES=
8801 else
8802 GT_NO=
8803 GT_YES="#YES#"
8808 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8814 if test -f $srcdir/po/POTFILES.in; then
8815 test -d po || mkdir po
8816 if test "x$srcdir" != "x."; then
8817 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8818 posrcprefix="$srcdir/"
8819 else
8820 posrcprefix="../$srcdir/"
8822 else
8823 posrcprefix="../"
8825 rm -f po/POTFILES
8826 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8827 < $srcdir/po/POTFILES.in > po/POTFILES
8831 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8832 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8833 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8834 if test "${enable_maintainer_mode+set}" = set; then
8835 enableval="$enable_maintainer_mode"
8836 USE_MAINTAINER_MODE=$enableval
8837 else
8838 USE_MAINTAINER_MODE=no
8840 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8841 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8844 if test $USE_MAINTAINER_MODE = yes; then
8845 MAINTAINER_MODE_TRUE=
8846 MAINTAINER_MODE_FALSE='#'
8847 else
8848 MAINTAINER_MODE_TRUE='#'
8849 MAINTAINER_MODE_FALSE=
8852 MAINT=$MAINTAINER_MODE_TRUE
8866 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
8868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8870 echo "$as_me:$LINENO: checking for $ac_header" >&5
8871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8877 else
8878 # Is the header compilable?
8879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8883 /* confdefs.h. */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 $ac_includes_default
8889 #include <$ac_header>
8890 _ACEOF
8891 rm -f conftest.$ac_objext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893 (eval $ac_compile) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try='test -s conftest.$ac_objext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 (eval $ac_try) 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_header_compiler=yes
8904 else
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 ac_header_compiler=no
8910 rm -f conftest.$ac_objext conftest.$ac_ext
8911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8912 echo "${ECHO_T}$ac_header_compiler" >&6
8914 # Is the header present?
8915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8917 cat >conftest.$ac_ext <<_ACEOF
8918 #line $LINENO "configure"
8919 /* confdefs.h. */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 #include <$ac_header>
8925 _ACEOF
8926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8928 ac_status=$?
8929 grep -v '^ *+' conftest.er1 >conftest.err
8930 rm -f conftest.er1
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } >/dev/null; then
8934 if test -s conftest.err; then
8935 ac_cpp_err=$ac_c_preproc_warn_flag
8936 else
8937 ac_cpp_err=
8939 else
8940 ac_cpp_err=yes
8942 if test -z "$ac_cpp_err"; then
8943 ac_header_preproc=yes
8944 else
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ac_header_preproc=no
8950 rm -f conftest.err conftest.$ac_ext
8951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8952 echo "${ECHO_T}$ac_header_preproc" >&6
8954 # So? What about this header?
8955 case $ac_header_compiler:$ac_header_preproc in
8956 yes:no )
8957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8962 cat <<\_ASBOX
8963 ## ------------------------------------ ##
8964 ## Report this to bug-autoconf@gnu.org. ##
8965 ## ------------------------------------ ##
8966 _ASBOX
8968 sed "s/^/$as_me: WARNING: /" >&2
8970 no:yes )
8971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8978 cat <<\_ASBOX
8979 ## ------------------------------------ ##
8980 ## Report this to bug-autoconf@gnu.org. ##
8981 ## ------------------------------------ ##
8982 _ASBOX
8984 sed "s/^/$as_me: WARNING: /" >&2
8986 esac
8987 echo "$as_me:$LINENO: checking for $ac_header" >&5
8988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992 eval "$as_ac_Header=$ac_header_preproc"
8994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8999 cat >>confdefs.h <<_ACEOF
9000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9001 _ACEOF
9005 done
9008 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9009 # people who are not cross-compiling but are compiling cross-assemblers.
9010 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9011 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
9012 if test "${host}" = "${target}"; then
9013 cross_gas=no
9014 else
9015 cross_gas=yes
9017 cat >>confdefs.h <<\_ACEOF
9018 #define CROSS_COMPILE 1
9019 _ACEOF
9022 echo "$as_me:$LINENO: result: $cross_gas" >&5
9023 echo "${ECHO_T}$cross_gas" >&6
9025 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9026 # for constant arguments. Useless!
9027 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9028 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9029 if test "${ac_cv_working_alloca_h+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032 cat >conftest.$ac_ext <<_ACEOF
9033 #line $LINENO "configure"
9034 /* confdefs.h. */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9039 #include <alloca.h>
9041 main ()
9043 char *p = (char *) alloca (2 * sizeof (int));
9045 return 0;
9047 _ACEOF
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9050 (eval $ac_link) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -s conftest$ac_exeext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 ac_cv_working_alloca_h=yes
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_working_alloca_h=no
9067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9069 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9070 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9071 if test $ac_cv_working_alloca_h = yes; then
9073 cat >>confdefs.h <<\_ACEOF
9074 #define HAVE_ALLOCA_H 1
9075 _ACEOF
9079 echo "$as_me:$LINENO: checking for alloca" >&5
9080 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9081 if test "${ac_cv_func_alloca_works+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084 cat >conftest.$ac_ext <<_ACEOF
9085 #line $LINENO "configure"
9086 /* confdefs.h. */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9091 #ifdef __GNUC__
9092 # define alloca __builtin_alloca
9093 #else
9094 # ifdef _MSC_VER
9095 # include <malloc.h>
9096 # define alloca _alloca
9097 # else
9098 # if HAVE_ALLOCA_H
9099 # include <alloca.h>
9100 # else
9101 # ifdef _AIX
9102 #pragma alloca
9103 # else
9104 # ifndef alloca /* predefined by HP cc +Olibcalls */
9105 char *alloca ();
9106 # endif
9107 # endif
9108 # endif
9109 # endif
9110 #endif
9113 main ()
9115 char *p = (char *) alloca (1);
9117 return 0;
9119 _ACEOF
9120 rm -f conftest.$ac_objext conftest$ac_exeext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9122 (eval $ac_link) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try='test -s conftest$ac_exeext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_cv_func_alloca_works=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_cv_func_alloca_works=no
9139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9142 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9144 if test $ac_cv_func_alloca_works = yes; then
9146 cat >>confdefs.h <<\_ACEOF
9147 #define HAVE_ALLOCA 1
9148 _ACEOF
9150 else
9151 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9152 # that cause trouble. Some versions do not even contain alloca or
9153 # contain a buggy version. If you still want to use their alloca,
9154 # use ar to extract alloca.o from them instead of compiling alloca.c.
9156 ALLOCA=alloca.$ac_objext
9158 cat >>confdefs.h <<\_ACEOF
9159 #define C_ALLOCA 1
9160 _ACEOF
9163 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9164 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9165 if test "${ac_cv_os_cray+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168 cat >conftest.$ac_ext <<_ACEOF
9169 #line $LINENO "configure"
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 #if defined(CRAY) && ! defined(CRAY2)
9176 webecray
9177 #else
9178 wenotbecray
9179 #endif
9181 _ACEOF
9182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9183 $EGREP "webecray" >/dev/null 2>&1; then
9184 ac_cv_os_cray=yes
9185 else
9186 ac_cv_os_cray=no
9188 rm -f conftest*
9191 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9192 echo "${ECHO_T}$ac_cv_os_cray" >&6
9193 if test $ac_cv_os_cray = yes; then
9194 for ac_func in _getb67 GETB67 getb67; do
9195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9196 echo "$as_me:$LINENO: checking for $ac_func" >&5
9197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9198 if eval "test \"\${$as_ac_var+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 else
9201 cat >conftest.$ac_ext <<_ACEOF
9202 #line $LINENO "configure"
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 /* System header to define __stub macros and hopefully few prototypes,
9209 which can conflict with char $ac_func (); below.
9210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9211 <limits.h> exists even on freestanding compilers. */
9212 #ifdef __STDC__
9213 # include <limits.h>
9214 #else
9215 # include <assert.h>
9216 #endif
9217 /* Override any gcc2 internal prototype to avoid an error. */
9218 #ifdef __cplusplus
9219 extern "C"
9221 #endif
9222 /* We use char because int might match the return type of a gcc2
9223 builtin and then its argument prototype would still apply. */
9224 char $ac_func ();
9225 /* The GNU C library defines this for functions which it implements
9226 to always fail with ENOSYS. Some functions are actually named
9227 something starting with __ and the normal name is an alias. */
9228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9229 choke me
9230 #else
9231 char (*f) () = $ac_func;
9232 #endif
9233 #ifdef __cplusplus
9235 #endif
9238 main ()
9240 return f != $ac_func;
9242 return 0;
9244 _ACEOF
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9247 (eval $ac_link) 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } &&
9251 { ac_try='test -s conftest$ac_exeext'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 (eval $ac_try) 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; }; then
9257 eval "$as_ac_var=yes"
9258 else
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 eval "$as_ac_var=no"
9264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9268 if test `eval echo '${'$as_ac_var'}'` = yes; then
9270 cat >>confdefs.h <<_ACEOF
9271 #define CRAY_STACKSEG_END $ac_func
9272 _ACEOF
9274 break
9277 done
9280 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9281 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9282 if test "${ac_cv_c_stack_direction+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285 if test "$cross_compiling" = yes; then
9286 ac_cv_c_stack_direction=0
9287 else
9288 cat >conftest.$ac_ext <<_ACEOF
9289 #line $LINENO "configure"
9290 /* confdefs.h. */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9296 find_stack_direction ()
9298 static char *addr = 0;
9299 auto char dummy;
9300 if (addr == 0)
9302 addr = &dummy;
9303 return find_stack_direction ();
9305 else
9306 return (&dummy > addr) ? 1 : -1;
9310 main ()
9312 exit (find_stack_direction () < 0);
9314 _ACEOF
9315 rm -f conftest$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317 (eval $ac_link) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_c_stack_direction=1
9327 else
9328 echo "$as_me: program exited with status $ac_status" >&5
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 ( exit $ac_status )
9333 ac_cv_c_stack_direction=-1
9335 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9339 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9341 cat >>confdefs.h <<_ACEOF
9342 #define STACK_DIRECTION $ac_cv_c_stack_direction
9343 _ACEOF
9348 echo "$as_me:$LINENO: checking for inline" >&5
9349 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9350 if test "${ac_cv_c_inline+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 ac_cv_c_inline=no
9354 for ac_kw in inline __inline__ __inline; do
9355 cat >conftest.$ac_ext <<_ACEOF
9356 #line $LINENO "configure"
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 #ifndef __cplusplus
9363 typedef int foo_t;
9364 static $ac_kw foo_t static_foo () {return 0; }
9365 $ac_kw foo_t foo () {return 0; }
9366 #endif
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371 (eval $ac_compile) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_c_inline=$ac_kw; break
9382 else
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9387 rm -f conftest.$ac_objext conftest.$ac_ext
9388 done
9391 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9392 echo "${ECHO_T}$ac_cv_c_inline" >&6
9393 case $ac_cv_c_inline in
9394 inline | yes) ;;
9396 cat >>confdefs.h <<\_ACEOF
9397 #define inline
9398 _ACEOF
9400 *) cat >>confdefs.h <<_ACEOF
9401 #define inline $ac_cv_c_inline
9402 _ACEOF
9404 esac
9407 # VMS doesn't have unlink.
9410 for ac_func in unlink remove
9412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9413 echo "$as_me:$LINENO: checking for $ac_func" >&5
9414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9415 if eval "test \"\${$as_ac_var+set}\" = set"; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418 cat >conftest.$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 /* System header to define __stub macros and hopefully few prototypes,
9426 which can conflict with char $ac_func (); below.
9427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9428 <limits.h> exists even on freestanding compilers. */
9429 #ifdef __STDC__
9430 # include <limits.h>
9431 #else
9432 # include <assert.h>
9433 #endif
9434 /* Override any gcc2 internal prototype to avoid an error. */
9435 #ifdef __cplusplus
9436 extern "C"
9438 #endif
9439 /* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9441 char $ac_func ();
9442 /* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9446 choke me
9447 #else
9448 char (*f) () = $ac_func;
9449 #endif
9450 #ifdef __cplusplus
9452 #endif
9455 main ()
9457 return f != $ac_func;
9459 return 0;
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -s conftest$ac_exeext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 eval "$as_ac_var=yes"
9475 else
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9479 eval "$as_ac_var=no"
9481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9485 if test `eval echo '${'$as_ac_var'}'` = yes; then
9486 cat >>confdefs.h <<_ACEOF
9487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9488 _ACEOF
9489 break
9491 done
9494 # Some systems don't have sbrk().
9496 for ac_func in sbrk
9498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9499 echo "$as_me:$LINENO: checking for $ac_func" >&5
9500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9501 if eval "test \"\${$as_ac_var+set}\" = set"; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 cat >conftest.$ac_ext <<_ACEOF
9505 #line $LINENO "configure"
9506 /* confdefs.h. */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char $ac_func (); below.
9513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9514 <limits.h> exists even on freestanding compilers. */
9515 #ifdef __STDC__
9516 # include <limits.h>
9517 #else
9518 # include <assert.h>
9519 #endif
9520 /* Override any gcc2 internal prototype to avoid an error. */
9521 #ifdef __cplusplus
9522 extern "C"
9524 #endif
9525 /* We use char because int might match the return type of a gcc2
9526 builtin and then its argument prototype would still apply. */
9527 char $ac_func ();
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9532 choke me
9533 #else
9534 char (*f) () = $ac_func;
9535 #endif
9536 #ifdef __cplusplus
9538 #endif
9541 main ()
9543 return f != $ac_func;
9545 return 0;
9547 _ACEOF
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -s conftest$ac_exeext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 (eval $ac_try) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 eval "$as_ac_var=yes"
9561 else
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 eval "$as_ac_var=no"
9567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9571 if test `eval echo '${'$as_ac_var'}'` = yes; then
9572 cat >>confdefs.h <<_ACEOF
9573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9574 _ACEOF
9577 done
9580 # do we need the math library?
9581 case "${need_libm}" in
9582 yes)
9583 LIBM=
9584 case $host in
9585 *-*-beos* | *-*-cygwin* | *-*-pw32*)
9586 # These system don't have libm
9588 *-ncr-sysv4.3*)
9589 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
9590 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
9591 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 ac_check_lib_save_LIBS=$LIBS
9595 LIBS="-lmw $LIBS"
9596 cat >conftest.$ac_ext <<_ACEOF
9597 #line $LINENO "configure"
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9604 /* Override any gcc2 internal prototype to avoid an error. */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9610 char _mwvalidcheckl ();
9612 main ()
9614 _mwvalidcheckl ();
9616 return 0;
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_lib_mw__mwvalidcheckl=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_cv_lib_mw__mwvalidcheckl=no
9638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9639 LIBS=$ac_check_lib_save_LIBS
9641 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
9642 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
9643 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
9644 LIBM="-lmw"
9647 echo "$as_me:$LINENO: checking for main in -lm" >&5
9648 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9649 if test "${ac_cv_lib_m_main+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652 ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-lm $LIBS"
9654 cat >conftest.$ac_ext <<_ACEOF
9655 #line $LINENO "configure"
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9664 main ()
9666 main ();
9668 return 0;
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -s conftest$ac_exeext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_lib_m_main=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_cv_lib_m_main=no
9690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9693 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9694 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9695 if test $ac_cv_lib_m_main = yes; then
9696 LIBM="$LIBM -lm"
9701 echo "$as_me:$LINENO: checking for main in -lm" >&5
9702 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9703 if test "${ac_cv_lib_m_main+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706 ac_check_lib_save_LIBS=$LIBS
9707 LIBS="-lm $LIBS"
9708 cat >conftest.$ac_ext <<_ACEOF
9709 #line $LINENO "configure"
9710 /* confdefs.h. */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9718 main ()
9720 main ();
9722 return 0;
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727 (eval $ac_link) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -s conftest$ac_exeext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_lib_m_main=yes
9738 else
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_cv_lib_m_main=no
9744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9747 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9748 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9749 if test $ac_cv_lib_m_main = yes; then
9750 LIBM="-lm"
9754 esac
9758 esac
9760 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
9761 # enough, but on some of those systems, the assert macro relies on requoting
9762 # working properly!
9763 echo "$as_me:$LINENO: checking for working assert macro" >&5
9764 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
9765 if test "${gas_cv_assert_ok+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768 cat >conftest.$ac_ext <<_ACEOF
9769 #line $LINENO "configure"
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <assert.h>
9776 #include <stdio.h>
9778 main ()
9781 /* check for requoting problems */
9782 static int a, b, c, d;
9783 static char *s;
9784 assert (!strcmp(s, "foo bar baz quux"));
9785 /* check for newline handling */
9786 assert (a == b
9787 || c == d);
9790 return 0;
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9795 (eval $ac_link) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try='test -s conftest$ac_exeext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 gas_cv_assert_ok=yes
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 gas_cv_assert_ok=no
9812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9814 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
9815 echo "${ECHO_T}$gas_cv_assert_ok" >&6
9816 test $gas_cv_assert_ok = yes ||
9817 cat >>confdefs.h <<\_ACEOF
9818 #define BROKEN_ASSERT 1
9819 _ACEOF
9823 # On some systems, the system header files may not declare malloc, realloc,
9824 # and free. There are places where gas needs these functions to have been
9825 # declared -- such as when taking their addresses.
9826 gas_test_headers="
9827 #ifdef HAVE_MEMORY_H
9828 #include <memory.h>
9829 #endif
9830 #ifdef HAVE_STRING_H
9831 #include <string.h>
9832 #else
9833 #ifdef HAVE_STRINGS_H
9834 #include <strings.h>
9835 #endif
9836 #endif
9837 #ifdef HAVE_STDLIB_H
9838 #include <stdlib.h>
9839 #endif
9840 #ifdef HAVE_UNISTD_H
9841 #include <unistd.h>
9842 #endif
9845 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
9846 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
9847 if test "${gas_cv_decl_needed_strstr+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850 cat >conftest.$ac_ext <<_ACEOF
9851 #line $LINENO "configure"
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $gas_test_headers
9859 main ()
9862 typedef char *(*f)();
9863 f x;
9864 x = (f) strstr;
9867 return 0;
9869 _ACEOF
9870 rm -f conftest.$ac_objext conftest$ac_exeext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9872 (eval $ac_link) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -s conftest$ac_exeext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 gas_cv_decl_needed_strstr=no
9883 else
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9887 gas_cv_decl_needed_strstr=yes
9889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
9892 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
9893 if test $gas_cv_decl_needed_strstr = yes; then
9895 cat >>confdefs.h <<\_ACEOF
9896 #define NEED_DECLARATION_STRSTR 1
9897 _ACEOF
9902 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
9903 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
9904 if test "${gas_cv_decl_needed_malloc+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907 cat >conftest.$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 $gas_test_headers
9916 main ()
9919 typedef char *(*f)();
9920 f x;
9921 x = (f) malloc;
9924 return 0;
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929 (eval $ac_link) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -s conftest$ac_exeext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 (eval $ac_try) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 gas_cv_decl_needed_malloc=no
9940 else
9941 echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9944 gas_cv_decl_needed_malloc=yes
9946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9948 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
9949 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
9950 if test $gas_cv_decl_needed_malloc = yes; then
9952 cat >>confdefs.h <<\_ACEOF
9953 #define NEED_DECLARATION_MALLOC 1
9954 _ACEOF
9959 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
9960 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
9961 if test "${gas_cv_decl_needed_free+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9966 /* confdefs.h. */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 $gas_test_headers
9973 main ()
9976 typedef void (*f)();
9977 f x;
9978 x = (f) free;
9981 return 0;
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 gas_cv_decl_needed_free=no
9997 else
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10001 gas_cv_decl_needed_free=yes
10003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10006 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10007 if test $gas_cv_decl_needed_free = yes; then
10009 cat >>confdefs.h <<\_ACEOF
10010 #define NEED_DECLARATION_FREE 1
10011 _ACEOF
10016 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10017 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10018 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 cat >conftest.$ac_ext <<_ACEOF
10022 #line $LINENO "configure"
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 $gas_test_headers
10030 main ()
10033 typedef char *(*f)();
10034 f x;
10035 x = (f) sbrk;
10038 return 0;
10040 _ACEOF
10041 rm -f conftest.$ac_objext conftest$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -s conftest$ac_exeext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 gas_cv_decl_needed_sbrk=no
10054 else
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 gas_cv_decl_needed_sbrk=yes
10060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10063 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10064 if test $gas_cv_decl_needed_sbrk = yes; then
10066 cat >>confdefs.h <<\_ACEOF
10067 #define NEED_DECLARATION_SBRK 1
10068 _ACEOF
10073 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10074 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10075 if test "${gas_cv_decl_needed_environ+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 $gas_test_headers
10087 main ()
10090 typedef char **f;
10091 f x;
10092 x = (f) environ;
10095 return 0;
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } &&
10104 { ac_try='test -s conftest$ac_exeext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 gas_cv_decl_needed_environ=no
10111 else
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10115 gas_cv_decl_needed_environ=yes
10117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10119 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10120 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10121 if test $gas_cv_decl_needed_environ = yes; then
10123 cat >>confdefs.h <<\_ACEOF
10124 #define NEED_DECLARATION_ENVIRON 1
10125 _ACEOF
10130 # Does errno.h declare errno, or do we have to add a separate declaration
10131 # for it?
10133 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10134 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10135 if test "${gas_cv_decl_needed_errno+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138 cat >conftest.$ac_ext <<_ACEOF
10139 #line $LINENO "configure"
10140 /* confdefs.h. */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10146 #ifdef HAVE_ERRNO_H
10147 #include <errno.h>
10148 #endif
10151 main ()
10154 typedef int f;
10155 f x;
10156 x = (f) errno;
10159 return 0;
10161 _ACEOF
10162 rm -f conftest.$ac_objext conftest$ac_exeext
10163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10164 (eval $ac_link) 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } &&
10168 { ac_try='test -s conftest$ac_exeext'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; }; then
10174 gas_cv_decl_needed_errno=no
10175 else
10176 echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10179 gas_cv_decl_needed_errno=yes
10181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10183 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10184 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10185 if test $gas_cv_decl_needed_errno = yes; then
10187 cat >>confdefs.h <<\_ACEOF
10188 #define NEED_DECLARATION_ERRNO 1
10189 _ACEOF
10196 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10198 ac_config_commands="$ac_config_commands default"
10201 cat >confcache <<\_ACEOF
10202 # This file is a shell script that caches the results of configure
10203 # tests run on this system so they can be shared between configure
10204 # scripts and configure runs, see configure's option --config-cache.
10205 # It is not useful on other systems. If it contains results you don't
10206 # want to keep, you may remove or edit it.
10208 # config.status only pays attention to the cache file if you give it
10209 # the --recheck option to rerun configure.
10211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10213 # following values.
10215 _ACEOF
10217 # The following way of writing the cache mishandles newlines in values,
10218 # but we know of no workaround that is simple, portable, and efficient.
10219 # So, don't put newlines in cache variables' values.
10220 # Ultrix sh set writes to stderr and can't be redirected directly,
10221 # and sets the high bit in the cache file unless we assign to the vars.
10223 (set) 2>&1 |
10224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10225 *ac_space=\ *)
10226 # `set' does not quote correctly, so add quotes (double-quote
10227 # substitution turns \\\\ into \\, and sed turns \\ into \).
10228 sed -n \
10229 "s/'/'\\\\''/g;
10230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10233 # `set' quotes correctly as required by POSIX, so do not add quotes.
10234 sed -n \
10235 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10237 esac;
10239 sed '
10240 t clear
10241 : clear
10242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10243 t end
10244 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10245 : end' >>confcache
10246 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10247 if test -w $cache_file; then
10248 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10249 cat confcache >$cache_file
10250 else
10251 echo "not updating unwritable cache $cache_file"
10254 rm -f confcache
10256 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10257 # Let make expand exec_prefix.
10258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10262 # trailing colons and then remove the whole line if VPATH becomes empty
10263 # (actually we leave an empty line to preserve line numbers).
10264 if test "x$srcdir" = x.; then
10265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10266 s/:*\$(srcdir):*/:/;
10267 s/:*\${srcdir}:*/:/;
10268 s/:*@srcdir@:*/:/;
10269 s/^\([^=]*=[ ]*\):*/\1/;
10270 s/:*$//;
10271 s/^[^=]*=[ ]*$//;
10275 DEFS=-DHAVE_CONFIG_H
10277 ac_libobjs=
10278 ac_ltlibobjs=
10279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10280 # 1. Remove the extension, and $U if already installed.
10281 ac_i=`echo "$ac_i" |
10282 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10283 # 2. Add them.
10284 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10285 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10286 done
10287 LIBOBJS=$ac_libobjs
10289 LTLIBOBJS=$ac_ltlibobjs
10292 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10293 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10294 Usually this means the macro was only invoked conditionally." >&5
10295 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10296 Usually this means the macro was only invoked conditionally." >&2;}
10297 { (exit 1); exit 1; }; }
10299 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10300 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10301 Usually this means the macro was only invoked conditionally." >&5
10302 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10303 Usually this means the macro was only invoked conditionally." >&2;}
10304 { (exit 1); exit 1; }; }
10306 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10307 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10308 Usually this means the macro was only invoked conditionally." >&5
10309 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10310 Usually this means the macro was only invoked conditionally." >&2;}
10311 { (exit 1); exit 1; }; }
10314 : ${CONFIG_STATUS=./config.status}
10315 ac_clean_files_save=$ac_clean_files
10316 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10317 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10318 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10319 cat >$CONFIG_STATUS <<_ACEOF
10320 #! $SHELL
10321 # Generated by $as_me.
10322 # Run this file to recreate the current configuration.
10323 # Compiler output produced by configure, useful for debugging
10324 # configure, is in config.log if it exists.
10326 debug=false
10327 ac_cs_recheck=false
10328 ac_cs_silent=false
10329 SHELL=\${CONFIG_SHELL-$SHELL}
10330 _ACEOF
10332 cat >>$CONFIG_STATUS <<\_ACEOF
10333 ## --------------------- ##
10334 ## M4sh Initialization. ##
10335 ## --------------------- ##
10337 # Be Bourne compatible
10338 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10339 emulate sh
10340 NULLCMD=:
10341 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10342 # is contrary to our usage. Disable this feature.
10343 alias -g '${1+"$@"}'='"$@"'
10344 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10345 set -o posix
10348 # Support unset when possible.
10349 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10350 as_unset=unset
10351 else
10352 as_unset=false
10356 # Work around bugs in pre-3.0 UWIN ksh.
10357 $as_unset ENV MAIL MAILPATH
10358 PS1='$ '
10359 PS2='> '
10360 PS4='+ '
10362 # NLS nuisances.
10363 for as_var in \
10364 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10365 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10366 LC_TELEPHONE LC_TIME
10368 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10369 eval $as_var=C; export $as_var
10370 else
10371 $as_unset $as_var
10373 done
10375 # Required to use basename.
10376 if expr a : '\(a\)' >/dev/null 2>&1; then
10377 as_expr=expr
10378 else
10379 as_expr=false
10382 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10383 as_basename=basename
10384 else
10385 as_basename=false
10389 # Name of the executable.
10390 as_me=`$as_basename "$0" ||
10391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10392 X"$0" : 'X\(//\)$' \| \
10393 X"$0" : 'X\(/\)$' \| \
10394 . : '\(.\)' 2>/dev/null ||
10395 echo X/"$0" |
10396 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10397 /^X\/\(\/\/\)$/{ s//\1/; q; }
10398 /^X\/\(\/\).*/{ s//\1/; q; }
10399 s/.*/./; q'`
10402 # PATH needs CR, and LINENO needs CR and PATH.
10403 # Avoid depending upon Character Ranges.
10404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10407 as_cr_digits='0123456789'
10408 as_cr_alnum=$as_cr_Letters$as_cr_digits
10410 # The user is always right.
10411 if test "${PATH_SEPARATOR+set}" != set; then
10412 echo "#! /bin/sh" >conf$$.sh
10413 echo "exit 0" >>conf$$.sh
10414 chmod +x conf$$.sh
10415 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10416 PATH_SEPARATOR=';'
10417 else
10418 PATH_SEPARATOR=:
10420 rm -f conf$$.sh
10424 as_lineno_1=$LINENO
10425 as_lineno_2=$LINENO
10426 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10427 test "x$as_lineno_1" != "x$as_lineno_2" &&
10428 test "x$as_lineno_3" = "x$as_lineno_2" || {
10429 # Find who we are. Look in the path if we contain no path at all
10430 # relative or not.
10431 case $0 in
10432 *[\\/]* ) as_myself=$0 ;;
10433 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10436 IFS=$as_save_IFS
10437 test -z "$as_dir" && as_dir=.
10438 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10439 done
10442 esac
10443 # We did not find ourselves, most probably we were run as `sh COMMAND'
10444 # in which case we are not to be found in the path.
10445 if test "x$as_myself" = x; then
10446 as_myself=$0
10448 if test ! -f "$as_myself"; then
10449 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10450 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10451 { (exit 1); exit 1; }; }
10453 case $CONFIG_SHELL in
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for as_base in sh bash ksh sh5; do
10461 case $as_dir in
10463 if ("$as_dir/$as_base" -c '
10464 as_lineno_1=$LINENO
10465 as_lineno_2=$LINENO
10466 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10467 test "x$as_lineno_1" != "x$as_lineno_2" &&
10468 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10469 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10470 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10471 CONFIG_SHELL=$as_dir/$as_base
10472 export CONFIG_SHELL
10473 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10474 fi;;
10475 esac
10476 done
10477 done
10479 esac
10481 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10482 # uniformly replaced by the line number. The first 'sed' inserts a
10483 # line-number line before each line; the second 'sed' does the real
10484 # work. The second script uses 'N' to pair each line-number line
10485 # with the numbered line, and appends trailing '-' during
10486 # substitution so that $LINENO is not a special case at line end.
10487 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10488 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10489 sed '=' <$as_myself |
10490 sed '
10492 s,$,-,
10493 : loop
10494 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10495 t loop
10496 s,-$,,
10497 s,^['$as_cr_digits']*\n,,
10498 ' >$as_me.lineno &&
10499 chmod +x $as_me.lineno ||
10500 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10501 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10502 { (exit 1); exit 1; }; }
10504 # Don't try to exec as it changes $[0], causing all sort of problems
10505 # (the dirname of $[0] is not the place where we might find the
10506 # original and so on. Autoconf is especially sensible to this).
10507 . ./$as_me.lineno
10508 # Exit status is that of the last command.
10509 exit
10513 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10514 *c*,-n*) ECHO_N= ECHO_C='
10515 ' ECHO_T=' ' ;;
10516 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10517 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10518 esac
10520 if expr a : '\(a\)' >/dev/null 2>&1; then
10521 as_expr=expr
10522 else
10523 as_expr=false
10526 rm -f conf$$ conf$$.exe conf$$.file
10527 echo >conf$$.file
10528 if ln -s conf$$.file conf$$ 2>/dev/null; then
10529 # We could just check for DJGPP; but this test a) works b) is more generic
10530 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10531 if test -f conf$$.exe; then
10532 # Don't use ln at all; we don't have any links
10533 as_ln_s='cp -p'
10534 else
10535 as_ln_s='ln -s'
10537 elif ln conf$$.file conf$$ 2>/dev/null; then
10538 as_ln_s=ln
10539 else
10540 as_ln_s='cp -p'
10542 rm -f conf$$ conf$$.exe conf$$.file
10544 if mkdir -p . 2>/dev/null; then
10545 as_mkdir_p=:
10546 else
10547 as_mkdir_p=false
10550 as_executable_p="test -f"
10552 # Sed expression to map a string onto a valid CPP name.
10553 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10555 # Sed expression to map a string onto a valid variable name.
10556 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10559 # IFS
10560 # We need space, tab and new line, in precisely that order.
10561 as_nl='
10563 IFS=" $as_nl"
10565 # CDPATH.
10566 $as_unset CDPATH
10568 exec 6>&1
10570 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10571 # report actual input values of CONFIG_FILES etc. instead of their
10572 # values after options handling. Logging --version etc. is OK.
10573 exec 5>>config.log
10575 echo
10576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10577 ## Running $as_me. ##
10578 _ASBOX
10579 } >&5
10580 cat >&5 <<_CSEOF
10582 This file was extended by $as_me, which was
10583 generated by GNU Autoconf 2.57. Invocation command line was
10585 CONFIG_FILES = $CONFIG_FILES
10586 CONFIG_HEADERS = $CONFIG_HEADERS
10587 CONFIG_LINKS = $CONFIG_LINKS
10588 CONFIG_COMMANDS = $CONFIG_COMMANDS
10589 $ $0 $@
10591 _CSEOF
10592 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10593 echo >&5
10594 _ACEOF
10596 # Files that config.status was made for.
10597 if test -n "$ac_config_files"; then
10598 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10601 if test -n "$ac_config_headers"; then
10602 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10605 if test -n "$ac_config_links"; then
10606 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10609 if test -n "$ac_config_commands"; then
10610 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10613 cat >>$CONFIG_STATUS <<\_ACEOF
10615 ac_cs_usage="\
10616 \`$as_me' instantiates files from templates according to the
10617 current configuration.
10619 Usage: $0 [OPTIONS] [FILE]...
10621 -h, --help print this help, then exit
10622 -V, --version print version number, then exit
10623 -q, --quiet do not print progress messages
10624 -d, --debug don't remove temporary files
10625 --recheck update $as_me by reconfiguring in the same conditions
10626 --file=FILE[:TEMPLATE]
10627 instantiate the configuration file FILE
10628 --header=FILE[:TEMPLATE]
10629 instantiate the configuration header FILE
10631 Configuration files:
10632 $config_files
10634 Configuration headers:
10635 $config_headers
10637 Configuration commands:
10638 $config_commands
10640 Report bugs to <bug-autoconf@gnu.org>."
10641 _ACEOF
10643 cat >>$CONFIG_STATUS <<_ACEOF
10644 ac_cs_version="\\
10645 config.status
10646 configured by $0, generated by GNU Autoconf 2.57,
10647 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10649 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10650 Free Software Foundation, Inc.
10651 This config.status script is free software; the Free Software Foundation
10652 gives unlimited permission to copy, distribute and modify it."
10653 srcdir=$srcdir
10654 INSTALL="$INSTALL"
10655 _ACEOF
10657 cat >>$CONFIG_STATUS <<\_ACEOF
10658 # If no file are specified by the user, then we need to provide default
10659 # value. By we need to know if files were specified by the user.
10660 ac_need_defaults=:
10661 while test $# != 0
10663 case $1 in
10664 --*=*)
10665 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10666 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10667 ac_shift=:
10670 ac_option=$1
10671 ac_optarg=$2
10672 ac_shift=shift
10674 *) # This is not an option, so the user has probably given explicit
10675 # arguments.
10676 ac_option=$1
10677 ac_need_defaults=false;;
10678 esac
10680 case $ac_option in
10681 # Handling of the options.
10682 _ACEOF
10683 cat >>$CONFIG_STATUS <<\_ACEOF
10684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10685 ac_cs_recheck=: ;;
10686 --version | --vers* | -V )
10687 echo "$ac_cs_version"; exit 0 ;;
10688 --he | --h)
10689 # Conflict between --help and --header
10690 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10691 Try \`$0 --help' for more information." >&5
10692 echo "$as_me: error: ambiguous option: $1
10693 Try \`$0 --help' for more information." >&2;}
10694 { (exit 1); exit 1; }; };;
10695 --help | --hel | -h )
10696 echo "$ac_cs_usage"; exit 0 ;;
10697 --debug | --d* | -d )
10698 debug=: ;;
10699 --file | --fil | --fi | --f )
10700 $ac_shift
10701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10702 ac_need_defaults=false;;
10703 --header | --heade | --head | --hea )
10704 $ac_shift
10705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10706 ac_need_defaults=false;;
10707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10709 ac_cs_silent=: ;;
10711 # This is an error.
10712 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10713 Try \`$0 --help' for more information." >&5
10714 echo "$as_me: error: unrecognized option: $1
10715 Try \`$0 --help' for more information." >&2;}
10716 { (exit 1); exit 1; }; } ;;
10718 *) ac_config_targets="$ac_config_targets $1" ;;
10720 esac
10721 shift
10722 done
10724 ac_configure_extra_args=
10726 if $ac_cs_silent; then
10727 exec 6>/dev/null
10728 ac_configure_extra_args="$ac_configure_extra_args --silent"
10731 _ACEOF
10732 cat >>$CONFIG_STATUS <<_ACEOF
10733 if \$ac_cs_recheck; then
10734 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10735 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10738 _ACEOF
10740 cat >>$CONFIG_STATUS <<_ACEOF
10742 # INIT-COMMANDS section.
10745 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10746 target_cpu_type=${target_cpu_type}
10747 cgen_cpu_prefix=${cgen_cpu_prefix}
10748 obj_format=${obj_format}
10749 te_file=${te_file}
10751 _ACEOF
10755 cat >>$CONFIG_STATUS <<\_ACEOF
10756 for ac_config_target in $ac_config_targets
10758 case "$ac_config_target" in
10759 # Handling of arguments.
10760 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
10761 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
10762 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10763 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10764 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10765 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10766 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10767 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10770 { (exit 1); exit 1; }; };;
10771 esac
10772 done
10774 # If the user did not use the arguments to specify the items to instantiate,
10775 # then the envvar interface is used. Set only those that are not.
10776 # We use the long form for the default assignment because of an extremely
10777 # bizarre bug on SunOS 4.1.3.
10778 if $ac_need_defaults; then
10779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10784 # Have a temporary directory for convenience. Make it in the build tree
10785 # simply because there is no reason to put it here, and in addition,
10786 # creating and moving files from /tmp can sometimes cause problems.
10787 # Create a temporary directory, and hook for its removal unless debugging.
10788 $debug ||
10790 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10791 trap '{ (exit 1); exit 1; }' 1 2 13 15
10794 # Create a (secure) tmp directory for tmp files.
10797 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10798 test -n "$tmp" && test -d "$tmp"
10799 } ||
10801 tmp=./confstat$$-$RANDOM
10802 (umask 077 && mkdir $tmp)
10803 } ||
10805 echo "$me: cannot create a temporary directory in ." >&2
10806 { (exit 1); exit 1; }
10809 _ACEOF
10811 cat >>$CONFIG_STATUS <<_ACEOF
10814 # CONFIG_FILES section.
10817 # No need to generate the scripts if there are no CONFIG_FILES.
10818 # This happens for instance when ./config.status config.h
10819 if test -n "\$CONFIG_FILES"; then
10820 # Protect against being on the right side of a sed subst in config.status.
10821 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10822 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10823 s,@SHELL@,$SHELL,;t t
10824 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10825 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10826 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10827 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10828 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10829 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10830 s,@exec_prefix@,$exec_prefix,;t t
10831 s,@prefix@,$prefix,;t t
10832 s,@program_transform_name@,$program_transform_name,;t t
10833 s,@bindir@,$bindir,;t t
10834 s,@sbindir@,$sbindir,;t t
10835 s,@libexecdir@,$libexecdir,;t t
10836 s,@datadir@,$datadir,;t t
10837 s,@sysconfdir@,$sysconfdir,;t t
10838 s,@sharedstatedir@,$sharedstatedir,;t t
10839 s,@localstatedir@,$localstatedir,;t t
10840 s,@libdir@,$libdir,;t t
10841 s,@includedir@,$includedir,;t t
10842 s,@oldincludedir@,$oldincludedir,;t t
10843 s,@infodir@,$infodir,;t t
10844 s,@mandir@,$mandir,;t t
10845 s,@build_alias@,$build_alias,;t t
10846 s,@host_alias@,$host_alias,;t t
10847 s,@target_alias@,$target_alias,;t t
10848 s,@DEFS@,$DEFS,;t t
10849 s,@ECHO_C@,$ECHO_C,;t t
10850 s,@ECHO_N@,$ECHO_N,;t t
10851 s,@ECHO_T@,$ECHO_T,;t t
10852 s,@LIBS@,$LIBS,;t t
10853 s,@build@,$build,;t t
10854 s,@build_cpu@,$build_cpu,;t t
10855 s,@build_vendor@,$build_vendor,;t t
10856 s,@build_os@,$build_os,;t t
10857 s,@host@,$host,;t t
10858 s,@host_cpu@,$host_cpu,;t t
10859 s,@host_vendor@,$host_vendor,;t t
10860 s,@host_os@,$host_os,;t t
10861 s,@target@,$target,;t t
10862 s,@target_cpu@,$target_cpu,;t t
10863 s,@target_vendor@,$target_vendor,;t t
10864 s,@target_os@,$target_os,;t t
10865 s,@CC@,$CC,;t t
10866 s,@CFLAGS@,$CFLAGS,;t t
10867 s,@LDFLAGS@,$LDFLAGS,;t t
10868 s,@CPPFLAGS@,$CPPFLAGS,;t t
10869 s,@ac_ct_CC@,$ac_ct_CC,;t t
10870 s,@EXEEXT@,$EXEEXT,;t t
10871 s,@OBJEXT@,$OBJEXT,;t t
10872 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10873 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10874 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10875 s,@CYGPATH_W@,$CYGPATH_W,;t t
10876 s,@PACKAGE@,$PACKAGE,;t t
10877 s,@VERSION@,$VERSION,;t t
10878 s,@ACLOCAL@,$ACLOCAL,;t t
10879 s,@AUTOCONF@,$AUTOCONF,;t t
10880 s,@AUTOMAKE@,$AUTOMAKE,;t t
10881 s,@AUTOHEADER@,$AUTOHEADER,;t t
10882 s,@MAKEINFO@,$MAKEINFO,;t t
10883 s,@AMTAR@,$AMTAR,;t t
10884 s,@install_sh@,$install_sh,;t t
10885 s,@STRIP@,$STRIP,;t t
10886 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10887 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10888 s,@AWK@,$AWK,;t t
10889 s,@SET_MAKE@,$SET_MAKE,;t t
10890 s,@am__leading_dot@,$am__leading_dot,;t t
10891 s,@DEPDIR@,$DEPDIR,;t t
10892 s,@am__include@,$am__include,;t t
10893 s,@am__quote@,$am__quote,;t t
10894 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10895 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10896 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10897 s,@CCDEPMODE@,$CCDEPMODE,;t t
10898 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10899 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10900 s,@LN_S@,$LN_S,;t t
10901 s,@RANLIB@,$RANLIB,;t t
10902 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10903 s,@LIBTOOL@,$LIBTOOL,;t t
10904 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10905 s,@GDBINIT@,$GDBINIT,;t t
10906 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
10907 s,@extra_objects@,$extra_objects,;t t
10908 s,@target_cpu_type@,$target_cpu_type,;t t
10909 s,@obj_format@,$obj_format,;t t
10910 s,@te_file@,$te_file,;t t
10911 s,@install_tooldir@,$install_tooldir,;t t
10912 s,@atof@,$atof,;t t
10913 s,@BFDLIB@,$BFDLIB,;t t
10914 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
10915 s,@BFDVER_H@,$BFDVER_H,;t t
10916 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
10917 s,@YACC@,$YACC,;t t
10918 s,@LEX@,$LEX,;t t
10919 s,@LEXLIB@,$LEXLIB,;t t
10920 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10921 s,@CPP@,$CPP,;t t
10922 s,@EGREP@,$EGREP,;t t
10923 s,@ALLOCA@,$ALLOCA,;t t
10924 s,@USE_NLS@,$USE_NLS,;t t
10925 s,@MSGFMT@,$MSGFMT,;t t
10926 s,@GMSGFMT@,$GMSGFMT,;t t
10927 s,@XGETTEXT@,$XGETTEXT,;t t
10928 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10929 s,@CATALOGS@,$CATALOGS,;t t
10930 s,@CATOBJEXT@,$CATOBJEXT,;t t
10931 s,@DATADIRNAME@,$DATADIRNAME,;t t
10932 s,@GMOFILES@,$GMOFILES,;t t
10933 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10934 s,@INTLDEPS@,$INTLDEPS,;t t
10935 s,@INTLLIBS@,$INTLLIBS,;t t
10936 s,@INTLOBJS@,$INTLOBJS,;t t
10937 s,@POFILES@,$POFILES,;t t
10938 s,@POSUB@,$POSUB,;t t
10939 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10940 s,@GT_NO@,$GT_NO,;t t
10941 s,@GT_YES@,$GT_YES,;t t
10942 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10943 s,@l@,$l,;t t
10944 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10945 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10946 s,@MAINT@,$MAINT,;t t
10947 s,@LIBM@,$LIBM,;t t
10948 s,@LIBOBJS@,$LIBOBJS,;t t
10949 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10950 CEOF
10952 _ACEOF
10954 cat >>$CONFIG_STATUS <<\_ACEOF
10955 # Split the substitutions into bite-sized pieces for seds with
10956 # small command number limits, like on Digital OSF/1 and HP-UX.
10957 ac_max_sed_lines=48
10958 ac_sed_frag=1 # Number of current file.
10959 ac_beg=1 # First line for current file.
10960 ac_end=$ac_max_sed_lines # Line after last line for current file.
10961 ac_more_lines=:
10962 ac_sed_cmds=
10963 while $ac_more_lines; do
10964 if test $ac_beg -gt 1; then
10965 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10966 else
10967 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10969 if test ! -s $tmp/subs.frag; then
10970 ac_more_lines=false
10971 else
10972 # The purpose of the label and of the branching condition is to
10973 # speed up the sed processing (if there are no `@' at all, there
10974 # is no need to browse any of the substitutions).
10975 # These are the two extra sed commands mentioned above.
10976 (echo ':t
10977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10978 if test -z "$ac_sed_cmds"; then
10979 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10980 else
10981 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10983 ac_sed_frag=`expr $ac_sed_frag + 1`
10984 ac_beg=$ac_end
10985 ac_end=`expr $ac_end + $ac_max_sed_lines`
10987 done
10988 if test -z "$ac_sed_cmds"; then
10989 ac_sed_cmds=cat
10991 fi # test -n "$CONFIG_FILES"
10993 _ACEOF
10994 cat >>$CONFIG_STATUS <<\_ACEOF
10995 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10997 case $ac_file in
10998 - | *:- | *:-:* ) # input from stdin
10999 cat >$tmp/stdin
11000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11004 * ) ac_file_in=$ac_file.in ;;
11005 esac
11007 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11008 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11010 X"$ac_file" : 'X\(//\)[^/]' \| \
11011 X"$ac_file" : 'X\(//\)$' \| \
11012 X"$ac_file" : 'X\(/\)' \| \
11013 . : '\(.\)' 2>/dev/null ||
11014 echo X"$ac_file" |
11015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11017 /^X\(\/\/\)$/{ s//\1/; q; }
11018 /^X\(\/\).*/{ s//\1/; q; }
11019 s/.*/./; q'`
11020 { if $as_mkdir_p; then
11021 mkdir -p "$ac_dir"
11022 else
11023 as_dir="$ac_dir"
11024 as_dirs=
11025 while test ! -d "$as_dir"; do
11026 as_dirs="$as_dir $as_dirs"
11027 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11028 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11029 X"$as_dir" : 'X\(//\)[^/]' \| \
11030 X"$as_dir" : 'X\(//\)$' \| \
11031 X"$as_dir" : 'X\(/\)' \| \
11032 . : '\(.\)' 2>/dev/null ||
11033 echo X"$as_dir" |
11034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11036 /^X\(\/\/\)$/{ s//\1/; q; }
11037 /^X\(\/\).*/{ s//\1/; q; }
11038 s/.*/./; q'`
11039 done
11040 test ! -n "$as_dirs" || mkdir $as_dirs
11041 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11042 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11043 { (exit 1); exit 1; }; }; }
11045 ac_builddir=.
11047 if test "$ac_dir" != .; then
11048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11049 # A "../" for each directory in $ac_dir_suffix.
11050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11051 else
11052 ac_dir_suffix= ac_top_builddir=
11055 case $srcdir in
11056 .) # No --srcdir option. We are building in place.
11057 ac_srcdir=.
11058 if test -z "$ac_top_builddir"; then
11059 ac_top_srcdir=.
11060 else
11061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11062 fi ;;
11063 [\\/]* | ?:[\\/]* ) # Absolute path.
11064 ac_srcdir=$srcdir$ac_dir_suffix;
11065 ac_top_srcdir=$srcdir ;;
11066 *) # Relative path.
11067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11069 esac
11070 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11071 # absolute.
11072 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11073 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11074 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11075 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11078 case $INSTALL in
11079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11080 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11081 esac
11083 if test x"$ac_file" != x-; then
11084 { echo "$as_me:$LINENO: creating $ac_file" >&5
11085 echo "$as_me: creating $ac_file" >&6;}
11086 rm -f "$ac_file"
11088 # Let's still pretend it is `configure' which instantiates (i.e., don't
11089 # use $as_me), people would be surprised to read:
11090 # /* config.h. Generated by config.status. */
11091 if test x"$ac_file" = x-; then
11092 configure_input=
11093 else
11094 configure_input="$ac_file. "
11096 configure_input=$configure_input"Generated from `echo $ac_file_in |
11097 sed 's,.*/,,'` by configure."
11099 # First look for the input files in the build tree, otherwise in the
11100 # src tree.
11101 ac_file_inputs=`IFS=:
11102 for f in $ac_file_in; do
11103 case $f in
11104 -) echo $tmp/stdin ;;
11105 [\\/$]*)
11106 # Absolute (can't be DOS-style, as IFS=:)
11107 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11108 echo "$as_me: error: cannot find input file: $f" >&2;}
11109 { (exit 1); exit 1; }; }
11110 echo $f;;
11111 *) # Relative
11112 if test -f "$f"; then
11113 # Build tree
11114 echo $f
11115 elif test -f "$srcdir/$f"; then
11116 # Source tree
11117 echo $srcdir/$f
11118 else
11119 # /dev/null tree
11120 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11121 echo "$as_me: error: cannot find input file: $f" >&2;}
11122 { (exit 1); exit 1; }; }
11123 fi;;
11124 esac
11125 done` || { (exit 1); exit 1; }
11126 _ACEOF
11127 cat >>$CONFIG_STATUS <<_ACEOF
11128 sed "$ac_vpsub
11129 $extrasub
11130 _ACEOF
11131 cat >>$CONFIG_STATUS <<\_ACEOF
11133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11134 s,@configure_input@,$configure_input,;t t
11135 s,@srcdir@,$ac_srcdir,;t t
11136 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11137 s,@top_srcdir@,$ac_top_srcdir,;t t
11138 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11139 s,@builddir@,$ac_builddir,;t t
11140 s,@abs_builddir@,$ac_abs_builddir,;t t
11141 s,@top_builddir@,$ac_top_builddir,;t t
11142 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11143 s,@INSTALL@,$ac_INSTALL,;t t
11144 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11145 rm -f $tmp/stdin
11146 if test x"$ac_file" != x-; then
11147 mv $tmp/out $ac_file
11148 else
11149 cat $tmp/out
11150 rm -f $tmp/out
11153 done
11154 _ACEOF
11155 cat >>$CONFIG_STATUS <<\_ACEOF
11158 # CONFIG_HEADER section.
11161 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11162 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11164 # ac_d sets the value in "#define NAME VALUE" lines.
11165 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11166 ac_dB='[ ].*$,\1#\2'
11167 ac_dC=' '
11168 ac_dD=',;t'
11169 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11170 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11171 ac_uB='$,\1#\2define\3'
11172 ac_uC=' '
11173 ac_uD=',;t'
11175 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11177 case $ac_file in
11178 - | *:- | *:-:* ) # input from stdin
11179 cat >$tmp/stdin
11180 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11182 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11184 * ) ac_file_in=$ac_file.in ;;
11185 esac
11187 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11188 echo "$as_me: creating $ac_file" >&6;}
11190 # First look for the input files in the build tree, otherwise in the
11191 # src tree.
11192 ac_file_inputs=`IFS=:
11193 for f in $ac_file_in; do
11194 case $f in
11195 -) echo $tmp/stdin ;;
11196 [\\/$]*)
11197 # Absolute (can't be DOS-style, as IFS=:)
11198 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11199 echo "$as_me: error: cannot find input file: $f" >&2;}
11200 { (exit 1); exit 1; }; }
11201 echo $f;;
11202 *) # Relative
11203 if test -f "$f"; then
11204 # Build tree
11205 echo $f
11206 elif test -f "$srcdir/$f"; then
11207 # Source tree
11208 echo $srcdir/$f
11209 else
11210 # /dev/null tree
11211 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11212 echo "$as_me: error: cannot find input file: $f" >&2;}
11213 { (exit 1); exit 1; }; }
11214 fi;;
11215 esac
11216 done` || { (exit 1); exit 1; }
11217 # Remove the trailing spaces.
11218 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11220 _ACEOF
11222 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11223 # `conftest.undefs', that substitutes the proper values into
11224 # config.h.in to produce config.h. The first handles `#define'
11225 # templates, and the second `#undef' templates.
11226 # And first: Protect against being on the right side of a sed subst in
11227 # config.status. Protect against being in an unquoted here document
11228 # in config.status.
11229 rm -f conftest.defines conftest.undefs
11230 # Using a here document instead of a string reduces the quoting nightmare.
11231 # Putting comments in sed scripts is not portable.
11233 # `end' is used to avoid that the second main sed command (meant for
11234 # 0-ary CPP macros) applies to n-ary macro definitions.
11235 # See the Autoconf documentation for `clear'.
11236 cat >confdef2sed.sed <<\_ACEOF
11237 s/[\\&,]/\\&/g
11238 s,[\\$`],\\&,g
11239 t clear
11240 : clear
11241 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11242 t end
11243 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11244 : end
11245 _ACEOF
11246 # If some macros were called several times there might be several times
11247 # the same #defines, which is useless. Nevertheless, we may not want to
11248 # sort them, since we want the *last* AC-DEFINE to be honored.
11249 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11250 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11251 rm -f confdef2sed.sed
11253 # This sed command replaces #undef with comments. This is necessary, for
11254 # example, in the case of _POSIX_SOURCE, which is predefined and required
11255 # on some systems where configure will not decide to define it.
11256 cat >>conftest.undefs <<\_ACEOF
11257 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11258 _ACEOF
11260 # Break up conftest.defines because some shells have a limit on the size
11261 # of here documents, and old seds have small limits too (100 cmds).
11262 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11263 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11264 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11265 echo ' :' >>$CONFIG_STATUS
11266 rm -f conftest.tail
11267 while grep . conftest.defines >/dev/null
11269 # Write a limited-size here document to $tmp/defines.sed.
11270 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11271 # Speed up: don't consider the non `#define' lines.
11272 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11273 # Work around the forget-to-reset-the-flag bug.
11274 echo 't clr' >>$CONFIG_STATUS
11275 echo ': clr' >>$CONFIG_STATUS
11276 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11277 echo 'CEOF
11278 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11279 rm -f $tmp/in
11280 mv $tmp/out $tmp/in
11281 ' >>$CONFIG_STATUS
11282 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11283 rm -f conftest.defines
11284 mv conftest.tail conftest.defines
11285 done
11286 rm -f conftest.defines
11287 echo ' fi # grep' >>$CONFIG_STATUS
11288 echo >>$CONFIG_STATUS
11290 # Break up conftest.undefs because some shells have a limit on the size
11291 # of here documents, and old seds have small limits too (100 cmds).
11292 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11293 rm -f conftest.tail
11294 while grep . conftest.undefs >/dev/null
11296 # Write a limited-size here document to $tmp/undefs.sed.
11297 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11298 # Speed up: don't consider the non `#undef'
11299 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11300 # Work around the forget-to-reset-the-flag bug.
11301 echo 't clr' >>$CONFIG_STATUS
11302 echo ': clr' >>$CONFIG_STATUS
11303 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11304 echo 'CEOF
11305 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11306 rm -f $tmp/in
11307 mv $tmp/out $tmp/in
11308 ' >>$CONFIG_STATUS
11309 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11310 rm -f conftest.undefs
11311 mv conftest.tail conftest.undefs
11312 done
11313 rm -f conftest.undefs
11315 cat >>$CONFIG_STATUS <<\_ACEOF
11316 # Let's still pretend it is `configure' which instantiates (i.e., don't
11317 # use $as_me), people would be surprised to read:
11318 # /* config.h. Generated by config.status. */
11319 if test x"$ac_file" = x-; then
11320 echo "/* Generated by configure. */" >$tmp/config.h
11321 else
11322 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11324 cat $tmp/in >>$tmp/config.h
11325 rm -f $tmp/in
11326 if test x"$ac_file" != x-; then
11327 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11328 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11329 echo "$as_me: $ac_file is unchanged" >&6;}
11330 else
11331 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11333 X"$ac_file" : 'X\(//\)[^/]' \| \
11334 X"$ac_file" : 'X\(//\)$' \| \
11335 X"$ac_file" : 'X\(/\)' \| \
11336 . : '\(.\)' 2>/dev/null ||
11337 echo X"$ac_file" |
11338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11340 /^X\(\/\/\)$/{ s//\1/; q; }
11341 /^X\(\/\).*/{ s//\1/; q; }
11342 s/.*/./; q'`
11343 { if $as_mkdir_p; then
11344 mkdir -p "$ac_dir"
11345 else
11346 as_dir="$ac_dir"
11347 as_dirs=
11348 while test ! -d "$as_dir"; do
11349 as_dirs="$as_dir $as_dirs"
11350 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11352 X"$as_dir" : 'X\(//\)[^/]' \| \
11353 X"$as_dir" : 'X\(//\)$' \| \
11354 X"$as_dir" : 'X\(/\)' \| \
11355 . : '\(.\)' 2>/dev/null ||
11356 echo X"$as_dir" |
11357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11359 /^X\(\/\/\)$/{ s//\1/; q; }
11360 /^X\(\/\).*/{ s//\1/; q; }
11361 s/.*/./; q'`
11362 done
11363 test ! -n "$as_dirs" || mkdir $as_dirs
11364 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11365 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11366 { (exit 1); exit 1; }; }; }
11368 rm -f $ac_file
11369 mv $tmp/config.h $ac_file
11371 else
11372 cat $tmp/config.h
11373 rm -f $tmp/config.h
11375 # Compute $ac_file's index in $config_headers.
11376 _am_stamp_count=1
11377 for _am_header in $config_headers :; do
11378 case $_am_header in
11379 $ac_file | $ac_file:* )
11380 break ;;
11382 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11383 esac
11384 done
11385 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11386 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11387 X$ac_file : 'X\(//\)[^/]' \| \
11388 X$ac_file : 'X\(//\)$' \| \
11389 X$ac_file : 'X\(/\)' \| \
11390 . : '\(.\)' 2>/dev/null ||
11391 echo X$ac_file |
11392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11394 /^X\(\/\/\)$/{ s//\1/; q; }
11395 /^X\(\/\).*/{ s//\1/; q; }
11396 s/.*/./; q'`/stamp-h$_am_stamp_count
11397 done
11398 _ACEOF
11399 cat >>$CONFIG_STATUS <<\_ACEOF
11402 # CONFIG_COMMANDS section.
11404 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11405 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11406 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11407 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11408 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11409 X"$ac_dest" : 'X\(//\)[^/]' \| \
11410 X"$ac_dest" : 'X\(//\)$' \| \
11411 X"$ac_dest" : 'X\(/\)' \| \
11412 . : '\(.\)' 2>/dev/null ||
11413 echo X"$ac_dest" |
11414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11416 /^X\(\/\/\)$/{ s//\1/; q; }
11417 /^X\(\/\).*/{ s//\1/; q; }
11418 s/.*/./; q'`
11419 ac_builddir=.
11421 if test "$ac_dir" != .; then
11422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11423 # A "../" for each directory in $ac_dir_suffix.
11424 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11425 else
11426 ac_dir_suffix= ac_top_builddir=
11429 case $srcdir in
11430 .) # No --srcdir option. We are building in place.
11431 ac_srcdir=.
11432 if test -z "$ac_top_builddir"; then
11433 ac_top_srcdir=.
11434 else
11435 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11436 fi ;;
11437 [\\/]* | ?:[\\/]* ) # Absolute path.
11438 ac_srcdir=$srcdir$ac_dir_suffix;
11439 ac_top_srcdir=$srcdir ;;
11440 *) # Relative path.
11441 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11442 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11443 esac
11444 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11445 # absolute.
11446 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11447 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11448 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11449 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11452 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11453 echo "$as_me: executing $ac_dest commands" >&6;}
11454 case $ac_dest in
11455 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11456 # Strip MF so we end up with the name of the file.
11457 mf=`echo "$mf" | sed -e 's/:.*$//'`
11458 # Check whether this is an Automake generated Makefile or not.
11459 # We used to match only the files named `Makefile.in', but
11460 # some people rename them; so instead we look at the file content.
11461 # Grep'ing the first line is not enough: some people post-process
11462 # each Makefile.in and add a new line on top of each file to say so.
11463 # So let's grep whole file.
11464 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11465 dirpart=`(dirname "$mf") 2>/dev/null ||
11466 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11467 X"$mf" : 'X\(//\)[^/]' \| \
11468 X"$mf" : 'X\(//\)$' \| \
11469 X"$mf" : 'X\(/\)' \| \
11470 . : '\(.\)' 2>/dev/null ||
11471 echo X"$mf" |
11472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11474 /^X\(\/\/\)$/{ s//\1/; q; }
11475 /^X\(\/\).*/{ s//\1/; q; }
11476 s/.*/./; q'`
11477 else
11478 continue
11480 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11481 # Extract the definition of DEP_FILES from the Makefile without
11482 # running `make'.
11483 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11484 test -z "$DEPDIR" && continue
11485 # When using ansi2knr, U may be empty or an underscore; expand it
11486 U=`sed -n -e '/^U = / s///p' < "$mf"`
11487 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11488 # We invoke sed twice because it is the simplest approach to
11489 # changing $(DEPDIR) to its actual value in the expansion.
11490 for file in `sed -n -e '
11491 /^DEP_FILES = .*\\\\$/ {
11492 s/^DEP_FILES = //
11493 :loop
11494 s/\\\\$//
11497 /\\\\$/ b loop
11500 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11501 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11502 # Make sure the directory exists.
11503 test -f "$dirpart/$file" && continue
11504 fdir=`(dirname "$file") 2>/dev/null ||
11505 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11506 X"$file" : 'X\(//\)[^/]' \| \
11507 X"$file" : 'X\(//\)$' \| \
11508 X"$file" : 'X\(/\)' \| \
11509 . : '\(.\)' 2>/dev/null ||
11510 echo X"$file" |
11511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11513 /^X\(\/\/\)$/{ s//\1/; q; }
11514 /^X\(\/\).*/{ s//\1/; q; }
11515 s/.*/./; q'`
11516 { if $as_mkdir_p; then
11517 mkdir -p $dirpart/$fdir
11518 else
11519 as_dir=$dirpart/$fdir
11520 as_dirs=
11521 while test ! -d "$as_dir"; do
11522 as_dirs="$as_dir $as_dirs"
11523 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11525 X"$as_dir" : 'X\(//\)[^/]' \| \
11526 X"$as_dir" : 'X\(//\)$' \| \
11527 X"$as_dir" : 'X\(/\)' \| \
11528 . : '\(.\)' 2>/dev/null ||
11529 echo X"$as_dir" |
11530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11532 /^X\(\/\/\)$/{ s//\1/; q; }
11533 /^X\(\/\).*/{ s//\1/; q; }
11534 s/.*/./; q'`
11535 done
11536 test ! -n "$as_dirs" || mkdir $as_dirs
11537 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11538 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11539 { (exit 1); exit 1; }; }; }
11541 # echo "creating $dirpart/$file"
11542 echo '# dummy' > "$dirpart/$file"
11543 done
11544 done
11546 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
11547 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
11548 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
11549 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
11550 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
11551 if test "x$cgen_cpu_prefix" != x ; then
11552 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
11555 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11556 esac
11557 done
11558 _ACEOF
11560 cat >>$CONFIG_STATUS <<\_ACEOF
11562 { (exit 0); exit 0; }
11563 _ACEOF
11564 chmod +x $CONFIG_STATUS
11565 ac_clean_files=$ac_clean_files_save
11568 # configure is writing to config.log, and then calls config.status.
11569 # config.status does its own redirection, appending to config.log.
11570 # Unfortunately, on DOS this fails, as config.log is still kept open
11571 # by configure, so config.status won't be able to write to it; its
11572 # output is simply discarded. So we exec the FD to /dev/null,
11573 # effectively closing config.log, so it can be properly (re)opened and
11574 # appended to by config.status. When coming back to configure, we
11575 # need to make the FD available again.
11576 if test "$no_create" != yes; then
11577 ac_cs_success=:
11578 ac_config_status_args=
11579 test "$silent" = yes &&
11580 ac_config_status_args="$ac_config_status_args --quiet"
11581 exec 5>/dev/null
11582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11583 exec 5>>config.log
11584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11585 # would make configure fail if this is the last instruction.
11586 $ac_cs_success || { (exit 1); exit 1; }