2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59.
5 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6 @%:@ This configure script is free software; the Free Software Foundation
7 @%:@ gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="as.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS 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 LIB@&t@OBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-bfd-assembler use BFD back end for writing object files
860 targets alternative target configurations besides the primary
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-build-warnings Enable build-time compiler warnings if gcc is used
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-included-gettext use the GNU gettext library included here
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 ac_dir_suffix= ac_top_builddir=
905 .) # No --srcdir option. We are building in place.
907 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
923 .) ac_abs_builddir="$ac_dir";;
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
1001 @%:@@%:@ --------- @%:@@%:@
1002 @%:@@%:@ Platform. @%:@@%:@
1003 @%:@@%:@ --------- @%:@@%:@
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1037 @%:@@%:@ ----------- @%:@@%:@
1038 @%:@@%:@ Core tests. @%:@@%:@
1039 @%:@@%:@ ----------- @%:@@%:@
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_must_keep_next=false
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 -* ) ac_must_keep_next=true ;;
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1106 @%:@@%:@ ---------------- @%:@@%:@
1107 @%:@@%:@ Cache variables. @%:@@%:@
1108 @%:@@%:@ ---------------- @%:@@%:@
1111 # The following way of writing the cache mishandles newlines in values,
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 @%:@@%:@ ----------------- @%:@@%:@
1130 @%:@@%:@ Output variables. @%:@@%:@
1131 @%:@@%:@ ----------------- @%:@@%:@
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1141 if test -n "$ac_subst_files"; then
1143 @%:@@%:@ ------------- @%:@@%:@
1144 @%:@@%:@ Output files. @%:@@%:@
1145 @%:@@%:@ ------------- @%:@@%:@
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -s confdefs.h; then
1158 @%:@@%:@ ----------- @%:@@%:@
1159 @%:@@%:@ confdefs.h. @%:@@%:@
1160 @%:@@%:@ ----------- @%:@@%:@
1163 sed "/^$/d" confdefs.h | sort
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1191 cat >>confdefs.h <<_ACEOF
1192 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 cat >>confdefs.h <<_ACEOF
1197 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 cat >>confdefs.h <<_ACEOF
1202 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1206 cat >>confdefs.h <<_ACEOF
1207 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1246 # Check that the precious variables saved in the cache have kept the same
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 for ac_dir in .. $srcdir/..; do
1324 if test -f $ac_dir/install-sh; then
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 elif test -f $ac_dir/install.sh; then
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 elif test -f $ac_dir/shtool; then
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1428 program_prefix=${target_alias}-
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1551 if test -z "$ac_cv_prog_CC"; then
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1628 if test $@%:@ != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1648 if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 test -n "$CC" && break
1690 if test -z "$CC"; then
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$ac_ct_CC" && break
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1764 cat >conftest.$ac_ext <<_ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h. */
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 test -f "$ac_file" || continue
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 # This is the source file.
1810 # We found the default executable, but exeext='' is most
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1854 if test "$cross_compiling" = maybe; then
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 cat >conftest.$ac_ext <<_ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 cat >conftest.$ac_ext <<_ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1992 grep -v '^ *+' conftest.er1 >conftest.err
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS=${CFLAGS+set}
2025 ac_save_CFLAGS=$CFLAGS
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.$ac_ext <<_ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>conftest.er1
2051 grep -v '^ *+' conftest.er1 >conftest.err
2053 cat conftest.err >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -z "$ac_c_werror_flag"
2057 || test ! -s conftest.err'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082 elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2089 if test "$GCC" = yes; then
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_cv_prog_cc_stdc=no
2102 cat >conftest.$ac_ext <<_ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2121 static char *f (char * (*g) (char **, int), char **p, ...)
2126 s = g (p, va_arg (v,int));
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 # Don't try gcc -ansi; that turns off useful extensions and
2155 # breaks some systems' header files.
2156 # AIX -qlanglvl=ansi
2157 # Ultrix and OSF/1 -std1
2158 # HP-UX 10.20 and later -Ae
2159 # HP-UX older versions -Aa -D_HPUX_SOURCE
2160 # SVR4 -Xc -D__EXTENSIONS__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2168 grep -v '^ *+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2193 rm -f conftest.err conftest.$ac_objext
2195 rm -f conftest.$ac_ext conftest.$ac_objext
2200 case "x$ac_cv_prog_cc_stdc" in
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203 echo "${ECHO_T}none needed" >&6 ;;
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2210 # Some people use a C++ compiler to compile C. Since we use `exit',
2211 # in C++ we need to declare it. In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 @%:@ifndef __cplusplus
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2223 grep -v '^ *+' conftest.er1 >conftest.err
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2249 cat >conftest.$ac_ext <<_ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2256 @%:@include <stdlib.h>
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2269 grep -v '^ *+' conftest.er1 >conftest.err
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2314 grep -v '^ *+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 if test -n "$ac_declaration"; then
2342 echo '#ifdef __cplusplus' >>confdefs.h
2343 echo $ac_declaration >>confdefs.h
2344 echo '#endif' >>confdefs.h
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2362 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2363 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 ac_check_lib_save_LIBS=$LIBS
2367 LIBS="-lcposix $LIBS"
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2375 /* Override any gcc2 internal prototype to avoid an error. */
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2390 rm -f conftest.$ac_objext conftest$ac_exeext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392 (eval $ac_link) 2>conftest.er1
2394 grep -v '^ *+' conftest.er1 >conftest.err
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_lib_cposix_strerror=yes
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2417 ac_cv_lib_cposix_strerror=no
2419 rm -f conftest.err conftest.$ac_objext \
2420 conftest$ac_exeext conftest.$ac_ext
2421 LIBS=$ac_check_lib_save_LIBS
2423 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2424 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2425 if test $ac_cv_lib_cposix_strerror = yes; then
2426 LIBS="$LIBS -lcposix"
2432 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2433 am__api_version="1.9"
2434 # Find a good install program. We prefer a C program (faster),
2435 # so one script is as good as another. But avoid the broken or
2436 # incompatible versions:
2437 # SysV /etc/install, /usr/sbin/install
2438 # SunOS /usr/etc/install
2439 # IRIX /sbin/install
2441 # AmigaOS /C/install, which installs bootblocks on floppy discs
2442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445 # OS/2's system install, which has a completely different semantic
2446 # ./install, which can be erroneously created by make from ./install.sh.
2447 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2448 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2449 if test -z "$INSTALL"; then
2450 if test "${ac_cv_path_install+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 # Account for people who put trailing slashes in PATH elements.
2460 ./ | .// | /cC/* | \
2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2462 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2465 # OSF1 and SCO ODT 3.0 have their own names for install.
2466 # Don't use installbsd from OSF since it installs stuff as root
2468 for ac_prog in ginstall scoinst install; do
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2471 if test $ac_prog = install &&
2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # AIX install. It has an incompatible calling convention.
2475 elif test $ac_prog = install &&
2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # program-specific install script used by HP pwplus--don't use.
2480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492 if test "${ac_cv_path_install+set}" = set; then
2493 INSTALL=$ac_cv_path_install
2495 # As a last resort, use the slow shell script. We don't cache a
2496 # path for INSTALL within a source directory, because that will
2497 # break other packages using the cache if that directory is
2498 # removed, or if the path is relative.
2499 INSTALL=$ac_install_sh
2502 echo "$as_me:$LINENO: result: $INSTALL" >&5
2503 echo "${ECHO_T}$INSTALL" >&6
2505 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2506 # It thinks the first close brace ends the variable substitution.
2507 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2509 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2513 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2514 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2517 echo timestamp > conftest.file
2518 # Do `set' in a subshell so we don't clobber the current shell's
2519 # arguments. Must try -L first in case configure is actually a
2520 # symlink; some systems play weird games with the mod time of symlinks
2521 # (eg FreeBSD returns the mod time of the symlink's containing
2524 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2525 if test "$*" = "X"; then
2527 set X `ls -t $srcdir/configure conftest.file`
2530 if test "$*" != "X $srcdir/configure conftest.file" \
2531 && test "$*" != "X conftest.file $srcdir/configure"; then
2533 # If neither matched, then we have a broken ls. This can happen
2534 # if, for instance, CONFIG_SHELL is bash and it inherits a
2535 # broken ls alias from the environment. This has actually
2536 # happened. Such a system could not be considered "sane".
2537 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2538 alias in your environment" >&5
2539 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2540 alias in your environment" >&2;}
2541 { (exit 1); exit 1; }; }
2544 test "$2" = conftest.file
2550 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2551 Check your system clock" >&5
2552 echo "$as_me: error: newly created file is older than distributed files!
2553 Check your system clock" >&2;}
2554 { (exit 1); exit 1; }; }
2556 echo "$as_me:$LINENO: result: yes" >&5
2557 echo "${ECHO_T}yes" >&6
2558 test "$program_prefix" != NONE &&
2559 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2560 # Use a double $ so make ignores it.
2561 test "$program_suffix" != NONE &&
2562 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2563 # Double any \ or $. echo might interpret backslashes.
2564 # By default was `s,x,x', remove it if useless.
2565 cat <<\_ACEOF >conftest.sed
2566 s/[\\$]/&&/g;s/;s,x,x,$//
2568 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2571 # expand $ac_aux_dir to an absolute path
2572 am_aux_dir=`cd $ac_aux_dir && pwd`
2574 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2575 # Use eval to expand $SHELL
2576 if eval "$MISSING --run true"; then
2577 am_missing_run="$MISSING --run "
2580 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2581 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2584 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2585 # We used to keeping the `.' as first argument, in order to
2586 # allow $(mkdir_p) to be used without argument. As in
2587 # $(mkdir_p) $(somedir)
2588 # where $(somedir) is conditionally defined. However this is wrong
2590 # 1. if the package is installed by a user who cannot write `.'
2591 # make install will fail,
2592 # 2. the above comment should most certainly read
2593 # $(mkdir_p) $(DESTDIR)$(somedir)
2594 # so it does not work when $(somedir) is undefined and
2595 # $(DESTDIR) is not.
2596 # To support the latter case, we have to write
2597 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2598 # so the `.' trick is pointless.
2599 mkdir_p='mkdir -p --'
2601 # On NextStep and OpenStep, the `mkdir' command does not
2602 # recognize any option. It will interpret all options as
2603 # directories to create, and then abort because `.' already
2605 for d in ./-p ./--version;
2607 test -d $d && rmdir $d
2609 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2610 if test -f "$ac_aux_dir/mkinstalldirs"; then
2611 mkdir_p='$(mkinstalldirs)'
2613 mkdir_p='$(install_sh) -d'
2617 for ac_prog in gawk mawk nawk awk
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_AWK+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$AWK"; then
2627 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_AWK="$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$AWK"; then
2647 echo "$as_me:$LINENO: result: $AWK" >&5
2648 echo "${ECHO_T}$AWK" >&6
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2654 test -n "$AWK" && break
2657 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2658 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2659 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2660 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 cat >conftest.make <<\_ACEOF
2665 @echo 'ac_maketemp="$(MAKE)"'
2667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2668 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2669 if test -n "$ac_maketemp"; then
2670 eval ac_cv_prog_make_${ac_make}_set=yes
2672 eval ac_cv_prog_make_${ac_make}_set=no
2676 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2677 echo "$as_me:$LINENO: result: yes" >&5
2678 echo "${ECHO_T}yes" >&6
2681 echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6
2683 SET_MAKE="MAKE=${MAKE-make}"
2686 rm -rf .tst 2>/dev/null
2687 mkdir .tst 2>/dev/null
2688 if test -d .tst; then
2693 rmdir .tst 2>/dev/null
2695 DEPDIR="${am__leading_dot}deps"
2697 ac_config_commands="$ac_config_commands depfiles"
2700 am_make=${MAKE-make}
2701 cat > confinc << 'END'
2706 # If we don't find an include directive, just comment out the code.
2707 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2708 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2712 # First try GNU make style include.
2713 echo "include confinc" > confmf
2714 # We grep out `Entering directory' and `Leaving directory'
2715 # messages which can occur if `w' ends up in MAKEFLAGS.
2716 # In particular we don't look at `^make:' because GNU make might
2717 # be invoked under some other name (usually "gmake"), in which
2718 # case it prints its new name instead of `make'.
2719 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2724 # Now try BSD make style include.
2725 if test "$am__include" = "#"; then
2726 echo '.include "confinc"' > confmf
2727 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2728 am__include=.include
2735 echo "$as_me:$LINENO: result: $_am_result" >&5
2736 echo "${ECHO_T}$_am_result" >&6
2737 rm -f confinc confmf
2739 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2740 if test "${enable_dependency_tracking+set}" = set; then
2741 enableval="$enable_dependency_tracking"
2744 if test "x$enable_dependency_tracking" != xno; then
2745 am_depcomp="$ac_aux_dir/depcomp"
2750 if test "x$enable_dependency_tracking" != xno; then
2760 # test to see if srcdir already configured
2761 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2762 test -f $srcdir/config.status; then
2763 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2764 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2765 { (exit 1); exit 1; }; }
2768 # test whether we have cygpath
2769 if test -z "$CYGPATH_W"; then
2770 if (cygpath --version) >/dev/null 2>/dev/null; then
2771 CYGPATH_W='cygpath -w'
2778 # Define the identity of the package.
2780 VERSION=${BFD_VERSION}
2783 cat >>confdefs.h <<_ACEOF
2784 @%:@define PACKAGE "$PACKAGE"
2788 cat >>confdefs.h <<_ACEOF
2789 @%:@define VERSION "$VERSION"
2792 # Some tools Automake needs.
2794 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2797 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2800 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2803 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2806 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2808 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2810 # Installed binaries are usually stripped using `strip' when the user
2811 # run `make install-strip'. However `strip' might not be the right
2812 # tool to use in cross-compilation environments, therefore Automake
2813 # will honor the `STRIP' environment variable to overrule this program.
2814 if test "$cross_compiling" != no; then
2815 if test -n "$ac_tool_prefix"; then
2816 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}strip; ac_word=$2
2818 echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820 if test "${ac_cv_prog_STRIP+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 if test -n "$STRIP"; then
2824 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 STRIP=$ac_cv_prog_STRIP
2843 if test -n "$STRIP"; then
2844 echo "$as_me:$LINENO: result: $STRIP" >&5
2845 echo "${ECHO_T}$STRIP" >&6
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2852 if test -z "$ac_cv_prog_STRIP"; then
2854 # Extract the first word of "strip", so it can be a program name with args.
2855 set dummy strip; ac_word=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$ac_ct_STRIP"; then
2862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_ac_ct_STRIP="strip"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2882 if test -n "$ac_ct_STRIP"; then
2883 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2884 echo "${ECHO_T}$ac_ct_STRIP" >&6
2886 echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2892 STRIP="$ac_cv_prog_STRIP"
2896 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2898 # We need awk for the "check" target. The system "awk" is bad on
2900 # Always define AMTAR for backward compatibility.
2902 AMTAR=${AMTAR-"${am_missing_run}tar"}
2904 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2909 depcc="$CC" am_compiler_list=
2911 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2912 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2913 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2917 # We make a subdir and do the tests there. Otherwise we can end up
2918 # making bogus files that we don't know about and never remove. For
2919 # instance it was reported that on HP-UX the gcc test will end up
2920 # making a dummy file named `D' -- because `-MD' means `put the output
2923 # Copy depcomp to subdir because otherwise we won't find it if we're
2924 # using a relative directory.
2925 cp "$am_depcomp" conftest.dir
2927 # We will build objects and dependencies in a subdirectory because
2928 # it helps to detect inapplicable dependency modes. For instance
2929 # both Tru64's cc and ICC support -MD to output dependencies as a
2930 # side effect of compilation, but ICC will put the dependencies in
2931 # the current directory while Tru64 will put them in the object
2935 am_cv_CC_dependencies_compiler_type=none
2936 if test "$am_compiler_list" = ""; then
2937 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2939 for depmode in $am_compiler_list; do
2940 # Setup a source with many dependencies, because some compilers
2941 # like to wrap large dependency lists on column 80 (with \), and
2942 # we should not choose a depcomp mode which is confused by this.
2944 # We need to recreate these files for each test, as the compiler may
2945 # overwrite some of them when testing with obscure command lines.
2946 # This happens at least with the AIX C compiler.
2948 for i in 1 2 3 4 5 6; do
2949 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2950 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2951 # Solaris 8's {/usr,}/bin/sh.
2952 touch sub/conftst$i.h
2954 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2958 # after this tag, mechanisms are not by side-effect, so they'll
2959 # only be used when explicitly requested
2960 if test "x$enable_dependency_tracking" = xyes; then
2968 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2969 # mode. It turns out that the SunPro C++ compiler does not properly
2970 # handle `-M -o', and we need to detect this.
2971 if depmode=$depmode \
2972 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2973 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2974 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2975 >/dev/null 2>conftest.err &&
2976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2977 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2979 # icc doesn't choke on unknown options, it will just issue warnings
2980 # or remarks (even with -Werror). So we grep stderr for any message
2981 # that says an option was ignored or not supported.
2982 # When given -MP, icc 7.0 and 7.1 complain thusly:
2983 # icc: Command line warning: ignoring option '-M'; no argument required
2984 # The diagnosis changed in icc 8.0:
2985 # icc: Command line remark: option '-MP' not supported
2986 if (grep 'ignoring option' conftest.err ||
2987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2988 am_cv_CC_dependencies_compiler_type=$depmode
2997 am_cv_CC_dependencies_compiler_type=none
3001 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3002 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3008 test "x$enable_dependency_tracking" != xno \
3009 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3011 am__fastdepCC_FALSE='#'
3013 am__fastdepCC_TRUE='#'
3014 am__fastdepCC_FALSE=
3020 # Check whether --enable-shared or --disable-shared was given.
3021 if test "${enable_shared+set}" = set; then
3022 enableval="$enable_shared"
3023 p=${PACKAGE-default}
3025 yes) enable_shared=yes ;;
3026 no) enable_shared=no ;;
3029 # Look at the argument we got. We use all the common list separators.
3030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3031 for pkg in $enableval; do
3032 if test "X$pkg" = "X$p"; then
3042 # Check whether --enable-static or --disable-static was given.
3043 if test "${enable_static+set}" = set; then
3044 enableval="$enable_static"
3045 p=${PACKAGE-default}
3047 yes) enable_static=yes ;;
3048 no) enable_static=no ;;
3051 # Look at the argument we got. We use all the common list separators.
3052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3053 for pkg in $enableval; do
3054 if test "X$pkg" = "X$p"; then
3064 # Check whether --enable-fast-install or --disable-fast-install was given.
3065 if test "${enable_fast_install+set}" = set; then
3066 enableval="$enable_fast_install"
3067 p=${PACKAGE-default}
3069 yes) enable_fast_install=yes ;;
3070 no) enable_fast_install=no ;;
3072 enable_fast_install=no
3073 # Look at the argument we got. We use all the common list separators.
3074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3075 for pkg in $enableval; do
3076 if test "X$pkg" = "X$p"; then
3077 enable_fast_install=yes
3084 enable_fast_install=yes
3087 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3088 if test "${with_gnu_ld+set}" = set; then
3089 withval="$with_gnu_ld"
3090 test "$withval" = no || with_gnu_ld=yes
3095 if test "$GCC" = yes; then
3096 # Check if gcc -print-prog-name=ld gives a path.
3097 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3098 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3101 # gcc leaves a trailing carriage return which upsets mingw
3102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3107 # Accept absolute paths.
3108 [\\/]* | [A-Za-z]:[\\/]*)
3109 re_direlt='/[^/][^/]*/\.\./'
3110 # Canonicalize the path of ld
3111 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3112 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3113 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3115 test -z "$LD" && LD="$ac_prog"
3118 # If it fails, then pretend we aren't using GCC.
3122 # If it is relative, then search for the first ld in PATH.
3126 elif test "$with_gnu_ld" = yes; then
3127 echo "$as_me:$LINENO: checking for GNU ld" >&5
3128 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3130 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3131 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3133 if test "${lt_cv_path_LD+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 if test -z "$LD"; then
3137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3138 for ac_dir in $PATH; do
3139 test -z "$ac_dir" && ac_dir=.
3140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3141 lt_cv_path_LD="$ac_dir/$ac_prog"
3142 # Check to see if the program is GNU ld. I'd rather use --version,
3143 # but apparently some GNU ld's only accept -v.
3144 # Break only if it was the GNU/non-GNU ld that we prefer.
3145 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3146 test "$with_gnu_ld" != no && break
3148 test "$with_gnu_ld" != yes && break
3154 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3159 if test -n "$LD"; then
3160 echo "$as_me:$LINENO: result: $LD" >&5
3161 echo "${ECHO_T}$LD" >&6
3163 echo "$as_me:$LINENO: result: no" >&5
3164 echo "${ECHO_T}no" >&6
3166 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3167 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3168 { (exit 1); exit 1; }; }
3169 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3170 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3171 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3175 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3176 lt_cv_prog_gnu_ld=yes
3178 lt_cv_prog_gnu_ld=no
3181 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3182 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3183 with_gnu_ld=$lt_cv_prog_gnu_ld
3186 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3187 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3188 if test "${lt_cv_ld_reload_flag+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 lt_cv_ld_reload_flag='-r'
3193 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3194 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3195 reload_flag=$lt_cv_ld_reload_flag
3196 test -n "$reload_flag" && reload_flag=" $reload_flag"
3198 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3199 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3200 if test "${lt_cv_path_NM+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if test -n "$NM"; then
3204 # Let the user override the test.
3207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3208 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3209 test -z "$ac_dir" && ac_dir=.
3210 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3211 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3212 # Check to see if the nm accepts a BSD-compat flag.
3213 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3214 # nm: unknown option "B" ignored
3215 # Tru64's nm complains that /dev/null is an invalid object file
3216 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3217 lt_cv_path_NM="$tmp_nm -B"
3219 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3220 lt_cv_path_NM="$tmp_nm -p"
3223 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3224 continue # so that we can try to find one that supports BSD flags
3229 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3234 echo "$as_me:$LINENO: result: $NM" >&5
3235 echo "${ECHO_T}$NM" >&6
3237 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3238 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3240 if test "$LN_S" = "ln -s"; then
3241 echo "$as_me:$LINENO: result: yes" >&5
3242 echo "${ECHO_T}yes" >&6
3244 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3245 echo "${ECHO_T}no, using $LN_S" >&6
3248 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3249 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3250 if test "${lt_cv_deplibs_check_method+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 lt_cv_file_magic_cmd='$MAGIC_CMD'
3254 lt_cv_file_magic_test_file=
3255 lt_cv_deplibs_check_method='unknown'
3256 # Need to set the preceding variable on all platforms that support
3257 # interlibrary dependencies.
3258 # 'none' -- dependencies not supported.
3259 # `unknown' -- same as none, but documents that we really don't know.
3260 # 'pass_all' -- all dependencies passed with no checks.
3261 # 'test_compile' -- check by making test program.
3262 # 'file_magic [regex]' -- check by looking for files in library path
3263 # which responds to the $file_magic_cmd with a given egrep regex.
3264 # If you have `file' or equivalent on your system and you're not sure
3265 # whether `pass_all' will *always* work, you probably want this one.
3269 lt_cv_deplibs_check_method=pass_all
3273 lt_cv_deplibs_check_method=pass_all
3277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3278 lt_cv_file_magic_cmd='/usr/bin/file -L'
3279 lt_cv_file_magic_test_file=/shlib/libc.so
3282 cygwin* | mingw* |pw32*)
3283 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3284 lt_cv_file_magic_cmd='$OBJDUMP -f'
3287 darwin* | rhapsody*)
3288 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3289 lt_cv_file_magic_cmd='/usr/bin/file -L'
3291 rhapsody* | darwin1.012)
3292 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3295 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3301 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3304 # Not sure whether the presence of OpenBSD here was a mistake.
3305 # Let's accept both of them until this is cleared up.
3306 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3307 lt_cv_file_magic_cmd=/usr/bin/file
3308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3312 lt_cv_deplibs_check_method=pass_all
3317 lt_cv_deplibs_check_method=pass_all
3323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3324 lt_cv_file_magic_cmd=/usr/bin/file
3325 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3329 lt_cv_file_magic_cmd=/usr/bin/file
3330 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3338 # this will be overridden with pass_all, but let us keep it just in case
3339 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3343 *-32|*"-32 ") libmagic=32-bit;;
3344 *-n32|*"-n32 ") libmagic=N32;;
3345 *-64|*"-64 ") libmagic=64-bit;;
3346 *) libmagic=never-match;;
3348 # this will be overridden with pass_all, but let us keep it just in case
3349 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3352 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3353 lt_cv_deplibs_check_method=pass_all
3356 # This must be Linux ELF.
3359 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3360 lt_cv_deplibs_check_method=pass_all ;;
3362 # glibc up to 2.1.1 does not perform some relocations on ARM
3363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3365 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3369 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3370 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3372 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3378 lt_cv_file_magic_cmd=/usr/bin/file
3379 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3382 osf3* | osf4* | osf5*)
3383 # this will be overridden with pass_all, but let us keep it just in case
3384 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3385 lt_cv_file_magic_test_file=/shlib/libc.so
3386 lt_cv_deplibs_check_method=pass_all
3390 lt_cv_deplibs_check_method=pass_all
3394 lt_cv_deplibs_check_method=pass_all
3395 lt_cv_file_magic_test_file=/lib/libc.so
3398 sysv5uw[78]* | sysv4*uw2*)
3399 lt_cv_deplibs_check_method=pass_all
3402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3403 case $host_vendor in
3405 lt_cv_deplibs_check_method=pass_all
3408 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]'
3409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3416 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3417 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3418 file_magic_cmd=$lt_cv_file_magic_cmd
3419 deplibs_check_method=$lt_cv_deplibs_check_method
3424 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3426 # Only perform the check for file, if the check method requires it
3427 case $deplibs_check_method in
3429 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3430 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3431 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3432 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3440 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3443 ac_save_MAGIC_CMD="$MAGIC_CMD"
3444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3445 ac_dummy="/usr/bin:$PATH"
3446 for ac_dir in $ac_dummy; do
3447 test -z "$ac_dir" && ac_dir=.
3448 if test -f $ac_dir/${ac_tool_prefix}file; then
3449 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3450 if test -n "$file_magic_test_file"; then
3451 case $deplibs_check_method in
3453 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3455 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3456 egrep "$file_magic_regex" > /dev/null; then
3461 *** Warning: the command libtool uses to detect shared libraries,
3462 *** $file_magic_cmd, produces output that libtool cannot recognize.
3463 *** The result is that libtool may fail to recognize shared libraries
3464 *** as such. This will affect the creation of libtool libraries that
3465 *** depend on shared libraries, but programs linked with such libtool
3466 *** libraries will work regardless of this problem. Nevertheless, you
3467 *** may want to report the problem to your system manager and/or to
3468 *** bug-libtool@gnu.org
3478 MAGIC_CMD="$ac_save_MAGIC_CMD"
3483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3484 if test -n "$MAGIC_CMD"; then
3485 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3486 echo "${ECHO_T}$MAGIC_CMD" >&6
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3492 if test -z "$lt_cv_path_MAGIC_CMD"; then
3493 if test -n "$ac_tool_prefix"; then
3494 echo "$as_me:$LINENO: checking for file" >&5
3495 echo $ECHO_N "checking for file... $ECHO_C" >&6
3496 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3504 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3507 ac_save_MAGIC_CMD="$MAGIC_CMD"
3508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3509 ac_dummy="/usr/bin:$PATH"
3510 for ac_dir in $ac_dummy; do
3511 test -z "$ac_dir" && ac_dir=.
3512 if test -f $ac_dir/file; then
3513 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3514 if test -n "$file_magic_test_file"; then
3515 case $deplibs_check_method in
3517 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3520 egrep "$file_magic_regex" > /dev/null; then
3525 *** Warning: the command libtool uses to detect shared libraries,
3526 *** $file_magic_cmd, produces output that libtool cannot recognize.
3527 *** The result is that libtool may fail to recognize shared libraries
3528 *** as such. This will affect the creation of libtool libraries that
3529 *** depend on shared libraries, but programs linked with such libtool
3530 *** libraries will work regardless of this problem. Nevertheless, you
3531 *** may want to report the problem to your system manager and/or to
3532 *** bug-libtool@gnu.org
3542 MAGIC_CMD="$ac_save_MAGIC_CMD"
3547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3548 if test -n "$MAGIC_CMD"; then
3549 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3550 echo "${ECHO_T}$MAGIC_CMD" >&6
3552 echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_prog_RANLIB+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 if test -n "$RANLIB"; then
3574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 RANLIB=$ac_cv_prog_RANLIB
3593 if test -n "$RANLIB"; then
3594 echo "$as_me:$LINENO: result: $RANLIB" >&5
3595 echo "${ECHO_T}$RANLIB" >&6
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3602 if test -z "$ac_cv_prog_RANLIB"; then
3603 ac_ct_RANLIB=$RANLIB
3604 # Extract the first word of "ranlib", so it can be a program name with args.
3605 set dummy ranlib; ac_word=$2
3606 echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if test -n "$ac_ct_RANLIB"; then
3612 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_RANLIB="ranlib"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3631 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3632 if test -n "$ac_ct_RANLIB"; then
3633 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3634 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3640 RANLIB=$ac_ct_RANLIB
3642 RANLIB="$ac_cv_prog_RANLIB"
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}strip; ac_word=$2
3648 echo "$as_me:$LINENO: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650 if test "${ac_cv_prog_STRIP+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 if test -n "$STRIP"; then
3654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 STRIP=$ac_cv_prog_STRIP
3673 if test -n "$STRIP"; then
3674 echo "$as_me:$LINENO: result: $STRIP" >&5
3675 echo "${ECHO_T}$STRIP" >&6
3677 echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3682 if test -z "$ac_cv_prog_STRIP"; then
3684 # Extract the first word of "strip", so it can be a program name with args.
3685 set dummy strip; ac_word=$2
3686 echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 if test -n "$ac_ct_STRIP"; then
3692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_STRIP="strip"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3712 if test -n "$ac_ct_STRIP"; then
3713 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3714 echo "${ECHO_T}$ac_ct_STRIP" >&6
3716 echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3722 STRIP="$ac_cv_prog_STRIP"
3726 # Check for any special flags to pass to ltconfig.
3727 libtool_flags="--cache-file=$cache_file"
3728 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3729 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3730 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3731 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3732 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3735 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3736 if test "${enable_libtool_lock+set}" = set; then
3737 enableval="$enable_libtool_lock"
3740 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3741 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3744 # Check whether --with-pic or --without-pic was given.
3745 if test "${with_pic+set}" = set; then
3751 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3752 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3754 # Some flags need to be propagated to the compiler or linker for good
3758 # Find out which ABI we are using.
3759 echo '#line __oline__ "configure"' > conftest.$ac_ext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761 (eval $ac_compile) 2>&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; then
3765 if test "$lt_cv_prog_gnu_ld" = yes; then
3766 case `/usr/bin/file conftest.$ac_objext` in
3768 LD="${LD-ld} -melf32bsmip"
3771 LD="${LD-ld} -melf32bmipn32"
3774 LD="${LD-ld} -melf64bmip"
3778 case `/usr/bin/file conftest.$ac_objext` in
3795 # Find out which ABI we are using.
3796 echo 'int i;' > conftest.$ac_ext
3797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3798 (eval $ac_compile) 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; then
3802 case "`/usr/bin/file conftest.o`" in
3815 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3816 SAVE_CFLAGS="$CFLAGS"
3817 CFLAGS="$CFLAGS -belf"
3818 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3819 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3820 if test "${lt_cv_cc_needs_belf+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831 cat >conftest.$ac_ext <<_ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3846 rm -f conftest.$ac_objext conftest$ac_exeext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848 (eval $ac_link) 2>conftest.er1
3850 grep -v '^ *+' conftest.er1 >conftest.err
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_c_werror_flag"
3856 || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest$ac_exeext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 lt_cv_cc_needs_belf=yes
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 lt_cv_cc_needs_belf=no
3875 rm -f conftest.err conftest.$ac_objext \
3876 conftest$ac_exeext conftest.$ac_ext
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3885 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3886 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3887 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3888 CFLAGS="$SAVE_CFLAGS"
3896 # Save cache, so that ltconfig can load it
3897 cat >confcache <<\_ACEOF
3898 # This file is a shell script that caches the results of configure
3899 # tests run on this system so they can be shared between configure
3900 # scripts and configure runs, see configure's option --config-cache.
3901 # It is not useful on other systems. If it contains results you don't
3902 # want to keep, you may remove or edit it.
3904 # config.status only pays attention to the cache file if you give it
3905 # the --recheck option to rerun configure.
3907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3913 # The following way of writing the cache mishandles newlines in values,
3914 # but we know of no workaround that is simple, portable, and efficient.
3915 # So, don't put newlines in cache variables' values.
3916 # Ultrix sh set writes to stderr and can't be redirected directly,
3917 # and sets the high bit in the cache file unless we assign to the vars.
3920 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3922 # `set' does not quote correctly, so add quotes (double-quote
3923 # substitution turns \\\\ into \\, and sed turns \\ into \).
3926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3929 # `set' quotes correctly as required by POSIX, so do not add quotes.
3931 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3940 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3942 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3943 if test -w $cache_file; then
3944 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3945 cat confcache >$cache_file
3947 echo "not updating unwritable cache $cache_file"
3952 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3953 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3954 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3955 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3956 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3957 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3958 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3959 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3960 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3961 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3962 echo "$as_me: error: libtool configure failed" >&2;}
3963 { (exit 1); exit 1; }; }
3965 # Reload cache, that may have been modified by ltconfig
3966 if test -r "$cache_file"; then
3967 # Some versions of bash will fail to source /dev/null (special
3968 # files actually), so we avoid doing that.
3969 if test -f "$cache_file"; then
3970 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3971 echo "$as_me: loading cache $cache_file" >&6;}
3973 [\\/]* | ?:[\\/]* ) . $cache_file;;
3974 *) . ./$cache_file;;
3978 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3979 echo "$as_me: creating cache $cache_file" >&6;}
3984 # This can be used to rebuild libtool when needed
3985 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3987 # Always use our own libtool.
3988 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3990 # Redirect the config.log output again, so that the ltconfig log is not
3991 # clobbered by the next message.
3992 exec 5>>./config.log
4001 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
4002 if test "${enable_bfd_assembler+set}" = set; then
4003 enableval="$enable_bfd_assembler"
4004 case "${enableval}" in
4005 yes) need_bfd=yes user_bfd_gas=yes ;;
4006 no) user_bfd_gas=no ;;
4007 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
4008 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
4009 { (exit 1); exit 1; }; } ;;
4011 fi; # Check whether --enable-targets or --disable-targets was given.
4012 if test "${enable_targets+set}" = set; then
4013 enableval="$enable_targets"
4014 case "${enableval}" in
4015 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4016 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4017 { (exit 1); exit 1; }; }
4019 no) enable_targets= ;;
4020 *) enable_targets=$enableval ;;
4022 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4023 if test "${enable_commonbfdlib+set}" = set; then
4024 enableval="$enable_commonbfdlib"
4025 case "${enableval}" in
4026 yes) commonbfdlib=true ;;
4027 no) commonbfdlib=false ;;
4028 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4029 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4030 { (exit 1); exit 1; }; } ;;
4035 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4036 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4037 if test "${enable_build_warnings+set}" = set; then
4038 enableval="$enable_build_warnings"
4039 case "${enableval}" in
4041 no) build_warnings="-w";;
4042 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4043 build_warnings="${build_warnings} ${t}";;
4044 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4045 build_warnings="${t} ${build_warnings}";;
4046 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4048 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4049 echo "Setting warning flags = $build_warnings" 6>&1
4052 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4053 WARN_CFLAGS="${build_warnings}"
4057 # Generate a header file
4058 ac_config_headers="$ac_config_headers config.h:config.in"
4061 # If we are on a DOS filesystem, we must use gdb.ini rather than
4064 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
4066 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4071 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4079 # Makefile target for installing gas in $(tooldir)/bin.
4080 install_tooldir=install-exec-tooldir
4084 if test -n "$enable_targets" ; then
4085 for t in `echo $enable_targets | sed 's/,/ /g'`; do
4086 if test $t = "all"; then
4090 result=`$ac_config_sub $t 2>/dev/null`
4091 if test -n "$result" ; then
4092 canon_targets="$canon_targets $result"
4094 # # Permit "all", etc. We don't support it yet though.
4095 # canon_targets="$canon_targets $t"
4098 _gas_uniq_list="$canon_targets"
4099 _gas_uniq_newlist=""
4100 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4101 case $_gas_uniq_i in
4103 *) case " $_gas_uniq_newlist " in
4104 *" $_gas_uniq_i "*) ;;
4105 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4109 canon_targets=$_gas_uniq_newlist
4115 for this_target in $target $canon_targets ; do
4117 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
4119 # check for architecture variants
4123 am33_2.0) cpu_type=mn10300 endian=little ;;
4124 alpha*) cpu_type=alpha ;;
4125 arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
4126 arm*|xscale*|strongarm*) cpu_type=arm endian=little ;;
4127 c4x*) cpu_type=tic4x ;;
4128 hppa*) cpu_type=hppa ;;
4129 i[3-7]86) cpu_type=i386 arch=i386;;
4130 x86_64) cpu_type=i386 arch=x86_64;;
4131 ia64) cpu_type=ia64 ;;
4132 ip2k) cpu_type=ip2k endian=big ;;
4133 iq2000) cpu_type=iq2000 endian=big ;;
4134 zpu) cpu_type=zpu ;;
4135 m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
4136 m680[012346]0) cpu_type=m68k ;;
4137 m68008) cpu_type=m68k ;;
4138 m683??) cpu_type=m68k ;;
4139 m5200) cpu_type=m68k ;;
4140 m8*) cpu_type=m88k ;;
4141 mips*el) cpu_type=mips endian=little ;;
4142 mips*) cpu_type=mips endian=big ;;
4143 or32*) cpu_type=or32 endian=big ;;
4144 pjl*) cpu_type=pj endian=little ;;
4145 pj*) cpu_type=pj endian=big ;;
4146 powerpc*le*) cpu_type=ppc endian=little ;;
4147 powerpc*) cpu_type=ppc endian=big ;;
4148 rs6000*) cpu_type=ppc ;;
4149 s390x*) cpu_type=s390 arch=s390x ;;
4150 s390*) cpu_type=s390 arch=s390 ;;
4151 sh5*) cpu_type=sh64 endian=big ;;
4152 sh5le*) cpu_type=sh64 endian=little ;;
4153 sh64*) cpu_type=sh64 endian=big ;;
4154 sh64le*) cpu_type=sh64 endian=little ;;
4155 sh*le) cpu_type=sh endian=little ;;
4156 sh*) cpu_type=sh endian=big ;;
4157 sparclite*) cpu_type=sparc arch=sparclite ;;
4158 sparclet*) cpu_type=sparc arch=sparclet ;;
4159 sparc64*) cpu_type=sparc arch=v9-64 ;;
4160 sparc86x*) cpu_type=sparc arch=sparc86x ;;
4161 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
4162 v850*) cpu_type=v850 ;;
4163 xtensa*) cpu_type=xtensa arch=xtensa ;;
4164 m32r) cpu_type=m32r target_cpu=m32r endian=big ;;
4165 m32rle) cpu_type=m32r target_cpu=m32r endian=little ;;
4166 *) cpu_type=${cpu} ;;
4169 if test ${this_target} = $target ; then
4170 target_cpu_type=${cpu_type}
4171 elif test ${target_cpu_type} != ${cpu_type} ; then
4175 generic_target=${cpu_type}-$vendor-$os
4180 # assign object format
4181 case ${generic_target} in
4182 a29k-*-coff) fmt=coff ;;
4183 a29k-amd-udi) fmt=coff ;;
4184 a29k-amd-ebmon) fmt=coff ;;
4185 a29k-nyu-sym1) fmt=coff ;;
4186 a29k-*-rtems*) fmt=coff ;;
4187 a29k-*-vxworks*) fmt=coff ;;
4189 alpha*-*-*vms*) fmt=evax ;;
4190 alpha*-*-netware*) fmt=ecoff ;;
4191 alpha*-*-osf*) fmt=ecoff ;;
4192 alpha*-*-linuxecoff*) fmt=ecoff ;;
4193 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
4194 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
4195 alpha*-*-openbsd*) fmt=elf em=obsd ;;
4197 # cpu_type for am33_2.0 is set to mn10300
4198 mn10300-*-linux*) fmt=elf bfd_gas=yes em=linux ;;
4200 arc-*-elf*) fmt=elf ;;
4202 arm-*-aout) fmt=aout ;;
4203 arm-*-coff | thumb-*-coff) fmt=coff ;;
4204 arm-*-rtems* | thumb-*-rtems*) fmt=elf ;;
4205 arm-*-elf | thumb-*-elf) fmt=elf ;;
4206 arm-*-kaos*) fmt=elf ;;
4207 arm*-*-conix*) fmt=elf ;;
4208 arm-*-linux*aout*) fmt=aout em=linux ;;
4209 arm*-*-linux-gnu*) fmt=elf em=linux ;;
4210 arm*-*-uclinux*) fmt=elf em=linux ;;
4211 arm-*-netbsdelf*) fmt=elf em=nbsd ;;
4212 arm-*-*n*bsd*) fmt=aout em=nbsd ;;
4213 arm-**-nto*) fmt=elf ;;
4214 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
4215 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
4216 arm-wince-pe | arm-*-wince) fmt=coff em=wince-pe ;;
4217 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
4218 arm-*-riscix*) fmt=aout em=riscix ;;
4222 cris-*-linux-gnu*) fmt=multi bfd_gas=yes em=linux ;;
4223 cris-*-*) fmt=multi bfd_gas=yes ;;
4225 d10v-*-*) fmt=elf ;;
4226 d30v-*-*) fmt=elf ;;
4229 fr30-*-*) fmt=elf ;;
4230 frv-*-*linux*) fmt=elf em=linux;;
4233 hppa-*-linux*) case ${cpu} in
4234 hppa*64*) fmt=elf em=hppalinux64;;
4235 hppa*) fmt=elf em=linux;;
4237 hppa-*-*elf*) fmt=elf em=hppa ;;
4238 hppa-*-lites*) fmt=elf em=hppa ;;
4239 hppa-*-netbsd*) fmt=elf em=nbsd ;;
4240 hppa-*-openbsd*) fmt=elf em=hppa ;;
4241 hppa-*-osf*) fmt=som em=hppa ;;
4242 hppa-*-rtems*) fmt=elf em=hppa ;;
4243 hppa-*-hpux11*) case ${cpu} in
4244 hppa*64*) fmt=elf em=hppa64 ;;
4245 hppa*) fmt=som em=hppa ;;
4247 hppa-*-hpux*) fmt=som em=hppa ;;
4248 hppa-*-mpeix*) fmt=som em=hppa ;;
4249 hppa-*-bsd*) fmt=som em=hppa ;;
4250 hppa-*-hiux*) fmt=som em=hppa ;;
4252 h8300-*-rtems*) fmt=coff ;;
4253 h8300-*-coff) fmt=coff ;;
4254 h8300-*-elf) fmt=elf ;;
4255 h8500-*-rtems*) fmt=coff ;;
4256 h8500-*-coff) fmt=coff ;;
4258 i370-*-elf* | i370-*-linux*) fmt=elf ;;
4259 i386-ibm-aix*) fmt=coff em=i386aix ;;
4260 i386-sequent-bsd*) fmt=aout em=dynix ;;
4261 i386-*-beospe*) fmt=coff em=pe ;;
4262 i386-*-beos*) fmt=elf ;;
4263 i386-*-coff) fmt=coff ;;
4264 i386-*-elf) fmt=elf ;;
4265 i386-*-kaos*) fmt=elf ;;
4266 i386-*-bsd*) fmt=aout em=386bsd ;;
4267 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
4268 i386-*-netbsdpe*) fmt=coff em=pe ;;
4269 i386-*-netbsd*-gnu* | \
4270 i386-*-knetbsd*-gnu | \
4271 i386-*-netbsdelf*) fmt=elf em=nbsd ;;
4272 i386-*-*n*bsd*) case ${cpu} in
4273 x86_64) fmt=elf em=nbsd ;;
4274 *) fmt=aout em=nbsd ;;
4276 i386-*-linux*aout*) fmt=aout em=linux ;;
4277 i386-*-linux*oldld) fmt=aout em=linux ;;
4278 i386-*-linux*coff*) fmt=coff em=linux ;;
4279 i386-*-linux-gnu*) fmt=elf em=linux ;;
4280 x86_64-*-linux-gnu*) fmt=elf em=linux ;;
4281 i386-*-lynxos*) fmt=coff em=lynx ;;
4282 i386-*-sysv[45]*) fmt=elf ;;
4283 i386-*-solaris*) fmt=elf ;;
4284 i386-*-freebsdaout*) fmt=aout em=386bsd ;;
4285 i386-*-freebsd[12].*) fmt=aout em=386bsd ;;
4286 i386-*-freebsd[12]) fmt=aout em=386bsd ;;
4287 i386-*-freebsd* | i386-*-kfreebsd*-gnu)
4288 fmt=elf em=freebsd ;;
4289 i386-*-sysv*) fmt=coff ;;
4290 i386-*-sco3.2v5*coff) fmt=coff ;;
4291 i386-*-isc*) fmt=coff ;;
4292 i386-*-sco3.2v5*) fmt=elf
4293 if test ${this_target} = $target; then
4295 cat >>confdefs.h <<\_ACEOF
4296 @%:@define SCO_ELF 1
4300 i386-*-sco3.2*) fmt=coff ;;
4301 i386-*-vsta) fmt=aout ;;
4302 i386-*-msdosdjgpp* \
4304 | i386-go32-rtems*) fmt=coff em=go32
4306 cat >>confdefs.h <<\_ACEOF
4307 @%:@define STRICTCOFF 1
4310 i386-*-rtemself*) fmt=elf ;;
4311 i386-*-rtemscoff*) fmt=coff ;;
4312 i386-*-rtems*) fmt=elf ;;
4313 i386-*-gnu*) fmt=elf ;;
4314 i386-*-mach*) fmt=aout em=mach ;;
4315 i386-*-msdos*) fmt=aout ;;
4316 i386-*-moss*) fmt=elf ;;
4317 i386-*-pe) fmt=coff em=pe ;;
4318 i386-*-cygwin*) fmt=coff em=pe ;;
4319 i386-*-interix*) fmt=coff em=interix ;;
4320 i386-*-mingw32*) fmt=coff em=pe ;;
4321 i386-*-nto-qnx*) fmt=elf ;;
4322 i386-*-*nt*) fmt=coff em=pe ;;
4323 i386-*-chaos) fmt=elf ;;
4325 i860-*-*) fmt=elf endian=little
4326 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4327 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} ;;
4328 i960-*-bout) fmt=bout ;;
4329 i960-*-coff) fmt=coff em=ic960 ;;
4330 i960-*-rtems*) fmt=coff em=ic960 ;;
4331 i960-*-nindy*) fmt=bout ;;
4332 i960-*-vxworks5.0) fmt=bout ;;
4333 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
4334 i960-*-vxworks*) fmt=bout ;;
4335 i960-*-elf*) fmt=elf ;;
4337 ia64-*-elf*) fmt=elf ;;
4338 ia64-*-aix*) fmt=elf em=ia64aix ;;
4339 ia64-*-linux-gnu*) fmt=elf em=linux ;;
4340 ia64-*-hpux*) fmt=elf em=hpux ;;
4341 ia64-*-netbsd*) fmt=elf em=nbsd ;;
4343 ip2k-*-*) fmt=elf ;;
4345 iq2000-*-elf) fmt=elf bfd_gas=yes ;;
4347 m32r-*-elf*) fmt=elf ;;
4348 m32r-*-linux*) fmt=elf em=linux;;
4351 m68hc11-*-* | m6811-*-*) fmt=elf ;;
4352 m68hc12-*-* | m6812-*-*) fmt=elf ;;
4354 m68k-*-vxworks*) fmt=aout em=sun3 ;;
4355 m68k-ericsson-ose) fmt=aout em=sun3 ;;
4356 m68k-*-sunos*) fmt=aout em=sun3 ;;
4357 m68k-motorola-sysv*) fmt=coff em=delta ;;
4358 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
4359 m68k-apollo-*) fmt=coff em=apollo ;;
4360 m68k-*-elf*) fmt=elf ;;
4361 m68k-*-sysv4*) fmt=elf em=svr4 ;;
4362 m68k-*-sysv*) fmt=coff ;;
4363 m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;;
4364 m68k-*-rtems*) fmt=elf ;;
4365 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
4366 m68k-*-linux*aout*) fmt=aout em=linux ;;
4367 m68k-*-linux-gnu*) fmt=elf em=linux ;;
4368 m68k-*-uclinux*) fmt=elf ;;
4369 m68k-*-gnu*) fmt=elf ;;
4370 m68k-*-lynxos*) fmt=coff em=lynx ;;
4371 m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
4372 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4373 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
4374 m68k-apple-aux*) fmt=coff em=aux ;;
4375 m68k-*-psos*) fmt=elf em=psos;;
4377 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
4378 m88k-*-coff*) fmt=coff ;;
4380 mcore-*-elf) fmt=elf ;;
4381 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
4383 # don't change em like *-*-bsd does
4384 mips-dec-openbsd*) fmt=elf endian=little ;;
4385 mips-sony-bsd*) fmt=ecoff ;;
4387 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4388 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4389 { (exit 1); exit 1; }; } ;;
4390 mips-*-ultrix*) fmt=ecoff endian=little ;;
4391 mips-*-osf*) fmt=ecoff endian=little ;;
4392 mips-*-ecoff*) fmt=ecoff ;;
4393 mips-*-pe*) fmt=coff endian=little em=pe ;;
4394 mips-*-irix6*) fmt=elf em=irix ;;
4395 mips-*-irix5*) fmt=elf em=irix ;;
4396 mips-*-irix*) fmt=ecoff em=irix ;;
4397 mips-*-lnews*) fmt=ecoff em=lnews ;;
4398 mips-*-riscos*) fmt=ecoff ;;
4399 mips*-*-linux*) fmt=elf em=tmips ;;
4400 mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
4401 mips-*-sysv*) fmt=ecoff ;;
4402 mips-*-elf* | mips-*-rtems*) fmt=elf ;;
4403 mips-*-netbsd*) fmt=elf ;;
4404 mips-*-openbsd*) fmt=elf ;;
4406 mmix-*-*) fmt=elf ;;
4407 mn10200-*-*) fmt=elf ;;
4408 mn10300-*-*) fmt=elf ;;
4409 msp430-*-*) fmt=elf ;;
4410 openrisc-*-*) fmt=elf ;;
4411 or32-*-rtems*) fmt=elf ;;
4412 or32-*-coff) fmt=coff ;;
4413 or32-*-elf) fmt=elf ;;
4416 ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
4417 ppc-*-winnt*) fmt=coff em=pe ;;
4418 ppc-*-aix5.[01]) fmt=coff em=aix5 ;;
4419 ppc-*-aix5.*) fmt=coff em=aix5
4421 cat >>confdefs.h <<\_ACEOF
4422 @%:@define AIX_WEAK_SUPPORT 1
4426 ppc-*-aix*) fmt=coff ;;
4427 ppc-*-beos*) fmt=coff ;;
4428 ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
4429 ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
4430 ppc-*-linux-gnu*) fmt=elf em=linux
4433 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4434 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4435 { (exit 1); exit 1; }; } ;;
4437 ppc-*-solaris*) fmt=elf
4438 if test ${this_target} = $target; then
4440 cat >>confdefs.h <<\_ACEOF
4441 @%:@define TARGET_SOLARIS_COMMENT 1
4445 if test x${endian} = xbig; then
4446 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4447 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4448 { (exit 1); exit 1; }; }
4450 ppc-*-rtems*) fmt=elf ;;
4451 ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;;
4452 ppc-*-netware*) fmt=elf em=ppcnw ;;
4453 ppc-**-nto*) fmt=elf ;;
4454 ppc-*-kaos*) fmt=elf ;;
4456 s390x-*-linux-gnu*) fmt=elf em=linux ;;
4457 s390-*-linux-gnu*) fmt=elf em=linux ;;
4459 sh*-*-linux*) fmt=elf em=linux
4461 sh*eb) endian=big ;;
4464 sh5*-*-netbsd*) fmt=elf em=nbsd ;;
4465 sh64*-*-netbsd*) fmt=elf em=nbsd ;;
4466 sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
4467 sh-*-elf*) fmt=elf ;;
4468 sh-*-coff*) fmt=coff ;;
4469 sh-*-nto*) fmt=elf ;;
4470 sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
4471 sh-*-rtemscoff*) fmt=coff ;;
4472 sh-*-rtems*) fmt=elf ;;
4473 sh-*-kaos*) fmt=elf ;;
4474 shle*-*-kaos*) fmt=elf ;;
4475 sh64-*-elf*) fmt=elf ;;
4477 ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
4478 ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
4479 ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
4480 ns32k-*-*n*bsd*) fmt=aout em=nbsd532 ;;
4482 sparc-*-rtemsaout*) fmt=aout ;;
4483 sparc-*-rtemself*) fmt=elf ;;
4484 sparc-*-rtems*) fmt=elf ;;
4485 sparc-*-sunos4*) fmt=aout em=sun3 ;;
4486 sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
4487 sparc-*-coff) fmt=coff ;;
4488 sparc-*-linux*aout*) fmt=aout em=linux ;;
4489 sparc-*-linux-gnu*) fmt=elf em=linux ;;
4490 sparc-*-lynxos*) fmt=coff em=lynx ;;
4491 sparc-fujitsu-none) fmt=aout ;;
4492 sparc-*-elf) fmt=elf ;;
4493 sparc-*-sysv4*) fmt=elf ;;
4494 sparc-*-solaris*) fmt=elf ;;
4495 sparc-*-netbsdelf*) fmt=elf em=nbsd ;;
4496 sparc-*-*n*bsd*) case ${cpu} in
4497 sparc64) fmt=elf em=nbsd ;;
4498 *) fmt=aout em=nbsd ;;
4500 strongarm-*-coff) fmt=coff ;;
4501 strongarm-*-elf) fmt=elf ;;
4502 strongarm-*-kaos*) fmt=elf ;;
4503 xscale-*-coff) fmt=coff ;;
4504 xscale-*-elf) fmt=elf ;;
4506 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
4507 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
4508 tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;;
4509 tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;;
4510 tic80-*-*) fmt=coff ;;
4512 v850-*-*) fmt=elf ;;
4513 v850e-*-*) fmt=elf ;;
4514 v850ea-*-*) fmt=elf ;;
4516 vax-*-netbsdelf*) fmt=elf em=nbsd ;;
4517 vax-*-netbsd*) fmt=aout em=nbsd ;;
4518 vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
4519 vax-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
4520 vax-*-vms) fmt=vms ;;
4522 w65-*-*) fmt=coff ;;
4524 xstormy16-*-*) fmt=elf ;;
4526 xtensa-*-*) fmt=elf ;;
4528 z8k-*-coff | z8k-*-sim) fmt=coff ;;
4530 *-*-aout | *-*-scout) fmt=aout ;;
4531 *-*-freebsd* | *-*-kfreebsd*-gnu) fmt=elf em=freebsd ;;
4532 *-*-nindy*) fmt=bout ;;
4533 *-*-bsd*) fmt=aout em=sun3 ;;
4534 *-*-generic) fmt=generic ;;
4535 *-*-xray | *-*-hms) fmt=coff ;;
4536 *-*-sim) fmt=coff ;;
4537 *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
4538 *-*-aros*) fmt=elf em=linux bfd_gas=yes ;;
4539 *-*-vxworks | *-*-windiss) fmt=elf ;;
4540 *-*-netware) fmt=elf ;;
4543 if test ${this_target} = $target ; then
4545 if test x${endian} = xbig; then
4547 elif test x${endian} = xlittle; then
4550 if test x${endian_def} != x; then
4552 cat >>confdefs.h <<_ACEOF
4553 @%:@define TARGET_BYTES_BIG_ENDIAN $endian_def
4559 case ${cpu_type}-${fmt} in
4560 alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
4561 | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
4562 | *-elf | *-ecoff | *-som)
4566 # Other random stuff.
4570 # Set mips_cpu to the name of the default CPU.
4571 case ${target_cpu} in
4572 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4575 mipsisa32 | mipsisa32el)
4578 mipsisa32r2 | mipsisa32r2el)
4581 mipsisa64 | mipsisa64el)
4584 mipsisa64r2 | mipsisa64r2el)
4587 mipstx39 | mipstx39el)
4590 mips64vr | mips64vrel)
4593 mipsisa32r2* | mipsisa64r2*)
4594 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4596 mips64* | mipsisa64* | mipsisa32*)
4597 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4600 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4601 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4602 { (exit 1); exit 1; }; }
4605 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4606 # binaries. It's a GNU extension that some OSes don't understand.
4607 # The value only matters on ELF targets.
4610 use_e_mips_abi_o32=0
4613 use_e_mips_abi_o32=1
4616 # Decide whether to generate 32-bit or 64-bit code by default.
4617 # Used to resolve -march=from-abi when an embedded ABI is selected.
4619 mips64*-*-* | mipsisa64*-*-*)
4620 mips_default_64bit=1
4623 mips_default_64bit=0
4626 # Decide which ABI to target by default.
4628 mips64*-linux* | mips-sgi-irix6*)
4629 mips_default_abi=N32_ABI
4632 mips_default_abi=O32_ABI
4635 mips_default_abi=NO_ABI
4639 cat >>confdefs.h <<_ACEOF
4640 @%:@define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4644 cat >>confdefs.h <<_ACEOF
4645 @%:@define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4649 cat >>confdefs.h <<_ACEOF
4650 @%:@define MIPS_DEFAULT_64BIT $mips_default_64bit
4654 cat >>confdefs.h <<_ACEOF
4655 @%:@define MIPS_DEFAULT_ABI $mips_default_abi
4661 # Do we need the opcodes library?
4669 case "${enable_shared}" in
4670 yes) shared_opcodes=true ;;
4671 *opcodes*) shared_opcodes=true ;;
4672 *) shared_opcodes=false ;;
4674 if test "${shared_opcodes}" = "true"; then
4675 # A shared libopcodes must be linked against libbfd.
4681 # Any other special object files needed ?
4683 fr30 | ip2k | iq2000 | m32r | openrisc)
4691 case ${extra_objects} in
4693 *) extra_objects="$extra_objects m68k-parse.o" ;;
4698 echo ${extra_objects} | grep -s "itbl-parse.o"
4699 if test $? -ne 0 ; then
4700 extra_objects="$extra_objects itbl-parse.o"
4703 echo ${extra_objects} | grep -s "itbl-lex.o"
4704 if test $? -ne 0 ; then
4705 extra_objects="$extra_objects itbl-lex.o"
4708 echo ${extra_objects} | grep -s "itbl-ops.o"
4709 if test $? -ne 0 ; then
4710 extra_objects="$extra_objects itbl-ops.o"
4714 i386 | s390 | sparc)
4715 if test $this_target = $target ; then
4717 cat >>confdefs.h <<_ACEOF
4718 @%:@define DEFAULT_ARCH "${arch}"
4729 echo ${extra_objects} | grep -s "xtensa-relax.o"
4730 if test $? -ne 0 ; then
4731 extra_objects="$extra_objects xtensa-relax.o"
4739 if test $using_cgen = yes ; then
4740 case "x${extra_objects}" in
4742 *) extra_objects="$extra_objects cgen.o" ;;
4746 # See if we really can support this configuration with the emulation code.
4748 if test $this_target = $target ; then
4749 primary_bfd_gas=$bfd_gas
4753 if test $bfd_gas = no ; then
4754 # Can't support other configurations this way.
4757 elif test $bfd_gas = no ; then
4758 # Can't support this configuration.
4762 # From target name and format, produce a list of supported emulations.
4764 case ${generic_target}-${fmt} in
4765 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4766 mips*-*-linux*-*) case "$endian" in
4767 big) emulation="mipsbelf mipslelf mipself" ;;
4768 *) emulation="mipslelf mipsbelf mipself" ;;
4770 mips-*-lnews*-ecoff) ;;
4771 mips-*-*-ecoff) case "$endian" in
4772 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4773 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4775 mips-*-*-elf) case "$endian" in
4776 big) emulation="mipsbelf mipslelf mipself" ;;
4777 *) emulation="mipslelf mipsbelf mipself" ;;
4779 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4780 # i386-pc-pe-coff != i386-pc-coff.
4782 # Uncommenting the next line will turn on support for i386 AOUT
4783 # for the default linux configuration
4784 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4786 i386-*-aout) emulation="i386aout" ;;
4787 i386-*-coff) emulation="i386coff" ;;
4788 i386-*-elf) emulation="i386elf" ;;
4790 # Always all formats. The first stated emulation becomes the default.
4791 cris-*-*aout*) emulation="crisaout criself" ;;
4792 cris-*-*) emulation="criself crisaout" ;;
4795 emulations="$emulations $emulation"
4799 # Turn on all targets if possible
4800 if test ${all_targets} = "yes"; then
4801 case ${target_cpu_type} in
4803 case ${obj_format} in
4805 emulations="$emulations i386coff i386elf"
4808 emulations="$emulations i386aout i386elf"
4811 emulations="$emulations i386aout i386coff"
4818 # Assign floating point type. Most processors with FP support
4819 # IEEE FP. On those that don't support FP at all, usually IEEE
4821 case ${target_cpu} in
4822 vax | tahoe ) atof=${target_cpu} ;;
4827 case "${obj_format}" in
4828 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4829 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4830 { (exit 1); exit 1; }; } ;;
4833 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4835 if test $using_cgen = yes ; then
4836 case ${target_cpu} in
4837 *) cgen_cpu_prefix=${target_cpu} ;;
4841 cat >>confdefs.h <<\_ACEOF
4842 @%:@define USING_CGEN 1
4848 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4849 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4850 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4851 { (exit 1); exit 1; }; }
4854 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4855 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4856 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4857 { (exit 1); exit 1; }; }
4860 case ${user_bfd_gas}-${primary_bfd_gas} in
4862 # We didn't override user's choice.
4865 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4866 echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
4878 # User specified nothing.
4882 # Some COFF configurations want these random other flags set.
4883 case ${obj_format} in
4885 case ${target_cpu_type} in
4887 cat >>confdefs.h <<\_ACEOF
4888 @%:@define I386COFF 1
4892 cat >>confdefs.h <<\_ACEOF
4893 @%:@define M68KCOFF 1
4897 cat >>confdefs.h <<\_ACEOF
4898 @%:@define M88KCOFF 1
4905 # Getting this done right is going to be a bitch. Each configuration specified
4906 # with --enable-targets=... should be checked for environment, format, cpu, and
4909 # For each configuration, the necessary object file support code must be linked
4910 # in. This might be only one, it might be up to four. The necessary emulation
4911 # code needs to be provided, too.
4913 # And then there's "--enable-targets=all"....
4915 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4917 formats="${obj_format}"
4920 _gas_uniq_list="$emulations"
4921 _gas_uniq_newlist=""
4922 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4923 case $_gas_uniq_i in
4925 *) case " $_gas_uniq_newlist " in
4926 *" $_gas_uniq_i "*) ;;
4927 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4931 emulations=$_gas_uniq_newlist
4933 for em in . $emulations ; do
4936 mipsbelf | mipslelf | mipself)
4937 fmt=elf file=mipself ;;
4938 mipsbecoff | mipslecoff | mipsecoff)
4939 fmt=ecoff file=mipsecoff ;;
4941 fmt=coff file=$em ;;
4943 fmt=aout file=$em ;;
4947 formats="$formats $fmt"
4948 emfiles="$emfiles e-$file.o"
4949 EMULATIONS="$EMULATIONS &$em,"
4951 _gas_uniq_list="$formats"
4952 _gas_uniq_newlist=""
4953 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4954 case $_gas_uniq_i in
4956 *) case " $_gas_uniq_newlist " in
4957 *" $_gas_uniq_i "*) ;;
4958 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4962 formats=$_gas_uniq_newlist
4964 _gas_uniq_list="$emfiles"
4965 _gas_uniq_newlist=""
4966 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4967 case $_gas_uniq_i in
4969 *) case " $_gas_uniq_newlist " in
4970 *" $_gas_uniq_i "*) ;;
4971 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4975 emfiles=$_gas_uniq_newlist
4977 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4978 for fmt in $formats ; do
4981 cat >>confdefs.h <<\_ACEOF
4982 @%:@define OBJ_MAYBE_AOUT 1
4986 cat >>confdefs.h <<\_ACEOF
4987 @%:@define OBJ_MAYBE_BOUT 1
4991 cat >>confdefs.h <<\_ACEOF
4992 @%:@define OBJ_MAYBE_COFF 1
4996 cat >>confdefs.h <<\_ACEOF
4997 @%:@define OBJ_MAYBE_ECOFF 1
5001 cat >>confdefs.h <<\_ACEOF
5002 @%:@define OBJ_MAYBE_ELF 1
5006 cat >>confdefs.h <<\_ACEOF
5007 @%:@define OBJ_MAYBE_GENERIC 1
5011 cat >>confdefs.h <<\_ACEOF
5012 @%:@define OBJ_MAYBE_HP300 1
5016 cat >>confdefs.h <<\_ACEOF
5017 @%:@define OBJ_MAYBE_IEEE 1
5021 cat >>confdefs.h <<\_ACEOF
5022 @%:@define OBJ_MAYBE_SOM 1
5026 cat >>confdefs.h <<\_ACEOF
5027 @%:@define OBJ_MAYBE_VMS 1
5031 extra_objects="$extra_objects obj-$fmt.o"
5035 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
5036 DEFAULT_EMULATION=`set . $emulations ; echo $2`
5037 # e-mips* has more than one emulation per file, e-i386* has just one at the
5038 # moment. If only one emulation is specified, then don't define
5039 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5040 case "${obj_format}${emfiles}" in
5042 extra_objects="$extra_objects $emfiles"
5044 cat >>confdefs.h <<\_ACEOF
5045 @%:@define USE_EMULATIONS 1
5052 cat >>confdefs.h <<_ACEOF
5053 @%:@define EMULATIONS $EMULATIONS
5057 cat >>confdefs.h <<_ACEOF
5058 @%:@define DEFAULT_EMULATION "$DEFAULT_EMULATION"
5062 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
5063 yes-*-coff) need_bfd=yes ;;
5064 no-*-coff) need_bfd=yes
5066 cat >>confdefs.h <<\_ACEOF
5067 @%:@define MANY_SEGMENTS 1
5072 reject_dev_configs=yes
5074 case ${reject_dev_configs}-${dev} in
5076 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5077 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5078 { (exit 1); exit 1; }; }
5088 case "${primary_bfd_gas}" in
5090 cat >>confdefs.h <<\_ACEOF
5091 @%:@define BFD_ASSEMBLER 1
5097 # do we need the opcodes library?
5098 case "${need_opcodes}" in
5100 OPCODES_LIB=../opcodes/libopcodes.la
5104 case "${need_bfd}" in
5106 BFDLIB=../bfd/libbfd.la
5107 BFDVER_H=../bfd/bfdver.h
5108 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
5119 cat >>confdefs.h <<_ACEOF
5120 @%:@define TARGET_ALIAS "${target_alias}"
5124 cat >>confdefs.h <<_ACEOF
5125 @%:@define TARGET_CANONICAL "${target}"
5129 cat >>confdefs.h <<_ACEOF
5130 @%:@define TARGET_CPU "${target_cpu}"
5134 cat >>confdefs.h <<_ACEOF
5135 @%:@define TARGET_VENDOR "${target_vendor}"
5139 cat >>confdefs.h <<_ACEOF
5140 @%:@define TARGET_OS "${target_os}"
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5152 echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154 if test "${ac_cv_prog_CC+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 if test -n "$CC"; then
5158 ac_cv_prog_CC="$CC" # Let the user override the test.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 if test -n "$CC"; then
5178 echo "$as_me:$LINENO: result: $CC" >&5
5179 echo "${ECHO_T}$CC" >&6
5181 echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5186 if test -z "$ac_cv_prog_CC"; then
5188 # Extract the first word of "gcc", so it can be a program name with args.
5189 set dummy gcc; ac_word=$2
5190 echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 if test -n "$ac_ct_CC"; then
5196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_CC="gcc"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5215 if test -n "$ac_ct_CC"; then
5216 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5217 echo "${ECHO_T}$ac_ct_CC" >&6
5219 echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5228 if test -z "$CC"; then
5229 if test -n "$ac_tool_prefix"; then
5230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5231 set dummy ${ac_tool_prefix}cc; ac_word=$2
5232 echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_prog_CC+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 if test -n "$CC"; then
5238 ac_cv_prog_CC="$CC" # Let the user override the test.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_CC="${ac_tool_prefix}cc"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 if test -n "$CC"; then
5258 echo "$as_me:$LINENO: result: $CC" >&5
5259 echo "${ECHO_T}$CC" >&6
5261 echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6
5266 if test -z "$ac_cv_prog_CC"; then
5268 # Extract the first word of "cc", so it can be a program name with args.
5269 set dummy cc; ac_word=$2
5270 echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 if test -n "$ac_ct_CC"; then
5276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_ac_ct_CC="cc"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5295 if test -n "$ac_ct_CC"; then
5296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5297 echo "${ECHO_T}$ac_ct_CC" >&6
5299 echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6
5309 if test -z "$CC"; then
5310 # Extract the first word of "cc", so it can be a program name with args.
5311 set dummy cc; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_prog_CC+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 if test -n "$CC"; then
5318 ac_cv_prog_CC="$CC" # Let the user override the test.
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5329 ac_prog_rejected=yes
5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 if test $ac_prog_rejected = yes; then
5340 # We found a bogon in the path, so make sure we never use it.
5341 set dummy $ac_cv_prog_CC
5343 if test $@%:@ != 0; then
5344 # We chose a different compiler from the bogus one.
5345 # However, it has the same basename, so the bogon will be chosen
5346 # first if we set CC to just the basename; use the full file name.
5348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5354 if test -n "$CC"; then
5355 echo "$as_me:$LINENO: result: $CC" >&5
5356 echo "${ECHO_T}$CC" >&6
5358 echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5363 if test -z "$CC"; then
5364 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5369 echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5371 if test "${ac_cv_prog_CC+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 if test -n "$CC"; then
5375 ac_cv_prog_CC="$CC" # Let the user override the test.
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 if test -n "$CC"; then
5395 echo "$as_me:$LINENO: result: $CC" >&5
5396 echo "${ECHO_T}$CC" >&6
5398 echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5402 test -n "$CC" && break
5405 if test -z "$CC"; then
5409 # Extract the first word of "$ac_prog", so it can be a program name with args.
5410 set dummy $ac_prog; ac_word=$2
5411 echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 if test -n "$ac_ct_CC"; then
5417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_ac_ct_CC="$ac_prog"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5436 if test -n "$ac_ct_CC"; then
5437 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5438 echo "${ECHO_T}$ac_ct_CC" >&6
5440 echo "$as_me:$LINENO: result: no" >&5
5441 echo "${ECHO_T}no" >&6
5444 test -n "$ac_ct_CC" && break
5453 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5454 See \`config.log' for more details." >&5
5455 echo "$as_me: error: no acceptable C compiler found in \$PATH
5456 See \`config.log' for more details." >&2;}
5457 { (exit 1); exit 1; }; }
5459 # Provide some information about the compiler.
5460 echo "$as_me:$LINENO:" \
5461 "checking for C compiler version" >&5
5462 ac_compiler=`set X $ac_compile; echo $2`
5463 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5464 (eval $ac_compiler --version </dev/null >&5) 2>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }
5468 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5469 (eval $ac_compiler -v </dev/null >&5) 2>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }
5473 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5474 (eval $ac_compiler -V </dev/null >&5) 2>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }
5479 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5480 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5481 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5535 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5537 GCC=`test $ac_compiler_gnu = yes && echo yes`
5538 ac_test_CFLAGS=${CFLAGS+set}
5539 ac_save_CFLAGS=$CFLAGS
5541 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5542 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5543 if test "${ac_cv_prog_cc_g+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5561 rm -f conftest.$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -z "$ac_c_werror_flag"
5571 || test ! -s conftest.err'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
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
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5593 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5594 if test "$ac_test_CFLAGS" = set; then
5595 CFLAGS=$ac_save_CFLAGS
5596 elif test $ac_cv_prog_cc_g = yes; then
5597 if test "$GCC" = yes; then
5603 if test "$GCC" = yes; then
5609 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5610 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5611 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 ac_cv_prog_cc_stdc=no
5616 cat >conftest.$ac_ext <<_ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5624 #include <sys/types.h>
5625 #include <sys/stat.h>
5626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5627 struct buf { int x; };
5628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5629 static char *e (p, i)
5635 static char *f (char * (*g) (char **, int), char **p, ...)
5640 s = g (p, va_arg (v,int));
5645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5646 function prototypes and stuff, but not '\xHH' hex character constants.
5647 These don't provoke an error unfortunately, instead are silently treated
5648 as 'x'. The following induces an error, until -std1 is added to get
5649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5650 array size at least. It's necessary to write '\x00'==0 to get something
5651 that's true only with -std1. */
5652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5654 int test (int i, double x);
5655 struct s1 {int (*f) (int a);};
5656 struct s2 {int (*f) (double a);};
5657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5668 # Don't try gcc -ansi; that turns off useful extensions and
5669 # breaks some systems' header files.
5670 # AIX -qlanglvl=ansi
5671 # Ultrix and OSF/1 -std1
5672 # HP-UX 10.20 and later -Ae
5673 # HP-UX older versions -Aa -D_HPUX_SOURCE
5674 # SVR4 -Xc -D__EXTENSIONS__
5675 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5677 CC="$ac_save_CC $ac_arg"
5678 rm -f conftest.$ac_objext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>conftest.er1
5682 grep -v '^ *+' conftest.er1 >conftest.err
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -z "$ac_c_werror_flag"
5688 || test ! -s conftest.err'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; } &&
5694 { ac_try='test -s conftest.$ac_objext'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then
5700 ac_cv_prog_cc_stdc=$ac_arg
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5707 rm -f conftest.err conftest.$ac_objext
5709 rm -f conftest.$ac_ext conftest.$ac_objext
5714 case "x$ac_cv_prog_cc_stdc" in
5716 echo "$as_me:$LINENO: result: none needed" >&5
5717 echo "${ECHO_T}none needed" >&6 ;;
5719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5720 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5721 CC="$CC $ac_cv_prog_cc_stdc" ;;
5724 # Some people use a C++ compiler to compile C. Since we use `exit',
5725 # in C++ we need to declare it. In case someone uses the same compiler
5726 # for both compiling C and C++ we need to have the C++ compiler decide
5727 # the declaration of exit, since it's the most demanding environment.
5728 cat >conftest.$ac_ext <<_ACEOF
5729 @%:@ifndef __cplusplus
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5737 grep -v '^ *+' conftest.er1 >conftest.err
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_c_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 for ac_declaration in \
5757 'extern "C" void std::exit (int) throw (); using std::exit;' \
5758 'extern "C" void std::exit (int); using std::exit;' \
5759 'extern "C" void exit (int) throw ();' \
5760 'extern "C" void exit (int);' \
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5770 @%:@include <stdlib.h>
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>conftest.er1
5783 grep -v '^ *+' conftest.er1 >conftest.err
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 cat >conftest.$ac_ext <<_ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>conftest.er1
5828 grep -v '^ *+' conftest.er1 >conftest.err
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -z "$ac_c_werror_flag"
5834 || test ! -s conftest.err'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 if test -n "$ac_declaration"; then
5856 echo '#ifdef __cplusplus' >>confdefs.h
5857 echo $ac_declaration >>confdefs.h
5858 echo '#endif' >>confdefs.h
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868 ac_cpp='$CPP $CPPFLAGS'
5869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874 for ac_prog in 'bison -y' byacc
5876 # Extract the first word of "$ac_prog", so it can be a program name with args.
5877 set dummy $ac_prog; ac_word=$2
5878 echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880 if test "${ac_cv_prog_YACC+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 if test -n "$YACC"; then
5884 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_YACC="$ac_prog"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 YACC=$ac_cv_prog_YACC
5903 if test -n "$YACC"; then
5904 echo "$as_me:$LINENO: result: $YACC" >&5
5905 echo "${ECHO_T}$YACC" >&6
5907 echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6
5911 test -n "$YACC" && break
5913 test -n "$YACC" || YACC="yacc"
5915 for ac_prog in flex lex
5917 # Extract the first word of "$ac_prog", so it can be a program name with args.
5918 set dummy $ac_prog; ac_word=$2
5919 echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921 if test "${ac_cv_prog_LEX+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 if test -n "$LEX"; then
5925 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_LEX="$ac_prog"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 if test -n "$LEX"; then
5945 echo "$as_me:$LINENO: result: $LEX" >&5
5946 echo "${ECHO_T}$LEX" >&6
5948 echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6
5952 test -n "$LEX" && break
5954 test -n "$LEX" || LEX=":"
5956 if test -z "$LEXLIB"
5958 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5959 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5960 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 ac_check_lib_save_LIBS=$LIBS
5965 cat >conftest.$ac_ext <<_ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5972 /* Override any gcc2 internal prototype to avoid an error. */
5976 /* We use char because int might match the return type of a gcc2
5977 builtin and then its argument prototype would still apply. */
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989 (eval $ac_link) 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest$ac_exeext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_lib_fl_yywrap=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_cv_lib_fl_yywrap=no
6016 rm -f conftest.err conftest.$ac_objext \
6017 conftest$ac_exeext conftest.$ac_ext
6018 LIBS=$ac_check_lib_save_LIBS
6020 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6021 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6022 if test $ac_cv_lib_fl_yywrap = yes; then
6025 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6026 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6027 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 ac_check_lib_save_LIBS=$LIBS
6032 cat >conftest.$ac_ext <<_ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6039 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>conftest.er1
6058 grep -v '^ *+' conftest.er1 >conftest.err
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -z "$ac_c_werror_flag"
6064 || test ! -s conftest.err'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; } &&
6070 { ac_try='test -s conftest$ac_exeext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_lib_l_yywrap=yes
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_cv_lib_l_yywrap=no
6083 rm -f conftest.err conftest.$ac_objext \
6084 conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6087 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6088 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6089 if test $ac_cv_lib_l_yywrap = yes; then
6097 if test "x$LEX" != "x:"; then
6098 echo "$as_me:$LINENO: checking lex output file root" >&5
6099 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6100 if test "${ac_cv_prog_lex_root+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 # The minimal lex program is just a single line: %%. But some broken lexes
6104 # (Solaris, I think it was) want two %% lines, so accommodate them.
6105 cat >conftest.l <<_ACEOF
6109 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6110 (eval $LEX conftest.l) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }
6114 if test -f lex.yy.c; then
6115 ac_cv_prog_lex_root=lex.yy
6116 elif test -f lexyy.c; then
6117 ac_cv_prog_lex_root=lexyy
6119 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6120 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6121 { (exit 1); exit 1; }; }
6124 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6125 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6127 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6129 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6130 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6131 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 # POSIX says lex can declare yytext either as a pointer or an array; the
6135 # default is implementation-dependent. Figure out which it is, since
6136 # not all implementations provide the %pointer and %array declarations.
6137 ac_cv_prog_lex_yytext_pointer=no
6138 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6140 LIBS="$LIBS $LEXLIB"
6141 cat >conftest.$ac_ext <<_ACEOF
6142 `cat $LEX_OUTPUT_ROOT.c`
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6146 (eval $ac_link) 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -z "$ac_c_werror_flag"
6154 || test ! -s conftest.err'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest$ac_exeext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_prog_lex_yytext_pointer=yes
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6172 rm -f conftest.err conftest.$ac_objext \
6173 conftest$ac_exeext conftest.$ac_ext
6175 rm -f "${LEX_OUTPUT_ROOT}.c"
6178 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6179 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6180 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6182 cat >>confdefs.h <<\_ACEOF
6183 @%:@define YYTEXT_POINTER 1
6189 if test "$LEX" = :; then
6190 LEX=${am_missing_run}flex
6193 ALL_LINGUAS="fr tr es"
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6197 echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6199 if test "${ac_cv_prog_RANLIB+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 if test -n "$RANLIB"; then
6203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 RANLIB=$ac_cv_prog_RANLIB
6222 if test -n "$RANLIB"; then
6223 echo "$as_me:$LINENO: result: $RANLIB" >&5
6224 echo "${ECHO_T}$RANLIB" >&6
6226 echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6
6231 if test -z "$ac_cv_prog_RANLIB"; then
6232 ac_ct_RANLIB=$RANLIB
6233 # Extract the first word of "ranlib", so it can be a program name with args.
6234 set dummy ranlib; ac_word=$2
6235 echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6237 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 if test -n "$ac_ct_RANLIB"; then
6241 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6250 ac_cv_prog_ac_ct_RANLIB="ranlib"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6260 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6261 if test -n "$ac_ct_RANLIB"; then
6262 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6263 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6265 echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6
6269 RANLIB=$ac_ct_RANLIB
6271 RANLIB="$ac_cv_prog_RANLIB"
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6280 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6281 # On Suns, sometimes $CPP names a directory.
6282 if test -n "$CPP" && test -d "$CPP"; then
6285 if test -z "$CPP"; then
6286 if test "${ac_cv_prog_CPP+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 # Double quotes because CPP needs to be expanded
6290 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6293 for ac_c_preproc_warn_flag in '' yes
6295 # Use a header file that comes with gcc, so configuring glibc
6296 # with a fresh cross-compiler works.
6297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6298 # <limits.h> exists even on freestanding compilers.
6299 # On the NeXT, cc -E runs the code through the compiler's parser,
6300 # not just through cpp. "Syntax error" is here to catch this case.
6301 cat >conftest.$ac_ext <<_ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6308 @%:@ include <limits.h>
6310 @%:@ include <assert.h>
6314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1 >conftest.err
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } >/dev/null; then
6322 if test -s conftest.err; then
6323 ac_cpp_err=$ac_c_preproc_warn_flag
6324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6331 if test -z "$ac_cpp_err"; then
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 # Broken: fails on valid input.
6340 rm -f conftest.err conftest.$ac_ext
6342 # OK, works on sane cases. Now check whether non-existent headers
6343 # can be detected and how.
6344 cat >conftest.$ac_ext <<_ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 @%:@include <ac_nonexistent.h>
6352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } >/dev/null; then
6360 if test -s conftest.err; then
6361 ac_cpp_err=$ac_c_preproc_warn_flag
6362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6369 if test -z "$ac_cpp_err"; then
6370 # Broken: success on invalid input.
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 # Passes both tests.
6380 rm -f conftest.err conftest.$ac_ext
6383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6384 rm -f conftest.err conftest.$ac_ext
6385 if $ac_preproc_ok; then
6397 echo "$as_me:$LINENO: result: $CPP" >&5
6398 echo "${ECHO_T}$CPP" >&6
6400 for ac_c_preproc_warn_flag in '' yes
6402 # Use a header file that comes with gcc, so configuring glibc
6403 # with a fresh cross-compiler works.
6404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6405 # <limits.h> exists even on freestanding compilers.
6406 # On the NeXT, cc -E runs the code through the compiler's parser,
6407 # not just through cpp. "Syntax error" is here to catch this case.
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6415 @%:@ include <limits.h>
6417 @%:@ include <assert.h>
6421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6424 grep -v '^ *+' conftest.er1 >conftest.err
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } >/dev/null; then
6429 if test -s conftest.err; then
6430 ac_cpp_err=$ac_c_preproc_warn_flag
6431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6438 if test -z "$ac_cpp_err"; then
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 # Broken: fails on valid input.
6447 rm -f conftest.err conftest.$ac_ext
6449 # OK, works on sane cases. Now check whether non-existent headers
6450 # can be detected and how.
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 @%:@include <ac_nonexistent.h>
6459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } >/dev/null; then
6467 if test -s conftest.err; then
6468 ac_cpp_err=$ac_c_preproc_warn_flag
6469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6476 if test -z "$ac_cpp_err"; then
6477 # Broken: success on invalid input.
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 # Passes both tests.
6487 rm -f conftest.err conftest.$ac_ext
6490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6491 rm -f conftest.err conftest.$ac_ext
6492 if $ac_preproc_ok; then
6495 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6496 See \`config.log' for more details." >&5
6497 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6498 See \`config.log' for more details." >&2;}
6499 { (exit 1); exit 1; }; }
6503 ac_cpp='$CPP $CPPFLAGS'
6504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509 echo "$as_me:$LINENO: checking for egrep" >&5
6510 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6511 if test "${ac_cv_prog_egrep+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6515 then ac_cv_prog_egrep='grep -E'
6516 else ac_cv_prog_egrep='egrep'
6519 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6520 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6521 EGREP=$ac_cv_prog_egrep
6524 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6525 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6526 if test "${ac_cv_header_stdc+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 cat >conftest.$ac_ext <<_ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1 >conftest.err
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 ac_cv_header_stdc=yes
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 ac_cv_header_stdc=no
6577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test $ac_cv_header_stdc = yes; then
6580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 $EGREP "memchr" >/dev/null 2>&1; then
6594 ac_cv_header_stdc=no
6600 if test $ac_cv_header_stdc = yes; then
6601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6602 cat >conftest.$ac_ext <<_ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612 $EGREP "free" >/dev/null 2>&1; then
6615 ac_cv_header_stdc=no
6621 if test $ac_cv_header_stdc = yes; then
6622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6623 if test "$cross_compiling" = yes; then
6626 cat >conftest.$ac_ext <<_ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6633 #if ((' ' & 0x0FF) == 0x020)
6634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6637 # define ISLOWER(c) \
6638 (('a' <= (c) && (c) <= 'i') \
6639 || ('j' <= (c) && (c) <= 'r') \
6640 || ('s' <= (c) && (c) <= 'z'))
6641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6649 for (i = 0; i < 256; i++)
6650 if (XOR (islower (i), ISLOWER (i))
6651 || toupper (i) != TOUPPER (i))
6656 rm -f conftest$ac_exeext
6657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6658 (eval $ac_link) 2>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6669 echo "$as_me: program exited with status $ac_status" >&5
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6674 ac_cv_header_stdc=no
6676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6680 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6681 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6682 if test $ac_cv_header_stdc = yes; then
6684 cat >>confdefs.h <<\_ACEOF
6685 @%:@define STDC_HEADERS 1
6690 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6691 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6692 if test "${ac_cv_c_const+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 cat >conftest.$ac_ext <<_ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6705 /* FIXME: Include the comments suggested by Paul. */
6707 /* Ultrix mips cc rejects this. */
6708 typedef int charset[2];
6710 /* SunOS 4.1.1 cc rejects this. */
6711 char const *const *ccp;
6713 /* NEC SVR4.0.2 mips cc rejects this. */
6714 struct point {int x, y;};
6715 static struct point const zero = {0,0};
6716 /* AIX XL C 1.02.0.0 rejects this.
6717 It does not let you subtract one const X* pointer from another in
6718 an arm of an if-expression whose if-part is not a constant
6720 const char *g = "string";
6721 ccp = &g + (g ? g-g : 0);
6722 /* HPUX 7.0 cc rejects these. */
6725 ccp = (char const *const *) p;
6726 { /* SCO 3.2v4 cc rejects this. */
6728 char const *s = 0 ? (char *) 0 : (char const *) 0;
6732 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6734 const int *foo = &x[0];
6737 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6738 typedef const int *iptr;
6742 { /* AIX XL C 1.02.0.0 rejects this saying
6743 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6744 struct s { int j; const int *ap[3]; };
6745 struct s *b; b->j = 5;
6747 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6788 echo "${ECHO_T}$ac_cv_c_const" >&6
6789 if test $ac_cv_c_const = no; then
6791 cat >>confdefs.h <<\_ACEOF
6797 echo "$as_me:$LINENO: checking for inline" >&5
6798 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6799 if test "${ac_cv_c_inline+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 for ac_kw in inline __inline__ __inline; do
6804 cat >conftest.$ac_ext <<_ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6812 static $ac_kw foo_t static_foo () {return 0; }
6813 $ac_kw foo_t foo () {return 0; }
6817 rm -f conftest.$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>conftest.er1
6821 grep -v '^ *+' conftest.er1 >conftest.err
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest.$ac_objext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_cv_c_inline=$ac_kw; break
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6850 echo "${ECHO_T}$ac_cv_c_inline" >&6
6853 case $ac_cv_c_inline in
6856 case $ac_cv_c_inline in
6858 *) ac_val=$ac_cv_c_inline;;
6860 cat >>confdefs.h <<_ACEOF
6862 #define inline $ac_val
6868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6878 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6879 inttypes.h stdint.h unistd.h
6881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6882 echo "$as_me:$LINENO: checking for $ac_header" >&5
6883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 $ac_includes_default
6895 @%:@include <$ac_header>
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>conftest.er1
6901 grep -v '^ *+' conftest.er1 >conftest.err
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -z "$ac_c_werror_flag"
6907 || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 eval "$as_ac_Header=yes"
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 eval "$as_ac_Header=no"
6926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6931 cat >>confdefs.h <<_ACEOF
6932 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6940 echo "$as_me:$LINENO: checking for off_t" >&5
6941 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6942 if test "${ac_cv_type_off_t+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 $ac_includes_default
6963 rm -f conftest.$ac_objext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965 (eval $ac_compile) 2>conftest.er1
6967 grep -v '^ *+' conftest.er1 >conftest.err
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -z "$ac_c_werror_flag"
6973 || test ! -s conftest.err'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; } &&
6979 { ac_try='test -s conftest.$ac_objext'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6985 ac_cv_type_off_t=yes
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6995 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6996 if test $ac_cv_type_off_t = yes; then
7000 cat >>confdefs.h <<_ACEOF
7001 @%:@define off_t long
7006 echo "$as_me:$LINENO: checking for size_t" >&5
7007 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7008 if test "${ac_cv_type_size_t+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 cat >conftest.$ac_ext <<_ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 $ac_includes_default
7023 if (sizeof (size_t))
7029 rm -f conftest.$ac_objext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031 (eval $ac_compile) 2>conftest.er1
7033 grep -v '^ *+' conftest.er1 >conftest.err
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try='test -z "$ac_c_werror_flag"
7039 || test ! -s conftest.err'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; } &&
7045 { ac_try='test -s conftest.$ac_objext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 ac_cv_type_size_t=yes
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 ac_cv_type_size_t=no
7058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7060 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7061 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7062 if test $ac_cv_type_size_t = yes; then
7066 cat >>confdefs.h <<_ACEOF
7067 @%:@define size_t unsigned
7072 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7073 # for constant arguments. Useless!
7074 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7075 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7076 if test "${ac_cv_working_alloca_h+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 cat >conftest.$ac_ext <<_ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 @%:@include <alloca.h>
7089 char *p = (char *) alloca (2 * sizeof (int));
7094 rm -f conftest.$ac_objext conftest$ac_exeext
7095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7096 (eval $ac_link) 2>conftest.er1
7098 grep -v '^ *+' conftest.er1 >conftest.err
7100 cat conftest.err >&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } &&
7103 { ac_try='test -z "$ac_c_werror_flag"
7104 || test ! -s conftest.err'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; } &&
7110 { ac_try='test -s conftest$ac_exeext'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then
7116 ac_cv_working_alloca_h=yes
7118 echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7121 ac_cv_working_alloca_h=no
7123 rm -f conftest.err conftest.$ac_objext \
7124 conftest$ac_exeext conftest.$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7127 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7128 if test $ac_cv_working_alloca_h = yes; then
7130 cat >>confdefs.h <<\_ACEOF
7131 @%:@define HAVE_ALLOCA_H 1
7136 echo "$as_me:$LINENO: checking for alloca" >&5
7137 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7138 if test "${ac_cv_func_alloca_works+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7148 # define alloca __builtin_alloca
7151 # include <malloc.h>
7152 # define alloca _alloca
7155 # include <alloca.h>
7160 # ifndef alloca /* predefined by HP cc +Olibcalls */
7171 char *p = (char *) alloca (1);
7176 rm -f conftest.$ac_objext conftest$ac_exeext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7178 (eval $ac_link) 2>conftest.er1
7180 grep -v '^ *+' conftest.er1 >conftest.err
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try='test -s conftest$ac_exeext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_cv_func_alloca_works=yes
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7203 ac_cv_func_alloca_works=no
7205 rm -f conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7208 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7209 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7211 if test $ac_cv_func_alloca_works = yes; then
7213 cat >>confdefs.h <<\_ACEOF
7214 @%:@define HAVE_ALLOCA 1
7218 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7219 # that cause trouble. Some versions do not even contain alloca or
7220 # contain a buggy version. If you still want to use their alloca,
7221 # use ar to extract alloca.o from them instead of compiling alloca.c.
7223 ALLOCA=alloca.$ac_objext
7225 cat >>confdefs.h <<\_ACEOF
7226 @%:@define C_ALLOCA 1
7230 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7231 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7232 if test "${ac_cv_os_cray+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 cat >conftest.$ac_ext <<_ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #if defined(CRAY) && ! defined(CRAY2)
7248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7249 $EGREP "webecray" >/dev/null 2>&1; then
7257 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7258 echo "${ECHO_T}$ac_cv_os_cray" >&6
7259 if test $ac_cv_os_cray = yes; then
7260 for ac_func in _getb67 GETB67 getb67; do
7261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7262 echo "$as_me:$LINENO: checking for $ac_func" >&5
7263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7264 if eval "test \"\${$as_ac_var+set}\" = set"; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 cat >conftest.$ac_ext <<_ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7275 #define $ac_func innocuous_$ac_func
7277 /* System header to define __stub macros and hopefully few prototypes,
7278 which can conflict with char $ac_func (); below.
7279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7280 <limits.h> exists even on freestanding compilers. */
7283 # include <limits.h>
7285 # include <assert.h>
7290 /* Override any gcc2 internal prototype to avoid an error. */
7295 /* We use char because int might match the return type of a gcc2
7296 builtin and then its argument prototype would still apply. */
7298 /* The GNU C library defines this for functions which it implements
7299 to always fail with ENOSYS. Some functions are actually named
7300 something starting with __ and the normal name is an alias. */
7301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7304 char (*f) () = $ac_func;
7313 return f != $ac_func;
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7320 (eval $ac_link) 2>conftest.er1
7322 grep -v '^ *+' conftest.er1 >conftest.err
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag"
7328 || test ! -s conftest.err'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; } &&
7334 { ac_try='test -s conftest$ac_exeext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 eval "$as_ac_var=yes"
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7345 eval "$as_ac_var=no"
7347 rm -f conftest.err conftest.$ac_objext \
7348 conftest$ac_exeext conftest.$ac_ext
7350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7352 if test `eval echo '${'$as_ac_var'}'` = yes; then
7354 cat >>confdefs.h <<_ACEOF
7355 @%:@define CRAY_STACKSEG_END $ac_func
7364 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7365 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7366 if test "${ac_cv_c_stack_direction+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 if test "$cross_compiling" = yes; then
7370 ac_cv_c_stack_direction=0
7372 cat >conftest.$ac_ext <<_ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7379 find_stack_direction ()
7381 static char *addr = 0;
7386 return find_stack_direction ();
7389 return (&dummy > addr) ? 1 : -1;
7395 exit (find_stack_direction () < 0);
7398 rm -f conftest$ac_exeext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7400 (eval $ac_link) 2>&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 ac_cv_c_stack_direction=1
7411 echo "$as_me: program exited with status $ac_status" >&5
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_cv_c_stack_direction=-1
7418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7421 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7422 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7424 cat >>confdefs.h <<_ACEOF
7425 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
7433 for ac_header in stdlib.h unistd.h
7435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7437 echo "$as_me:$LINENO: checking for $ac_header" >&5
7438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7445 # Is the header compilable?
7446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 $ac_includes_default
7455 @%:@include <$ac_header>
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
7461 grep -v '^ *+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -z "$ac_c_werror_flag"
7467 || test ! -s conftest.err'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_header_compiler=yes
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 ac_header_compiler=no
7486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7488 echo "${ECHO_T}$ac_header_compiler" >&6
7490 # Is the header present?
7491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7493 cat >conftest.$ac_ext <<_ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 @%:@include <$ac_header>
7501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7504 grep -v '^ *+' conftest.er1 >conftest.err
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } >/dev/null; then
7509 if test -s conftest.err; then
7510 ac_cpp_err=$ac_c_preproc_warn_flag
7511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7518 if test -z "$ac_cpp_err"; then
7519 ac_header_preproc=yes
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7524 ac_header_preproc=no
7526 rm -f conftest.err conftest.$ac_ext
7527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7528 echo "${ECHO_T}$ac_header_preproc" >&6
7530 # So? What about this header?
7531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7537 ac_header_preproc=yes
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7554 @%:@@%:@ ------------------------------------------ @%:@@%:@
7555 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
7556 @%:@@%:@ ------------------------------------------ @%:@@%:@
7559 sed "s/^/$as_me: WARNING: /" >&2
7562 echo "$as_me:$LINENO: checking for $ac_header" >&5
7563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 eval "$as_ac_Header=\$ac_header_preproc"
7569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7574 cat >>confdefs.h <<_ACEOF
7575 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 for ac_func in getpagesize
7585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7586 echo "$as_me:$LINENO: checking for $ac_func" >&5
7587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7588 if eval "test \"\${$as_ac_var+set}\" = set"; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 cat >conftest.$ac_ext <<_ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7599 #define $ac_func innocuous_$ac_func
7601 /* System header to define __stub macros and hopefully few prototypes,
7602 which can conflict with char $ac_func (); below.
7603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7604 <limits.h> exists even on freestanding compilers. */
7607 # include <limits.h>
7609 # include <assert.h>
7614 /* Override any gcc2 internal prototype to avoid an error. */
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7622 /* The GNU C library defines this for functions which it implements
7623 to always fail with ENOSYS. Some functions are actually named
7624 something starting with __ and the normal name is an alias. */
7625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7628 char (*f) () = $ac_func;
7637 return f != $ac_func;
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644 (eval $ac_link) 2>conftest.er1
7646 grep -v '^ *+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag"
7652 || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest$ac_exeext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 eval "$as_ac_var=yes"
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 eval "$as_ac_var=no"
7671 rm -f conftest.err conftest.$ac_objext \
7672 conftest$ac_exeext conftest.$ac_ext
7674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7676 if test `eval echo '${'$as_ac_var'}'` = yes; then
7677 cat >>confdefs.h <<_ACEOF
7678 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7684 echo "$as_me:$LINENO: checking for working mmap" >&5
7685 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7686 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 if test "$cross_compiling" = yes; then
7690 ac_cv_func_mmap_fixed_mapped=no
7692 cat >conftest.$ac_ext <<_ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 /* malloc might have been renamed as rpl_malloc. */
7702 /* Thanks to Mike Haertel and Jim Avera for this test.
7703 Here is a matrix of mmap possibilities:
7704 mmap private not fixed
7705 mmap private fixed at somewhere currently unmapped
7706 mmap private fixed at somewhere already mapped
7707 mmap shared not fixed
7708 mmap shared fixed at somewhere currently unmapped
7709 mmap shared fixed at somewhere already mapped
7710 For private mappings, we should verify that changes cannot be read()
7711 back from the file, nor mmap's back from the file at a different
7712 address. (There have been systems where private was not correctly
7713 implemented like the infamous i386 svr4.0, and systems where the
7714 VM page cache was not coherent with the file system buffer cache
7715 like early versions of FreeBSD and possibly contemporary NetBSD.)
7716 For shared mappings, we should conversely verify that changes get
7717 propagated back to all the places they're supposed to be.
7719 Grep wants private fixed already mapped.
7720 The main things grep needs to know about mmap are:
7721 * does it exist and is it safe to write into the mmap'd area
7722 * how to use it (BSD variants) */
7725 #include <sys/mman.h>
7727 #if !STDC_HEADERS && !HAVE_STDLIB_H
7731 /* This mess was copied from the GNU getpagesize.h. */
7732 #if !HAVE_GETPAGESIZE
7733 /* Assume that all systems that can run configure have sys/param.h. */
7734 # if !HAVE_SYS_PARAM_H
7735 # define HAVE_SYS_PARAM_H 1
7738 # ifdef _SC_PAGESIZE
7739 # define getpagesize() sysconf(_SC_PAGESIZE)
7740 # else /* no _SC_PAGESIZE */
7741 # if HAVE_SYS_PARAM_H
7742 # include <sys/param.h>
7743 # ifdef EXEC_PAGESIZE
7744 # define getpagesize() EXEC_PAGESIZE
7745 # else /* no EXEC_PAGESIZE */
7747 # define getpagesize() NBPG * CLSIZE
7750 # endif /* no CLSIZE */
7751 # else /* no NBPG */
7753 # define getpagesize() NBPC
7754 # else /* no NBPC */
7756 # define getpagesize() PAGESIZE
7757 # endif /* PAGESIZE */
7758 # endif /* no NBPC */
7759 # endif /* no NBPG */
7760 # endif /* no EXEC_PAGESIZE */
7761 # else /* no HAVE_SYS_PARAM_H */
7762 # define getpagesize() 8192 /* punt totally */
7763 # endif /* no HAVE_SYS_PARAM_H */
7764 # endif /* no _SC_PAGESIZE */
7766 #endif /* no HAVE_GETPAGESIZE */
7771 char *data, *data2, *data3;
7775 pagesize = getpagesize ();
7777 /* First, make a file with some known garbage in it. */
7778 data = (char *) malloc (pagesize);
7781 for (i = 0; i < pagesize; ++i)
7782 *(data + i) = rand ();
7784 fd = creat ("conftest.mmap", 0600);
7787 if (write (fd, data, pagesize) != pagesize)
7791 /* Next, try to mmap the file at a fixed address which already has
7792 something else allocated at it. If we can, also make sure that
7793 we see the same garbage. */
7794 fd = open ("conftest.mmap", O_RDWR);
7797 data2 = (char *) malloc (2 * pagesize);
7800 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7801 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7802 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7804 for (i = 0; i < pagesize; ++i)
7805 if (*(data + i) != *(data2 + i))
7808 /* Finally, make sure that changes to the mapped area do not
7809 percolate back to the file as seen by read(). (This is a bug on
7810 some variants of i386 svr4.0.) */
7811 for (i = 0; i < pagesize; ++i)
7812 *(data2 + i) = *(data2 + i) + 1;
7813 data3 = (char *) malloc (pagesize);
7816 if (read (fd, data3, pagesize) != pagesize)
7818 for (i = 0; i < pagesize; ++i)
7819 if (*(data + i) != *(data3 + i))
7825 rm -f conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_func_mmap_fixed_mapped=yes
7838 echo "$as_me: program exited with status $ac_status" >&5
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_func_mmap_fixed_mapped=no
7845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7848 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7849 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7850 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7852 cat >>confdefs.h <<\_ACEOF
7853 @%:@define HAVE_MMAP 1
7869 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7870 unistd.h values.h sys/param.h
7872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7874 echo "$as_me:$LINENO: checking for $ac_header" >&5
7875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7882 # Is the header compilable?
7883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7885 cat >conftest.$ac_ext <<_ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7891 $ac_includes_default
7892 @%:@include <$ac_header>
7894 rm -f conftest.$ac_objext
7895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7896 (eval $ac_compile) 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -z "$ac_c_werror_flag"
7904 || test ! -s conftest.err'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try='test -s conftest.$ac_objext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_header_compiler=yes
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7921 ac_header_compiler=no
7923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7925 echo "${ECHO_T}$ac_header_compiler" >&6
7927 # Is the header present?
7928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7936 @%:@include <$ac_header>
7938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } >/dev/null; then
7946 if test -s conftest.err; then
7947 ac_cpp_err=$ac_c_preproc_warn_flag
7948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7955 if test -z "$ac_cpp_err"; then
7956 ac_header_preproc=yes
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 ac_header_preproc=no
7963 rm -f conftest.err conftest.$ac_ext
7964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7965 echo "${ECHO_T}$ac_header_preproc" >&6
7967 # So? What about this header?
7968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7974 ac_header_preproc=yes
7977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7991 @%:@@%:@ ------------------------------------------ @%:@@%:@
7992 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
7993 @%:@@%:@ ------------------------------------------ @%:@@%:@
7996 sed "s/^/$as_me: WARNING: /" >&2
7999 echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 eval "$as_ac_Header=\$ac_header_preproc"
8006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8011 cat >>confdefs.h <<_ACEOF
8012 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8029 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
8030 __argz_count __argz_stringify __argz_next
8032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8033 echo "$as_me:$LINENO: checking for $ac_func" >&5
8034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8035 if eval "test \"\${$as_ac_var+set}\" = set"; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8046 #define $ac_func innocuous_$ac_func
8048 /* System header to define __stub macros and hopefully few prototypes,
8049 which can conflict with char $ac_func (); below.
8050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8051 <limits.h> exists even on freestanding compilers. */
8054 # include <limits.h>
8056 # include <assert.h>
8061 /* Override any gcc2 internal prototype to avoid an error. */
8066 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8069 /* The GNU C library defines this for functions which it implements
8070 to always fail with ENOSYS. Some functions are actually named
8071 something starting with __ and the normal name is an alias. */
8072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8075 char (*f) () = $ac_func;
8084 return f != $ac_func;
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8093 grep -v '^ *+' conftest.er1 >conftest.err
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111 eval "$as_ac_var=yes"
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8116 eval "$as_ac_var=no"
8118 rm -f conftest.err conftest.$ac_objext \
8119 conftest$ac_exeext conftest.$ac_ext
8121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8123 if test `eval echo '${'$as_ac_var'}'` = yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8132 if test "${ac_cv_func_stpcpy+set}" != "set"; then
8134 for ac_func in stpcpy
8136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8137 echo "$as_me:$LINENO: checking for $ac_func" >&5
8138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8139 if eval "test \"\${$as_ac_var+set}\" = set"; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 cat >conftest.$ac_ext <<_ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8150 #define $ac_func innocuous_$ac_func
8152 /* System header to define __stub macros and hopefully few prototypes,
8153 which can conflict with char $ac_func (); below.
8154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8155 <limits.h> exists even on freestanding compilers. */
8158 # include <limits.h>
8160 # include <assert.h>
8165 /* Override any gcc2 internal prototype to avoid an error. */
8170 /* We use char because int might match the return type of a gcc2
8171 builtin and then its argument prototype would still apply. */
8173 /* The GNU C library defines this for functions which it implements
8174 to always fail with ENOSYS. Some functions are actually named
8175 something starting with __ and the normal name is an alias. */
8176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8179 char (*f) () = $ac_func;
8188 return f != $ac_func;
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8195 (eval $ac_link) 2>conftest.er1
8197 grep -v '^ *+' conftest.er1 >conftest.err
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -z "$ac_c_werror_flag"
8203 || test ! -s conftest.err'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try='test -s conftest$ac_exeext'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 eval "$as_ac_var=yes"
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8220 eval "$as_ac_var=no"
8222 rm -f conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8227 if test `eval echo '${'$as_ac_var'}'` = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8236 if test "${ac_cv_func_stpcpy}" = "yes"; then
8238 cat >>confdefs.h <<\_ACEOF
8239 @%:@define HAVE_STPCPY 1
8244 if test $ac_cv_header_locale_h = yes; then
8245 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8246 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8247 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267 (eval $ac_link) 2>conftest.er1
8269 grep -v '^ *+' conftest.er1 >conftest.err
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -z "$ac_c_werror_flag"
8275 || test ! -s conftest.err'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try='test -s conftest$ac_exeext'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 am_cv_val_LC_MESSAGES=yes
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8292 am_cv_val_LC_MESSAGES=no
8294 rm -f conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8297 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8298 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8299 if test $am_cv_val_LC_MESSAGES = yes; then
8301 cat >>confdefs.h <<\_ACEOF
8302 @%:@define HAVE_LC_MESSAGES 1
8307 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8308 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8309 # Check whether --enable-nls or --disable-nls was given.
8310 if test "${enable_nls+set}" = set; then
8311 enableval="$enable_nls"
8316 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8317 echo "${ECHO_T}$USE_NLS" >&6
8320 USE_INCLUDED_LIBINTL=no
8322 if test "$USE_NLS" = "yes"; then
8324 cat >>confdefs.h <<\_ACEOF
8325 @%:@define ENABLE_NLS 1
8328 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8329 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8331 # Check whether --with-included-gettext or --without-included-gettext was given.
8332 if test "${with_included_gettext+set}" = set; then
8333 withval="$with_included_gettext"
8334 nls_cv_force_use_gnu_gettext=$withval
8336 nls_cv_force_use_gnu_gettext=no
8338 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8339 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8341 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8342 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8344 nls_cv_header_libgt=
8347 if test "${ac_cv_header_libintl_h+set}" = set; then
8348 echo "$as_me:$LINENO: checking for libintl.h" >&5
8349 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8350 if test "${ac_cv_header_libintl_h+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8354 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8356 # Is the header compilable?
8357 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8358 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8359 cat >conftest.$ac_ext <<_ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8366 @%:@include <libintl.h>
8368 rm -f conftest.$ac_objext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8370 (eval $ac_compile) 2>conftest.er1
8372 grep -v '^ *+' conftest.er1 >conftest.err
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -z "$ac_c_werror_flag"
8378 || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_header_compiler=yes
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 ac_header_compiler=no
8397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8399 echo "${ECHO_T}$ac_header_compiler" >&6
8401 # Is the header present?
8402 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8403 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 @%:@include <libintl.h>
8412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8415 grep -v '^ *+' conftest.er1 >conftest.err
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } >/dev/null; then
8420 if test -s conftest.err; then
8421 ac_cpp_err=$ac_c_preproc_warn_flag
8422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8429 if test -z "$ac_cpp_err"; then
8430 ac_header_preproc=yes
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_header_preproc=no
8437 rm -f conftest.err conftest.$ac_ext
8438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8439 echo "${ECHO_T}$ac_header_preproc" >&6
8441 # So? What about this header?
8442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8444 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8445 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8446 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8447 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8448 ac_header_preproc=yes
8451 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8452 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8454 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8455 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8456 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8457 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8458 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8459 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8460 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8461 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8462 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8465 @%:@@%:@ ------------------------------------------ @%:@@%:@
8466 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
8467 @%:@@%:@ ------------------------------------------ @%:@@%:@
8470 sed "s/^/$as_me: WARNING: /" >&2
8473 echo "$as_me:$LINENO: checking for libintl.h" >&5
8474 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8475 if test "${ac_cv_header_libintl_h+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 ac_cv_header_libintl_h=$ac_header_preproc
8480 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8481 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8484 if test $ac_cv_header_libintl_h = yes; then
8485 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8486 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8487 if test "${gt_cv_func_gettext_libc+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 #include <libintl.h>
8500 return (int) gettext ("")
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507 (eval $ac_link) 2>conftest.er1
8509 grep -v '^ *+' conftest.er1 >conftest.err
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -z "$ac_c_werror_flag"
8515 || test ! -s conftest.err'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; } &&
8521 { ac_try='test -s conftest$ac_exeext'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8527 gt_cv_func_gettext_libc=yes
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 gt_cv_func_gettext_libc=no
8534 rm -f conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8537 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8538 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8540 if test "$gt_cv_func_gettext_libc" != "yes"; then
8541 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8542 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8543 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 ac_check_lib_save_LIBS=$LIBS
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8555 /* Override any gcc2 internal prototype to avoid an error. */
8559 /* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8561 char bindtextdomain ();
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572 (eval $ac_link) 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -z "$ac_c_werror_flag"
8580 || test ! -s conftest.err'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; } &&
8586 { ac_try='test -s conftest$ac_exeext'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 ac_cv_lib_intl_bindtextdomain=yes
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_cv_lib_intl_bindtextdomain=no
8599 rm -f conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8601 LIBS=$ac_check_lib_save_LIBS
8603 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8604 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8605 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8606 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8607 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8608 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8621 return (int) gettext ("")
8626 rm -f conftest.$ac_objext conftest$ac_exeext
8627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628 (eval $ac_link) 2>conftest.er1
8630 grep -v '^ *+' conftest.er1 >conftest.err
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } &&
8635 { ac_try='test -z "$ac_c_werror_flag"
8636 || test ! -s conftest.err'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; } &&
8642 { ac_try='test -s conftest$ac_exeext'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 gt_cv_func_gettext_libintl=yes
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 gt_cv_func_gettext_libintl=no
8655 rm -f conftest.err conftest.$ac_objext \
8656 conftest$ac_exeext conftest.$ac_ext
8658 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8659 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8664 if test "$gt_cv_func_gettext_libc" = "yes" \
8665 || test "$gt_cv_func_gettext_libintl" = "yes"; then
8667 cat >>confdefs.h <<\_ACEOF
8668 @%:@define HAVE_GETTEXT 1
8671 # Extract the first word of "msgfmt", so it can be a program name with args.
8672 set dummy msgfmt; ac_word=$2
8673 echo "$as_me:$LINENO: checking for $ac_word" >&5
8674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8675 if test "${ac_cv_path_MSGFMT+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8684 for ac_dir in $PATH; do
8685 test -z "$ac_dir" && ac_dir=.
8686 if test -f $ac_dir/$ac_word; then
8687 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8688 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8694 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8698 MSGFMT="$ac_cv_path_MSGFMT"
8699 if test -n "$MSGFMT"; then
8700 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8701 echo "${ECHO_T}$MSGFMT" >&6
8703 echo "$as_me:$LINENO: result: no" >&5
8704 echo "${ECHO_T}no" >&6
8706 if test "$MSGFMT" != "no"; then
8708 for ac_func in dcgettext
8710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8711 echo "$as_me:$LINENO: checking for $ac_func" >&5
8712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8713 if eval "test \"\${$as_ac_var+set}\" = set"; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8724 #define $ac_func innocuous_$ac_func
8726 /* System header to define __stub macros and hopefully few prototypes,
8727 which can conflict with char $ac_func (); below.
8728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729 <limits.h> exists even on freestanding compilers. */
8732 # include <limits.h>
8734 # include <assert.h>
8739 /* Override any gcc2 internal prototype to avoid an error. */
8744 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */
8747 /* The GNU C library defines this for functions which it implements
8748 to always fail with ENOSYS. Some functions are actually named
8749 something starting with __ and the normal name is an alias. */
8750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8753 char (*f) () = $ac_func;
8762 return f != $ac_func;
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769 (eval $ac_link) 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag"
8777 || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 eval "$as_ac_var=yes"
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 eval "$as_ac_var=no"
8796 rm -f conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8801 if test `eval echo '${'$as_ac_var'}'` = yes; then
8802 cat >>confdefs.h <<_ACEOF
8803 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8809 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8810 set dummy gmsgfmt; ac_word=$2
8811 echo "$as_me:$LINENO: checking for $ac_word" >&5
8812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8813 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8828 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8839 GMSGFMT=$ac_cv_path_GMSGFMT
8841 if test -n "$GMSGFMT"; then
8842 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8843 echo "${ECHO_T}$GMSGFMT" >&6
8845 echo "$as_me:$LINENO: result: no" >&5
8846 echo "${ECHO_T}no" >&6
8849 # Extract the first word of "xgettext", so it can be a program name with args.
8850 set dummy xgettext; ac_word=$2
8851 echo "$as_me:$LINENO: checking for $ac_word" >&5
8852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8853 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8862 for ac_dir in $PATH; do
8863 test -z "$ac_dir" && ac_dir=.
8864 if test -f $ac_dir/$ac_word; then
8865 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8866 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8872 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8876 XGETTEXT="$ac_cv_path_XGETTEXT"
8877 if test -n "$XGETTEXT"; then
8878 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8879 echo "${ECHO_T}$XGETTEXT" >&6
8881 echo "$as_me:$LINENO: result: no" >&5
8882 echo "${ECHO_T}no" >&6
8885 cat >conftest.$ac_ext <<_ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8895 extern int _nl_msg_cat_cntr;
8896 return _nl_msg_cat_cntr
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>conftest.er1
8905 grep -v '^ *+' conftest.er1 >conftest.err
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -z "$ac_c_werror_flag"
8911 || test ! -s conftest.err'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try='test -s conftest$ac_exeext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8932 rm -f conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8943 if test "$CATOBJEXT" = "NONE"; then
8944 nls_cv_use_gnu_gettext=yes
8948 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8949 INTLOBJS="\$(GETTOBJS)"
8950 # Extract the first word of "msgfmt", so it can be a program name with args.
8951 set dummy msgfmt; ac_word=$2
8952 echo "$as_me:$LINENO: checking for $ac_word" >&5
8953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8954 if test "${ac_cv_path_MSGFMT+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8963 for ac_dir in $PATH; do
8964 test -z "$ac_dir" && ac_dir=.
8965 if test -f $ac_dir/$ac_word; then
8966 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8967 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8973 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8977 MSGFMT="$ac_cv_path_MSGFMT"
8978 if test -n "$MSGFMT"; then
8979 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8980 echo "${ECHO_T}$MSGFMT" >&6
8982 echo "$as_me:$LINENO: result: no" >&5
8983 echo "${ECHO_T}no" >&6
8986 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8987 set dummy gmsgfmt; ac_word=$2
8988 echo "$as_me:$LINENO: checking for $ac_word" >&5
8989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8990 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9016 GMSGFMT=$ac_cv_path_GMSGFMT
9018 if test -n "$GMSGFMT"; then
9019 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9020 echo "${ECHO_T}$GMSGFMT" >&6
9022 echo "$as_me:$LINENO: result: no" >&5
9023 echo "${ECHO_T}no" >&6
9026 # Extract the first word of "xgettext", so it can be a program name with args.
9027 set dummy xgettext; ac_word=$2
9028 echo "$as_me:$LINENO: checking for $ac_word" >&5
9029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9030 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9039 for ac_dir in $PATH; do
9040 test -z "$ac_dir" && ac_dir=.
9041 if test -f $ac_dir/$ac_word; then
9042 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9043 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9049 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9053 XGETTEXT="$ac_cv_path_XGETTEXT"
9054 if test -n "$XGETTEXT"; then
9055 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9056 echo "${ECHO_T}$XGETTEXT" >&6
9058 echo "$as_me:$LINENO: result: no" >&5
9059 echo "${ECHO_T}no" >&6
9063 USE_INCLUDED_LIBINTL=yes
9067 INTLDEPS='$(top_builddir)/../intl/libintl.a'
9069 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9070 nls_cv_header_intl=libintl.h
9071 nls_cv_header_libgt=libgettext.h
9074 if test "$XGETTEXT" != ":"; then
9075 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9078 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
9079 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
9084 # We need to process the po/ directory.
9088 nls_cv_header_intl=libintl.h
9089 nls_cv_header_libgt=libgettext.h
9092 # If this is used in GNU gettext we have to set USE_NLS to `yes'
9093 # because some of the sources are only built for this goal.
9094 if test "$PACKAGE" = gettext; then
9096 USE_INCLUDED_LIBINTL=yes
9099 for lang in $ALL_LINGUAS; do
9100 GMOFILES="$GMOFILES $lang.gmo"
9101 POFILES="$POFILES $lang.po"
9117 if test "x$CATOBJEXT" != "x"; then
9118 if test "x$ALL_LINGUAS" = "x"; then
9121 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9122 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9124 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9125 case "$ALL_LINGUAS" in
9126 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9129 LINGUAS=$NEW_LINGUAS
9130 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9131 echo "${ECHO_T}$LINGUAS" >&6
9134 if test -n "$LINGUAS"; then
9135 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9139 if test $ac_cv_header_locale_h = yes; then
9140 INCLUDE_LOCALE_H="#include <locale.h>"
9143 /* The system does not provide the header <locale.h>. Take care yourself. */"
9147 if test -f $srcdir/po2tbl.sed.in; then
9148 if test "$CATOBJEXT" = ".cat"; then
9149 if test "${ac_cv_header_linux_version_h+set}" = set; then
9150 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9151 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9152 if test "${ac_cv_header_linux_version_h+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9156 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9158 # Is the header compilable?
9159 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9160 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9161 cat >conftest.$ac_ext <<_ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 $ac_includes_default
9168 @%:@include <linux/version.h>
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest.$ac_objext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_header_compiler=yes
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 ac_header_compiler=no
9199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9201 echo "${ECHO_T}$ac_header_compiler" >&6
9203 # Is the header present?
9204 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9205 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9206 cat >conftest.$ac_ext <<_ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 @%:@include <linux/version.h>
9214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9217 grep -v '^ *+' conftest.er1 >conftest.err
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } >/dev/null; then
9222 if test -s conftest.err; then
9223 ac_cpp_err=$ac_c_preproc_warn_flag
9224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9231 if test -z "$ac_cpp_err"; then
9232 ac_header_preproc=yes
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ac_header_preproc=no
9239 rm -f conftest.err conftest.$ac_ext
9240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9241 echo "${ECHO_T}$ac_header_preproc" >&6
9243 # So? What about this header?
9244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9246 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9247 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9249 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9250 ac_header_preproc=yes
9253 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9254 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9256 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9258 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9260 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9262 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9264 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9267 @%:@@%:@ ------------------------------------------ @%:@@%:@
9268 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
9269 @%:@@%:@ ------------------------------------------ @%:@@%:@
9272 sed "s/^/$as_me: WARNING: /" >&2
9275 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9276 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9277 if test "${ac_cv_header_linux_version_h+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 ac_cv_header_linux_version_h=$ac_header_preproc
9282 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9283 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9286 if test $ac_cv_header_linux_version_h = yes; then
9294 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
9296 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
9297 $srcdir/po2tbl.sed.in > po2tbl.sed
9300 if test "$PACKAGE" = "gettext"; then
9310 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
9316 if test -f $srcdir/po/POTFILES.in; then
9317 test -d po || mkdir po
9318 if test "x$srcdir" != "x."; then
9319 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9320 posrcprefix="$srcdir/"
9322 posrcprefix="../$srcdir/"
9328 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9329 < $srcdir/po/POTFILES.in > po/POTFILES
9333 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9334 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9335 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9336 if test "${enable_maintainer_mode+set}" = set; then
9337 enableval="$enable_maintainer_mode"
9338 USE_MAINTAINER_MODE=$enableval
9340 USE_MAINTAINER_MODE=no
9342 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9343 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9346 if test $USE_MAINTAINER_MODE = yes; then
9347 MAINTAINER_MODE_TRUE=
9348 MAINTAINER_MODE_FALSE='#'
9350 MAINTAINER_MODE_TRUE='#'
9351 MAINTAINER_MODE_FALSE=
9354 MAINT=$MAINTAINER_MODE_TRUE
9368 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
9370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9372 echo "$as_me:$LINENO: checking for $ac_header" >&5
9373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9380 # Is the header compilable?
9381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9383 cat >conftest.$ac_ext <<_ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 $ac_includes_default
9390 @%:@include <$ac_header>
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394 (eval $ac_compile) 2>conftest.er1
9396 grep -v '^ *+' conftest.er1 >conftest.err
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag"
9402 || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest.$ac_objext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 ac_header_compiler=yes
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_header_compiler=no
9421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9423 echo "${ECHO_T}$ac_header_compiler" >&6
9425 # Is the header present?
9426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9428 cat >conftest.$ac_ext <<_ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 @%:@include <$ac_header>
9436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9439 grep -v '^ *+' conftest.er1 >conftest.err
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } >/dev/null; then
9444 if test -s conftest.err; then
9445 ac_cpp_err=$ac_c_preproc_warn_flag
9446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9453 if test -z "$ac_cpp_err"; then
9454 ac_header_preproc=yes
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_header_preproc=no
9461 rm -f conftest.err conftest.$ac_ext
9462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9463 echo "${ECHO_T}$ac_header_preproc" >&6
9465 # So? What about this header?
9466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9472 ac_header_preproc=yes
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9489 @%:@@%:@ ------------------------------------------ @%:@@%:@
9490 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
9491 @%:@@%:@ ------------------------------------------ @%:@@%:@
9494 sed "s/^/$as_me: WARNING: /" >&2
9497 echo "$as_me:$LINENO: checking for $ac_header" >&5
9498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 eval "$as_ac_Header=\$ac_header_preproc"
9504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9509 cat >>confdefs.h <<_ACEOF
9510 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9518 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9519 # people who are not cross-compiling but are compiling cross-assemblers.
9520 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9521 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
9522 if test "${host}" = "${target}"; then
9527 cat >>confdefs.h <<\_ACEOF
9528 @%:@define CROSS_COMPILE 1
9532 echo "$as_me:$LINENO: result: $cross_gas" >&5
9533 echo "${ECHO_T}$cross_gas" >&6
9535 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9536 # for constant arguments. Useless!
9537 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9538 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9539 if test "${ac_cv_working_alloca_h+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 cat >conftest.$ac_ext <<_ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9548 @%:@include <alloca.h>
9552 char *p = (char *) alloca (2 * sizeof (int));
9557 rm -f conftest.$ac_objext conftest$ac_exeext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_working_alloca_h=yes
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_cv_working_alloca_h=no
9586 rm -f conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9589 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9590 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9591 if test $ac_cv_working_alloca_h = yes; then
9593 cat >>confdefs.h <<\_ACEOF
9594 @%:@define HAVE_ALLOCA_H 1
9599 echo "$as_me:$LINENO: checking for alloca" >&5
9600 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9601 if test "${ac_cv_func_alloca_works+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9611 # define alloca __builtin_alloca
9614 # include <malloc.h>
9615 # define alloca _alloca
9618 # include <alloca.h>
9623 # ifndef alloca /* predefined by HP cc +Olibcalls */
9634 char *p = (char *) alloca (1);
9639 rm -f conftest.$ac_objext conftest$ac_exeext
9640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9641 (eval $ac_link) 2>conftest.er1
9643 grep -v '^ *+' conftest.er1 >conftest.err
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_c_werror_flag"
9649 || test ! -s conftest.err'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest$ac_exeext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9661 ac_cv_func_alloca_works=yes
9663 echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9666 ac_cv_func_alloca_works=no
9668 rm -f conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
9671 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9672 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9674 if test $ac_cv_func_alloca_works = yes; then
9676 cat >>confdefs.h <<\_ACEOF
9677 @%:@define HAVE_ALLOCA 1
9681 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9682 # that cause trouble. Some versions do not even contain alloca or
9683 # contain a buggy version. If you still want to use their alloca,
9684 # use ar to extract alloca.o from them instead of compiling alloca.c.
9686 ALLOCA=alloca.$ac_objext
9688 cat >>confdefs.h <<\_ACEOF
9689 @%:@define C_ALLOCA 1
9693 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9694 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9695 if test "${ac_cv_os_cray+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 #if defined(CRAY) && ! defined(CRAY2)
9711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9712 $EGREP "webecray" >/dev/null 2>&1; then
9720 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9721 echo "${ECHO_T}$ac_cv_os_cray" >&6
9722 if test $ac_cv_os_cray = yes; then
9723 for ac_func in _getb67 GETB67 getb67; do
9724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9725 echo "$as_me:$LINENO: checking for $ac_func" >&5
9726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9727 if eval "test \"\${$as_ac_var+set}\" = set"; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9738 #define $ac_func innocuous_$ac_func
9740 /* System header to define __stub macros and hopefully few prototypes,
9741 which can conflict with char $ac_func (); below.
9742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9743 <limits.h> exists even on freestanding compilers. */
9746 # include <limits.h>
9748 # include <assert.h>
9753 /* Override any gcc2 internal prototype to avoid an error. */
9758 /* We use char because int might match the return type of a gcc2
9759 builtin and then its argument prototype would still apply. */
9761 /* The GNU C library defines this for functions which it implements
9762 to always fail with ENOSYS. Some functions are actually named
9763 something starting with __ and the normal name is an alias. */
9764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 char (*f) () = $ac_func;
9776 return f != $ac_func;
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>conftest.er1
9785 grep -v '^ *+' conftest.er1 >conftest.err
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_c_werror_flag"
9791 || test ! -s conftest.err'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 eval "$as_ac_var=yes"
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 eval "$as_ac_var=no"
9810 rm -f conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9815 if test `eval echo '${'$as_ac_var'}'` = yes; then
9817 cat >>confdefs.h <<_ACEOF
9818 @%:@define CRAY_STACKSEG_END $ac_func
9827 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9828 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9829 if test "${ac_cv_c_stack_direction+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 if test "$cross_compiling" = yes; then
9833 ac_cv_c_stack_direction=0
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9842 find_stack_direction ()
9844 static char *addr = 0;
9849 return find_stack_direction ();
9852 return (&dummy > addr) ? 1 : -1;
9858 exit (find_stack_direction () < 0);
9861 rm -f conftest$ac_exeext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9863 (eval $ac_link) 2>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_c_stack_direction=1
9874 echo "$as_me: program exited with status $ac_status" >&5
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9879 ac_cv_c_stack_direction=-1
9881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9885 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9887 cat >>confdefs.h <<_ACEOF
9888 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
9894 echo "$as_me:$LINENO: checking for inline" >&5
9895 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9896 if test "${ac_cv_c_inline+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 for ac_kw in inline __inline__ __inline; do
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9909 static $ac_kw foo_t static_foo () {return 0; }
9910 $ac_kw foo_t foo () {return 0; }
9914 rm -f conftest.$ac_objext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9916 (eval $ac_compile) 2>conftest.er1
9918 grep -v '^ *+' conftest.er1 >conftest.err
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -z "$ac_c_werror_flag"
9924 || test ! -s conftest.err'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest.$ac_objext'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_c_inline=$ac_kw; break
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9946 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9947 echo "${ECHO_T}$ac_cv_c_inline" >&6
9950 case $ac_cv_c_inline in
9953 case $ac_cv_c_inline in
9955 *) ac_val=$ac_cv_c_inline;;
9957 cat >>confdefs.h <<_ACEOF
9959 #define inline $ac_val
9966 # VMS doesn't have unlink.
9969 for ac_func in unlink remove
9971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9972 echo "$as_me:$LINENO: checking for $ac_func" >&5
9973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_var+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9985 #define $ac_func innocuous_$ac_func
9987 /* System header to define __stub macros and hopefully few prototypes,
9988 which can conflict with char $ac_func (); below.
9989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9990 <limits.h> exists even on freestanding compilers. */
9993 # include <limits.h>
9995 # include <assert.h>
10000 /* Override any gcc2 internal prototype to avoid an error. */
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10014 char (*f) () = $ac_func;
10023 return f != $ac_func;
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_c_werror_flag"
10038 || test ! -s conftest.err'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 eval "$as_ac_var=yes"
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 eval "$as_ac_var=no"
10057 rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10062 if test `eval echo '${'$as_ac_var'}'` = yes; then
10063 cat >>confdefs.h <<_ACEOF
10064 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10071 # Some systems don't have sbrk().
10073 for ac_func in sbrk
10075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10076 echo "$as_me:$LINENO: checking for $ac_func" >&5
10077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_var+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10089 #define $ac_func innocuous_$ac_func
10091 /* System header to define __stub macros and hopefully few prototypes,
10092 which can conflict with char $ac_func (); below.
10093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094 <limits.h> exists even on freestanding compilers. */
10097 # include <limits.h>
10099 # include <assert.h>
10104 /* Override any gcc2 internal prototype to avoid an error. */
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10112 /* The GNU C library defines this for functions which it implements
10113 to always fail with ENOSYS. Some functions are actually named
10114 something starting with __ and the normal name is an alias. */
10115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10118 char (*f) () = $ac_func;
10127 return f != $ac_func;
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 eval "$as_ac_var=yes"
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 eval "$as_ac_var=no"
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10166 if test `eval echo '${'$as_ac_var'}'` = yes; then
10167 cat >>confdefs.h <<_ACEOF
10168 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10175 # do we need the math library?
10176 case "${need_libm}" in
10180 *-*-beos* | *-*-cygwin* | *-*-pw32*)
10181 # These system don't have libm
10184 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
10185 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
10186 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 ac_check_lib_save_LIBS=$LIBS
10191 cat >conftest.$ac_ext <<_ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10198 /* Override any gcc2 internal prototype to avoid an error. */
10202 /* We use char because int might match the return type of a gcc2
10203 builtin and then its argument prototype would still apply. */
10204 char _mwvalidcheckl ();
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10215 (eval $ac_link) 2>conftest.er1
10217 grep -v '^ *+' conftest.er1 >conftest.err
10219 cat conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -z "$ac_c_werror_flag"
10223 || test ! -s conftest.err'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; } &&
10229 { ac_try='test -s conftest$ac_exeext'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 ac_cv_lib_mw__mwvalidcheckl=yes
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240 ac_cv_lib_mw__mwvalidcheckl=no
10242 rm -f conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LIBS=$ac_check_lib_save_LIBS
10246 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
10247 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
10248 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
10252 echo "$as_me:$LINENO: checking for main in -lm" >&5
10253 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10254 if test "${ac_cv_lib_m_main+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 ac_check_lib_save_LIBS=$LIBS
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_c_werror_flag"
10285 || test ! -s conftest.err'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_cv_lib_m_main=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ac_cv_lib_m_main=no
10304 rm -f conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10306 LIBS=$ac_check_lib_save_LIBS
10308 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10309 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10310 if test $ac_cv_lib_m_main = yes; then
10316 echo "$as_me:$LINENO: checking for main in -lm" >&5
10317 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10318 if test "${ac_cv_lib_m_main+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 ac_check_lib_save_LIBS=$LIBS
10323 cat >conftest.$ac_ext <<_ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10341 (eval $ac_link) 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try='test -s conftest$ac_exeext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 ac_cv_lib_m_main=yes
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 ac_cv_lib_m_main=no
10368 rm -f conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 LIBS=$ac_check_lib_save_LIBS
10372 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10373 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10374 if test $ac_cv_lib_m_main = yes; then
10385 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
10386 # enough, but on some of those systems, the assert macro relies on requoting
10387 # working properly!
10388 echo "$as_me:$LINENO: checking for working assert macro" >&5
10389 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
10390 if test "${gas_cv_assert_ok+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 #include <assert.h>
10405 /* check for requoting problems */
10406 static int a, b, c, d;
10408 assert (!strcmp(s, "foo bar baz quux"));
10409 /* check for newline handling */
10417 rm -f conftest.$ac_objext conftest$ac_exeext
10418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10419 (eval $ac_link) 2>conftest.er1
10421 grep -v '^ *+' conftest.er1 >conftest.err
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
10426 { ac_try='test -z "$ac_c_werror_flag"
10427 || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest$ac_exeext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 gas_cv_assert_ok=yes
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 gas_cv_assert_ok=no
10446 rm -f conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10449 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
10450 echo "${ECHO_T}$gas_cv_assert_ok" >&6
10451 test $gas_cv_assert_ok = yes ||
10452 cat >>confdefs.h <<\_ACEOF
10453 @%:@define BROKEN_ASSERT 1
10458 # On some systems, the system header files may not declare malloc, realloc,
10459 # and free. There are places where gas needs these functions to have been
10460 # declared -- such as when taking their addresses.
10462 #ifdef HAVE_MEMORY_H
10463 #include <memory.h>
10465 #ifdef HAVE_STRING_H
10466 #include <string.h>
10468 #ifdef HAVE_STRINGS_H
10469 #include <strings.h>
10472 #ifdef HAVE_STDLIB_H
10473 #include <stdlib.h>
10475 #ifdef HAVE_UNISTD_H
10476 #include <unistd.h>
10480 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
10481 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
10482 if test "${gas_cv_decl_needed_strstr+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10496 typedef char *(*f)();
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506 (eval $ac_link) 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
10513 { ac_try='test -z "$ac_c_werror_flag"
10514 || test ! -s conftest.err'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; } &&
10520 { ac_try='test -s conftest$ac_exeext'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; }; then
10526 gas_cv_decl_needed_strstr=no
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10531 gas_cv_decl_needed_strstr=yes
10533 rm -f conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10536 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
10537 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
10538 if test $gas_cv_decl_needed_strstr = yes; then
10540 cat >>confdefs.h <<\_ACEOF
10541 @%:@define NEED_DECLARATION_STRSTR 1
10547 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
10548 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
10549 if test "${gas_cv_decl_needed_malloc+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 cat >conftest.$ac_ext <<_ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10563 typedef char *(*f)();
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10573 (eval $ac_link) 2>conftest.er1
10575 grep -v '^ *+' conftest.er1 >conftest.err
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest$ac_exeext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 gas_cv_decl_needed_malloc=no
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 gas_cv_decl_needed_malloc=yes
10600 rm -f conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10603 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
10604 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
10605 if test $gas_cv_decl_needed_malloc = yes; then
10607 cat >>confdefs.h <<\_ACEOF
10608 @%:@define NEED_DECLARATION_MALLOC 1
10614 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
10615 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
10616 if test "${gas_cv_decl_needed_free+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 cat >conftest.$ac_ext <<_ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10630 typedef void (*f)();
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10640 (eval $ac_link) 2>conftest.er1
10642 grep -v '^ *+' conftest.er1 >conftest.err
10644 cat conftest.err >&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -z "$ac_c_werror_flag"
10648 || test ! -s conftest.err'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; } &&
10654 { ac_try='test -s conftest$ac_exeext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 gas_cv_decl_needed_free=no
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10665 gas_cv_decl_needed_free=yes
10667 rm -f conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10670 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10671 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10672 if test $gas_cv_decl_needed_free = yes; then
10674 cat >>confdefs.h <<\_ACEOF
10675 @%:@define NEED_DECLARATION_FREE 1
10681 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10682 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10683 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10697 typedef char *(*f)();
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10707 (eval $ac_link) 2>conftest.er1
10709 grep -v '^ *+' conftest.er1 >conftest.err
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -z "$ac_c_werror_flag"
10715 || test ! -s conftest.err'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; } &&
10721 { ac_try='test -s conftest$ac_exeext'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
10727 gas_cv_decl_needed_sbrk=no
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10732 gas_cv_decl_needed_sbrk=yes
10734 rm -f conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10737 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10738 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10739 if test $gas_cv_decl_needed_sbrk = yes; then
10741 cat >>confdefs.h <<\_ACEOF
10742 @%:@define NEED_DECLARATION_SBRK 1
10748 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10749 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10750 if test "${gas_cv_decl_needed_environ+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try='test -z "$ac_c_werror_flag"
10782 || test ! -s conftest.err'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 gas_cv_decl_needed_environ=no
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 gas_cv_decl_needed_environ=yes
10801 rm -f conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10805 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10806 if test $gas_cv_decl_needed_environ = yes; then
10808 cat >>confdefs.h <<\_ACEOF
10809 @%:@define NEED_DECLARATION_ENVIRON 1
10815 # Does errno.h declare errno, or do we have to add a separate declaration
10818 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10819 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10820 if test "${gas_cv_decl_needed_errno+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10830 #ifdef HAVE_ERRNO_H
10846 rm -f conftest.$ac_objext conftest$ac_exeext
10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>conftest.er1
10850 grep -v '^ *+' conftest.er1 >conftest.err
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } &&
10855 { ac_try='test -z "$ac_c_werror_flag"
10856 || test ! -s conftest.err'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; } &&
10862 { ac_try='test -s conftest$ac_exeext'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; }; then
10868 gas_cv_decl_needed_errno=no
10870 echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10873 gas_cv_decl_needed_errno=yes
10875 rm -f conftest.err conftest.$ac_objext \
10876 conftest$ac_exeext conftest.$ac_ext
10878 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10879 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10880 if test $gas_cv_decl_needed_errno = yes; then
10882 cat >>confdefs.h <<\_ACEOF
10883 @%:@define NEED_DECLARATION_ERRNO 1
10891 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10893 ac_config_commands="$ac_config_commands default"
10896 cat >confcache <<\_ACEOF
10897 # This file is a shell script that caches the results of configure
10898 # tests run on this system so they can be shared between configure
10899 # scripts and configure runs, see configure's option --config-cache.
10900 # It is not useful on other systems. If it contains results you don't
10901 # want to keep, you may remove or edit it.
10903 # config.status only pays attention to the cache file if you give it
10904 # the --recheck option to rerun configure.
10906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10908 # following values.
10912 # The following way of writing the cache mishandles newlines in values,
10913 # but we know of no workaround that is simple, portable, and efficient.
10914 # So, don't put newlines in cache variables' values.
10915 # Ultrix sh set writes to stderr and can't be redirected directly,
10916 # and sets the high bit in the cache file unless we assign to the vars.
10919 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10921 # `set' does not quote correctly, so add quotes (double-quote
10922 # substitution turns \\\\ into \\, and sed turns \\ into \).
10925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10928 # `set' quotes correctly as required by POSIX, so do not add quotes.
10930 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10939 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10941 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10942 if test -w $cache_file; then
10943 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10944 cat confcache >$cache_file
10946 echo "not updating unwritable cache $cache_file"
10951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10952 # Let make expand exec_prefix.
10953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10957 # trailing colons and then remove the whole line if VPATH becomes empty
10958 # (actually we leave an empty line to preserve line numbers).
10959 if test "x$srcdir" = x.; then
10960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10961 s/:*\$(srcdir):*/:/;
10962 s/:*\${srcdir}:*/:/;
10964 s/^\([^=]*=[ ]*\):*/\1/;
10970 DEFS=-DHAVE_CONFIG_H
10974 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
10975 # 1. Remove the extension, and $U if already installed.
10976 ac_i=`echo "$ac_i" |
10977 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10979 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10980 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10982 LIB@&t@OBJS=$ac_libobjs
10984 LTLIBOBJS=$ac_ltlibobjs
10987 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10988 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10989 Usually this means the macro was only invoked conditionally." >&5
10990 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10991 Usually this means the macro was only invoked conditionally." >&2;}
10992 { (exit 1); exit 1; }; }
10994 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10995 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10996 Usually this means the macro was only invoked conditionally." >&5
10997 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10998 Usually this means the macro was only invoked conditionally." >&2;}
10999 { (exit 1); exit 1; }; }
11001 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11002 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11003 Usually this means the macro was only invoked conditionally." >&5
11004 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11005 Usually this means the macro was only invoked conditionally." >&2;}
11006 { (exit 1); exit 1; }; }
11009 : ${CONFIG_STATUS=./config.status}
11010 ac_clean_files_save=$ac_clean_files
11011 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11012 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11013 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11014 cat >$CONFIG_STATUS <<_ACEOF
11016 # Generated by $as_me.
11017 # Run this file to recreate the current configuration.
11018 # Compiler output produced by configure, useful for debugging
11019 # configure, is in config.log if it exists.
11022 ac_cs_recheck=false
11024 SHELL=\${CONFIG_SHELL-$SHELL}
11027 cat >>$CONFIG_STATUS <<\_ACEOF
11028 ## --------------------- ##
11029 ## M4sh Initialization. ##
11030 ## --------------------- ##
11032 # Be Bourne compatible
11033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11036 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11037 # is contrary to our usage. Disable this feature.
11038 alias -g '${1+"$@"}'='"$@"'
11039 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11042 DUALCASE=1; export DUALCASE # for MKS sh
11044 # Support unset when possible.
11045 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11052 # Work around bugs in pre-3.0 UWIN ksh.
11053 $as_unset ENV MAIL MAILPATH
11060 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11061 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11062 LC_TELEPHONE LC_TIME
11064 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11065 eval $as_var=C; export $as_var
11071 # Required to use basename.
11072 if expr a : '\(a\)' >/dev/null 2>&1; then
11078 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11079 as_basename=basename
11085 # Name of the executable.
11086 as_me=`$as_basename "$0" ||
11087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11088 X"$0" : 'X\(//\)$' \| \
11089 X"$0" : 'X\(/\)$' \| \
11090 . : '\(.\)' 2>/dev/null ||
11092 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11093 /^X\/\(\/\/\)$/{ s//\1/; q; }
11094 /^X\/\(\/\).*/{ s//\1/; q; }
11098 # PATH needs CR, and LINENO needs CR and PATH.
11099 # Avoid depending upon Character Ranges.
11100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11103 as_cr_digits='0123456789'
11104 as_cr_alnum=$as_cr_Letters$as_cr_digits
11106 # The user is always right.
11107 if test "${PATH_SEPARATOR+set}" != set; then
11108 echo "#! /bin/sh" >conf$$.sh
11109 echo "exit 0" >>conf$$.sh
11111 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11120 as_lineno_1=$LINENO
11121 as_lineno_2=$LINENO
11122 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11123 test "x$as_lineno_1" != "x$as_lineno_2" &&
11124 test "x$as_lineno_3" = "x$as_lineno_2" || {
11125 # Find who we are. Look in the path if we contain no path at all
11128 *[\\/]* ) as_myself=$0 ;;
11129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11133 test -z "$as_dir" && as_dir=.
11134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11139 # We did not find ourselves, most probably we were run as `sh COMMAND'
11140 # in which case we are not to be found in the path.
11141 if test "x$as_myself" = x; then
11144 if test ! -f "$as_myself"; then
11145 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11146 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11147 { (exit 1); exit 1; }; }
11149 case $CONFIG_SHELL in
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11155 test -z "$as_dir" && as_dir=.
11156 for as_base in sh bash ksh sh5; do
11159 if ("$as_dir/$as_base" -c '
11160 as_lineno_1=$LINENO
11161 as_lineno_2=$LINENO
11162 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11163 test "x$as_lineno_1" != "x$as_lineno_2" &&
11164 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11165 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11166 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11167 CONFIG_SHELL=$as_dir/$as_base
11168 export CONFIG_SHELL
11169 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11178 # uniformly replaced by the line number. The first 'sed' inserts a
11179 # line-number line before each line; the second 'sed' does the real
11180 # work. The second script uses 'N' to pair each line-number line
11181 # with the numbered line, and appends trailing '-' during
11182 # substitution so that $LINENO is not a special case at line end.
11183 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11184 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11185 sed '=' <$as_myself |
11190 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11193 s,^['$as_cr_digits']*\n,,
11194 ' >$as_me.lineno &&
11195 chmod +x $as_me.lineno ||
11196 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11197 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11198 { (exit 1); exit 1; }; }
11200 # Don't try to exec as it changes $[0], causing all sort of problems
11201 # (the dirname of $[0] is not the place where we might find the
11202 # original and so on. Autoconf is especially sensible to this).
11204 # Exit status is that of the last command.
11209 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11210 *c*,-n*) ECHO_N= ECHO_C='
11212 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11213 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11216 if expr a : '\(a\)' >/dev/null 2>&1; then
11222 rm -f conf$$ conf$$.exe conf$$.file
11224 if ln -s conf$$.file conf$$ 2>/dev/null; then
11225 # We could just check for DJGPP; but this test a) works b) is more generic
11226 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11227 if test -f conf$$.exe; then
11228 # Don't use ln at all; we don't have any links
11233 elif ln conf$$.file conf$$ 2>/dev/null; then
11238 rm -f conf$$ conf$$.exe conf$$.file
11240 if mkdir -p . 2>/dev/null; then
11243 test -d ./-p && rmdir ./-p
11247 as_executable_p="test -f"
11249 # Sed expression to map a string onto a valid CPP name.
11250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11252 # Sed expression to map a string onto a valid variable name.
11253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11257 # We need space, tab and new line, in precisely that order.
11267 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11268 # report actual input values of CONFIG_FILES etc. instead of their
11269 # values after options handling. Logging --version etc. is OK.
11273 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
11274 @%:@@%:@ Running $as_me. @%:@@%:@
11279 This file was extended by $as_me, which was
11280 generated by GNU Autoconf 2.59. Invocation command line was
11282 CONFIG_FILES = $CONFIG_FILES
11283 CONFIG_HEADERS = $CONFIG_HEADERS
11284 CONFIG_LINKS = $CONFIG_LINKS
11285 CONFIG_COMMANDS = $CONFIG_COMMANDS
11289 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11293 # Files that config.status was made for.
11294 if test -n "$ac_config_files"; then
11295 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11298 if test -n "$ac_config_headers"; then
11299 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11302 if test -n "$ac_config_links"; then
11303 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11306 if test -n "$ac_config_commands"; then
11307 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11310 cat >>$CONFIG_STATUS <<\_ACEOF
11313 \`$as_me' instantiates files from templates according to the
11314 current configuration.
11316 Usage: $0 [OPTIONS] [FILE]...
11318 -h, --help print this help, then exit
11319 -V, --version print version number, then exit
11320 -q, --quiet do not print progress messages
11321 -d, --debug don't remove temporary files
11322 --recheck update $as_me by reconfiguring in the same conditions
11323 --file=FILE[:TEMPLATE]
11324 instantiate the configuration file FILE
11325 --header=FILE[:TEMPLATE]
11326 instantiate the configuration header FILE
11328 Configuration files:
11331 Configuration headers:
11334 Configuration commands:
11337 Report bugs to <bug-autoconf@gnu.org>."
11340 cat >>$CONFIG_STATUS <<_ACEOF
11343 configured by $0, generated by GNU Autoconf 2.59,
11344 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11346 Copyright (C) 2003 Free Software Foundation, Inc.
11347 This config.status script is free software; the Free Software Foundation
11348 gives unlimited permission to copy, distribute and modify it."
11353 cat >>$CONFIG_STATUS <<\_ACEOF
11354 # If no file are specified by the user, then we need to provide default
11355 # value. By we need to know if files were specified by the user.
11361 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11362 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11370 *) # This is not an option, so the user has probably given explicit
11373 ac_need_defaults=false;;
11377 # Handling of the options.
11379 cat >>$CONFIG_STATUS <<\_ACEOF
11380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11382 --version | --vers* | -V )
11383 echo "$ac_cs_version"; exit 0 ;;
11385 # Conflict between --help and --header
11386 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11387 Try \`$0 --help' for more information." >&5
11388 echo "$as_me: error: ambiguous option: $1
11389 Try \`$0 --help' for more information." >&2;}
11390 { (exit 1); exit 1; }; };;
11391 --help | --hel | -h )
11392 echo "$ac_cs_usage"; exit 0 ;;
11393 --debug | --d* | -d )
11395 --file | --fil | --fi | --f )
11397 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11398 ac_need_defaults=false;;
11399 --header | --heade | --head | --hea )
11401 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11402 ac_need_defaults=false;;
11403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11407 # This is an error.
11408 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11409 Try \`$0 --help' for more information." >&5
11410 echo "$as_me: error: unrecognized option: $1
11411 Try \`$0 --help' for more information." >&2;}
11412 { (exit 1); exit 1; }; } ;;
11414 *) ac_config_targets="$ac_config_targets $1" ;;
11420 ac_configure_extra_args=
11422 if $ac_cs_silent; then
11424 ac_configure_extra_args="$ac_configure_extra_args --silent"
11428 cat >>$CONFIG_STATUS <<_ACEOF
11429 if \$ac_cs_recheck; then
11430 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11431 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11436 cat >>$CONFIG_STATUS <<_ACEOF
11438 # INIT-COMMANDS section.
11441 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11442 target_cpu_type=${target_cpu_type}
11443 cgen_cpu_prefix=${cgen_cpu_prefix}
11444 obj_format=${obj_format}
11451 cat >>$CONFIG_STATUS <<\_ACEOF
11452 for ac_config_target in $ac_config_targets
11454 case "$ac_config_target" in
11455 # Handling of arguments.
11456 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
11457 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
11458 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11459 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11460 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11461 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11462 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11463 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11464 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11465 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11466 { (exit 1); exit 1; }; };;
11470 # If the user did not use the arguments to specify the items to instantiate,
11471 # then the envvar interface is used. Set only those that are not.
11472 # We use the long form for the default assignment because of an extremely
11473 # bizarre bug on SunOS 4.1.3.
11474 if $ac_need_defaults; then
11475 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11476 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11477 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11480 # Have a temporary directory for convenience. Make it in the build tree
11481 # simply because there is no reason to put it here, and in addition,
11482 # creating and moving files from /tmp can sometimes cause problems.
11483 # Create a temporary directory, and hook for its removal unless debugging.
11486 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11487 trap '{ (exit 1); exit 1; }' 1 2 13 15
11490 # Create a (secure) tmp directory for tmp files.
11493 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11494 test -n "$tmp" && test -d "$tmp"
11497 tmp=./confstat$$-$RANDOM
11498 (umask 077 && mkdir $tmp)
11501 echo "$me: cannot create a temporary directory in ." >&2
11502 { (exit 1); exit 1; }
11507 cat >>$CONFIG_STATUS <<_ACEOF
11510 # CONFIG_FILES section.
11513 # No need to generate the scripts if there are no CONFIG_FILES.
11514 # This happens for instance when ./config.status config.h
11515 if test -n "\$CONFIG_FILES"; then
11516 # Protect against being on the right side of a sed subst in config.status.
11517 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11518 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11519 s,@SHELL@,$SHELL,;t t
11520 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11521 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11522 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11523 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11524 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11525 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11526 s,@exec_prefix@,$exec_prefix,;t t
11527 s,@prefix@,$prefix,;t t
11528 s,@program_transform_name@,$program_transform_name,;t t
11529 s,@bindir@,$bindir,;t t
11530 s,@sbindir@,$sbindir,;t t
11531 s,@libexecdir@,$libexecdir,;t t
11532 s,@datadir@,$datadir,;t t
11533 s,@sysconfdir@,$sysconfdir,;t t
11534 s,@sharedstatedir@,$sharedstatedir,;t t
11535 s,@localstatedir@,$localstatedir,;t t
11536 s,@libdir@,$libdir,;t t
11537 s,@includedir@,$includedir,;t t
11538 s,@oldincludedir@,$oldincludedir,;t t
11539 s,@infodir@,$infodir,;t t
11540 s,@mandir@,$mandir,;t t
11541 s,@build_alias@,$build_alias,;t t
11542 s,@host_alias@,$host_alias,;t t
11543 s,@target_alias@,$target_alias,;t t
11544 s,@DEFS@,$DEFS,;t t
11545 s,@ECHO_C@,$ECHO_C,;t t
11546 s,@ECHO_N@,$ECHO_N,;t t
11547 s,@ECHO_T@,$ECHO_T,;t t
11548 s,@LIBS@,$LIBS,;t t
11549 s,@build@,$build,;t t
11550 s,@build_cpu@,$build_cpu,;t t
11551 s,@build_vendor@,$build_vendor,;t t
11552 s,@build_os@,$build_os,;t t
11553 s,@host@,$host,;t t
11554 s,@host_cpu@,$host_cpu,;t t
11555 s,@host_vendor@,$host_vendor,;t t
11556 s,@host_os@,$host_os,;t t
11557 s,@target@,$target,;t t
11558 s,@target_cpu@,$target_cpu,;t t
11559 s,@target_vendor@,$target_vendor,;t t
11560 s,@target_os@,$target_os,;t t
11562 s,@CFLAGS@,$CFLAGS,;t t
11563 s,@LDFLAGS@,$LDFLAGS,;t t
11564 s,@CPPFLAGS@,$CPPFLAGS,;t t
11565 s,@ac_ct_CC@,$ac_ct_CC,;t t
11566 s,@EXEEXT@,$EXEEXT,;t t
11567 s,@OBJEXT@,$OBJEXT,;t t
11568 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11569 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11570 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11571 s,@CYGPATH_W@,$CYGPATH_W,;t t
11572 s,@PACKAGE@,$PACKAGE,;t t
11573 s,@VERSION@,$VERSION,;t t
11574 s,@ACLOCAL@,$ACLOCAL,;t t
11575 s,@AUTOCONF@,$AUTOCONF,;t t
11576 s,@AUTOMAKE@,$AUTOMAKE,;t t
11577 s,@AUTOHEADER@,$AUTOHEADER,;t t
11578 s,@MAKEINFO@,$MAKEINFO,;t t
11579 s,@install_sh@,$install_sh,;t t
11580 s,@STRIP@,$STRIP,;t t
11581 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11582 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11583 s,@mkdir_p@,$mkdir_p,;t t
11585 s,@SET_MAKE@,$SET_MAKE,;t t
11586 s,@am__leading_dot@,$am__leading_dot,;t t
11587 s,@AMTAR@,$AMTAR,;t t
11588 s,@am__tar@,$am__tar,;t t
11589 s,@am__untar@,$am__untar,;t t
11590 s,@DEPDIR@,$DEPDIR,;t t
11591 s,@am__include@,$am__include,;t t
11592 s,@am__quote@,$am__quote,;t t
11593 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11594 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11595 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11596 s,@CCDEPMODE@,$CCDEPMODE,;t t
11597 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11598 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11599 s,@LN_S@,$LN_S,;t t
11600 s,@RANLIB@,$RANLIB,;t t
11601 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11602 s,@LIBTOOL@,$LIBTOOL,;t t
11603 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11604 s,@GDBINIT@,$GDBINIT,;t t
11605 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
11606 s,@extra_objects@,$extra_objects,;t t
11607 s,@target_cpu_type@,$target_cpu_type,;t t
11608 s,@obj_format@,$obj_format,;t t
11609 s,@te_file@,$te_file,;t t
11610 s,@install_tooldir@,$install_tooldir,;t t
11611 s,@atof@,$atof,;t t
11612 s,@BFDLIB@,$BFDLIB,;t t
11613 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
11614 s,@BFDVER_H@,$BFDVER_H,;t t
11615 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
11616 s,@YACC@,$YACC,;t t
11618 s,@LEXLIB@,$LEXLIB,;t t
11619 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11621 s,@EGREP@,$EGREP,;t t
11622 s,@ALLOCA@,$ALLOCA,;t t
11623 s,@USE_NLS@,$USE_NLS,;t t
11624 s,@MSGFMT@,$MSGFMT,;t t
11625 s,@GMSGFMT@,$GMSGFMT,;t t
11626 s,@XGETTEXT@,$XGETTEXT,;t t
11627 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11628 s,@CATALOGS@,$CATALOGS,;t t
11629 s,@CATOBJEXT@,$CATOBJEXT,;t t
11630 s,@DATADIRNAME@,$DATADIRNAME,;t t
11631 s,@GMOFILES@,$GMOFILES,;t t
11632 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11633 s,@INTLDEPS@,$INTLDEPS,;t t
11634 s,@INTLLIBS@,$INTLLIBS,;t t
11635 s,@INTLOBJS@,$INTLOBJS,;t t
11636 s,@POFILES@,$POFILES,;t t
11637 s,@POSUB@,$POSUB,;t t
11638 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11639 s,@GT_NO@,$GT_NO,;t t
11640 s,@GT_YES@,$GT_YES,;t t
11641 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11643 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11644 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11645 s,@MAINT@,$MAINT,;t t
11646 s,@LIBM@,$LIBM,;t t
11647 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
11648 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11653 cat >>$CONFIG_STATUS <<\_ACEOF
11654 # Split the substitutions into bite-sized pieces for seds with
11655 # small command number limits, like on Digital OSF/1 and HP-UX.
11656 ac_max_sed_lines=48
11657 ac_sed_frag=1 # Number of current file.
11658 ac_beg=1 # First line for current file.
11659 ac_end=$ac_max_sed_lines # Line after last line for current file.
11662 while $ac_more_lines; do
11663 if test $ac_beg -gt 1; then
11664 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11666 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11668 if test ! -s $tmp/subs.frag; then
11669 ac_more_lines=false
11671 # The purpose of the label and of the branching condition is to
11672 # speed up the sed processing (if there are no `@' at all, there
11673 # is no need to browse any of the substitutions).
11674 # These are the two extra sed commands mentioned above.
11676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11677 if test -z "$ac_sed_cmds"; then
11678 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11680 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11682 ac_sed_frag=`expr $ac_sed_frag + 1`
11684 ac_end=`expr $ac_end + $ac_max_sed_lines`
11687 if test -z "$ac_sed_cmds"; then
11690 fi # test -n "$CONFIG_FILES"
11693 cat >>$CONFIG_STATUS <<\_ACEOF
11694 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11695 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11697 - | *:- | *:-:* ) # input from stdin
11699 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11701 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11702 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11703 * ) ac_file_in=$ac_file.in ;;
11706 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11707 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11709 X"$ac_file" : 'X\(//\)[^/]' \| \
11710 X"$ac_file" : 'X\(//\)$' \| \
11711 X"$ac_file" : 'X\(/\)' \| \
11712 . : '\(.\)' 2>/dev/null ||
11714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11716 /^X\(\/\/\)$/{ s//\1/; q; }
11717 /^X\(\/\).*/{ s//\1/; q; }
11719 { if $as_mkdir_p; then
11724 while test ! -d "$as_dir"; do
11725 as_dirs="$as_dir $as_dirs"
11726 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11728 X"$as_dir" : 'X\(//\)[^/]' \| \
11729 X"$as_dir" : 'X\(//\)$' \| \
11730 X"$as_dir" : 'X\(/\)' \| \
11731 . : '\(.\)' 2>/dev/null ||
11733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11735 /^X\(\/\/\)$/{ s//\1/; q; }
11736 /^X\(\/\).*/{ s//\1/; q; }
11739 test ! -n "$as_dirs" || mkdir $as_dirs
11740 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11742 { (exit 1); exit 1; }; }; }
11746 if test "$ac_dir" != .; then
11747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11748 # A "../" for each directory in $ac_dir_suffix.
11749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11751 ac_dir_suffix= ac_top_builddir=
11755 .) # No --srcdir option. We are building in place.
11757 if test -z "$ac_top_builddir"; then
11760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11762 [\\/]* | ?:[\\/]* ) # Absolute path.
11763 ac_srcdir=$srcdir$ac_dir_suffix;
11764 ac_top_srcdir=$srcdir ;;
11765 *) # Relative path.
11766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11770 # Do not use `cd foo && pwd` to compute absolute paths, because
11771 # the directories may not exist.
11773 .) ac_abs_builddir="$ac_dir";;
11776 .) ac_abs_builddir=`pwd`;;
11777 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11778 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11781 case $ac_abs_builddir in
11782 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11784 case ${ac_top_builddir}. in
11785 .) ac_abs_top_builddir=$ac_abs_builddir;;
11786 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11787 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11790 case $ac_abs_builddir in
11791 .) ac_abs_srcdir=$ac_srcdir;;
11794 .) ac_abs_srcdir=$ac_abs_builddir;;
11795 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11796 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11799 case $ac_abs_builddir in
11800 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11802 case $ac_top_srcdir in
11803 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11804 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11805 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11811 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11812 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11815 if test x"$ac_file" != x-; then
11816 { echo "$as_me:$LINENO: creating $ac_file" >&5
11817 echo "$as_me: creating $ac_file" >&6;}
11820 # Let's still pretend it is `configure' which instantiates (i.e., don't
11821 # use $as_me), people would be surprised to read:
11822 # /* config.h. Generated by config.status. */
11823 if test x"$ac_file" = x-; then
11826 configure_input="$ac_file. "
11828 configure_input=$configure_input"Generated from `echo $ac_file_in |
11829 sed 's,.*/,,'` by configure."
11831 # First look for the input files in the build tree, otherwise in the
11833 ac_file_inputs=`IFS=:
11834 for f in $ac_file_in; do
11836 -) echo $tmp/stdin ;;
11838 # Absolute (can't be DOS-style, as IFS=:)
11839 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11840 echo "$as_me: error: cannot find input file: $f" >&2;}
11841 { (exit 1); exit 1; }; }
11844 if test -f "$f"; then
11847 elif test -f "$srcdir/$f"; then
11852 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11853 echo "$as_me: error: cannot find input file: $f" >&2;}
11854 { (exit 1); exit 1; }; }
11857 done` || { (exit 1); exit 1; }
11859 cat >>$CONFIG_STATUS <<_ACEOF
11863 cat >>$CONFIG_STATUS <<\_ACEOF
11865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11866 s,@configure_input@,$configure_input,;t t
11867 s,@srcdir@,$ac_srcdir,;t t
11868 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11869 s,@top_srcdir@,$ac_top_srcdir,;t t
11870 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11871 s,@builddir@,$ac_builddir,;t t
11872 s,@abs_builddir@,$ac_abs_builddir,;t t
11873 s,@top_builddir@,$ac_top_builddir,;t t
11874 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11875 s,@INSTALL@,$ac_INSTALL,;t t
11876 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11878 if test x"$ac_file" != x-; then
11879 mv $tmp/out $ac_file
11887 cat >>$CONFIG_STATUS <<\_ACEOF
11890 # CONFIG_HEADER section.
11893 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11894 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11896 # ac_d sets the value in "#define NAME VALUE" lines.
11897 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11898 ac_dB='[ ].*$,\1#\2'
11901 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11902 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11903 ac_uB='$,\1#\2define\3'
11907 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11910 - | *:- | *:-:* ) # input from stdin
11912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11916 * ) ac_file_in=$ac_file.in ;;
11919 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11920 echo "$as_me: creating $ac_file" >&6;}
11922 # First look for the input files in the build tree, otherwise in the
11924 ac_file_inputs=`IFS=:
11925 for f in $ac_file_in; do
11927 -) echo $tmp/stdin ;;
11929 # Absolute (can't be DOS-style, as IFS=:)
11930 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11931 echo "$as_me: error: cannot find input file: $f" >&2;}
11932 { (exit 1); exit 1; }; }
11933 # Do quote $f, to prevent DOS paths from being IFS'd.
11936 if test -f "$f"; then
11939 elif test -f "$srcdir/$f"; then
11944 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11945 echo "$as_me: error: cannot find input file: $f" >&2;}
11946 { (exit 1); exit 1; }; }
11949 done` || { (exit 1); exit 1; }
11950 # Remove the trailing spaces.
11951 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11955 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11956 # `conftest.undefs', that substitutes the proper values into
11957 # config.h.in to produce config.h. The first handles `#define'
11958 # templates, and the second `#undef' templates.
11959 # And first: Protect against being on the right side of a sed subst in
11960 # config.status. Protect against being in an unquoted here document
11961 # in config.status.
11962 rm -f conftest.defines conftest.undefs
11963 # Using a here document instead of a string reduces the quoting nightmare.
11964 # Putting comments in sed scripts is not portable.
11966 # `end' is used to avoid that the second main sed command (meant for
11967 # 0-ary CPP macros) applies to n-ary macro definitions.
11968 # See the Autoconf documentation for `clear'.
11969 cat >confdef2sed.sed <<\_ACEOF
11974 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11976 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11979 # If some macros were called several times there might be several times
11980 # the same #defines, which is useless. Nevertheless, we may not want to
11981 # sort them, since we want the *last* AC-DEFINE to be honored.
11982 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11983 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11984 rm -f confdef2sed.sed
11986 # This sed command replaces #undef with comments. This is necessary, for
11987 # example, in the case of _POSIX_SOURCE, which is predefined and required
11988 # on some systems where configure will not decide to define it.
11989 cat >>conftest.undefs <<\_ACEOF
11990 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11993 # Break up conftest.defines because some shells have a limit on the size
11994 # of here documents, and old seds have small limits too (100 cmds).
11995 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11996 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11997 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11998 echo ' :' >>$CONFIG_STATUS
11999 rm -f conftest.tail
12000 while grep . conftest.defines >/dev/null
12002 # Write a limited-size here document to $tmp/defines.sed.
12003 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12004 # Speed up: don't consider the non `#define' lines.
12005 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12006 # Work around the forget-to-reset-the-flag bug.
12007 echo 't clr' >>$CONFIG_STATUS
12008 echo ': clr' >>$CONFIG_STATUS
12009 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12011 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12013 mv $tmp/out $tmp/in
12015 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12016 rm -f conftest.defines
12017 mv conftest.tail conftest.defines
12019 rm -f conftest.defines
12020 echo ' fi # grep' >>$CONFIG_STATUS
12021 echo >>$CONFIG_STATUS
12023 # Break up conftest.undefs because some shells have a limit on the size
12024 # of here documents, and old seds have small limits too (100 cmds).
12025 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12026 rm -f conftest.tail
12027 while grep . conftest.undefs >/dev/null
12029 # Write a limited-size here document to $tmp/undefs.sed.
12030 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12031 # Speed up: don't consider the non `#undef'
12032 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12033 # Work around the forget-to-reset-the-flag bug.
12034 echo 't clr' >>$CONFIG_STATUS
12035 echo ': clr' >>$CONFIG_STATUS
12036 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12038 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12040 mv $tmp/out $tmp/in
12042 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12043 rm -f conftest.undefs
12044 mv conftest.tail conftest.undefs
12046 rm -f conftest.undefs
12048 cat >>$CONFIG_STATUS <<\_ACEOF
12049 # Let's still pretend it is `configure' which instantiates (i.e., don't
12050 # use $as_me), people would be surprised to read:
12051 # /* config.h. Generated by config.status. */
12052 if test x"$ac_file" = x-; then
12053 echo "/* Generated by configure. */" >$tmp/config.h
12055 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12057 cat $tmp/in >>$tmp/config.h
12059 if test x"$ac_file" != x-; then
12060 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12061 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12062 echo "$as_me: $ac_file is unchanged" >&6;}
12064 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12066 X"$ac_file" : 'X\(//\)[^/]' \| \
12067 X"$ac_file" : 'X\(//\)$' \| \
12068 X"$ac_file" : 'X\(/\)' \| \
12069 . : '\(.\)' 2>/dev/null ||
12071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12073 /^X\(\/\/\)$/{ s//\1/; q; }
12074 /^X\(\/\).*/{ s//\1/; q; }
12076 { if $as_mkdir_p; then
12081 while test ! -d "$as_dir"; do
12082 as_dirs="$as_dir $as_dirs"
12083 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12085 X"$as_dir" : 'X\(//\)[^/]' \| \
12086 X"$as_dir" : 'X\(//\)$' \| \
12087 X"$as_dir" : 'X\(/\)' \| \
12088 . : '\(.\)' 2>/dev/null ||
12090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12092 /^X\(\/\/\)$/{ s//\1/; q; }
12093 /^X\(\/\).*/{ s//\1/; q; }
12096 test ! -n "$as_dirs" || mkdir $as_dirs
12097 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12098 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12099 { (exit 1); exit 1; }; }; }
12102 mv $tmp/config.h $ac_file
12106 rm -f $tmp/config.h
12108 # Compute $ac_file's index in $config_headers.
12110 for _am_header in $config_headers :; do
12111 case $_am_header in
12112 $ac_file | $ac_file:* )
12115 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12118 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12119 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12120 X$ac_file : 'X\(//\)[^/]' \| \
12121 X$ac_file : 'X\(//\)$' \| \
12122 X$ac_file : 'X\(/\)' \| \
12123 . : '\(.\)' 2>/dev/null ||
12125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12127 /^X\(\/\/\)$/{ s//\1/; q; }
12128 /^X\(\/\).*/{ s//\1/; q; }
12129 s/.*/./; q'`/stamp-h$_am_stamp_count
12132 cat >>$CONFIG_STATUS <<\_ACEOF
12135 # CONFIG_COMMANDS section.
12137 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12138 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12139 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12140 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12141 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12142 X"$ac_dest" : 'X\(//\)[^/]' \| \
12143 X"$ac_dest" : 'X\(//\)$' \| \
12144 X"$ac_dest" : 'X\(/\)' \| \
12145 . : '\(.\)' 2>/dev/null ||
12147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12149 /^X\(\/\/\)$/{ s//\1/; q; }
12150 /^X\(\/\).*/{ s//\1/; q; }
12152 { if $as_mkdir_p; then
12157 while test ! -d "$as_dir"; do
12158 as_dirs="$as_dir $as_dirs"
12159 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12161 X"$as_dir" : 'X\(//\)[^/]' \| \
12162 X"$as_dir" : 'X\(//\)$' \| \
12163 X"$as_dir" : 'X\(/\)' \| \
12164 . : '\(.\)' 2>/dev/null ||
12166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12168 /^X\(\/\/\)$/{ s//\1/; q; }
12169 /^X\(\/\).*/{ s//\1/; q; }
12172 test ! -n "$as_dirs" || mkdir $as_dirs
12173 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12174 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12175 { (exit 1); exit 1; }; }; }
12179 if test "$ac_dir" != .; then
12180 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12181 # A "../" for each directory in $ac_dir_suffix.
12182 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12184 ac_dir_suffix= ac_top_builddir=
12188 .) # No --srcdir option. We are building in place.
12190 if test -z "$ac_top_builddir"; then
12193 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12195 [\\/]* | ?:[\\/]* ) # Absolute path.
12196 ac_srcdir=$srcdir$ac_dir_suffix;
12197 ac_top_srcdir=$srcdir ;;
12198 *) # Relative path.
12199 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12200 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12203 # Do not use `cd foo && pwd` to compute absolute paths, because
12204 # the directories may not exist.
12206 .) ac_abs_builddir="$ac_dir";;
12209 .) ac_abs_builddir=`pwd`;;
12210 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12211 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12214 case $ac_abs_builddir in
12215 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12217 case ${ac_top_builddir}. in
12218 .) ac_abs_top_builddir=$ac_abs_builddir;;
12219 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12220 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12223 case $ac_abs_builddir in
12224 .) ac_abs_srcdir=$ac_srcdir;;
12227 .) ac_abs_srcdir=$ac_abs_builddir;;
12228 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12229 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12232 case $ac_abs_builddir in
12233 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12235 case $ac_top_srcdir in
12236 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12237 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12238 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12243 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12244 echo "$as_me: executing $ac_dest commands" >&6;}
12246 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12247 # Strip MF so we end up with the name of the file.
12248 mf=`echo "$mf" | sed -e 's/:.*$//'`
12249 # Check whether this is an Automake generated Makefile or not.
12250 # We used to match only the files named `Makefile.in', but
12251 # some people rename them; so instead we look at the file content.
12252 # Grep'ing the first line is not enough: some people post-process
12253 # each Makefile.in and add a new line on top of each file to say so.
12254 # So let's grep whole file.
12255 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12256 dirpart=`(dirname "$mf") 2>/dev/null ||
12257 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12258 X"$mf" : 'X\(//\)[^/]' \| \
12259 X"$mf" : 'X\(//\)$' \| \
12260 X"$mf" : 'X\(/\)' \| \
12261 . : '\(.\)' 2>/dev/null ||
12263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12265 /^X\(\/\/\)$/{ s//\1/; q; }
12266 /^X\(\/\).*/{ s//\1/; q; }
12271 # Extract the definition of DEPDIR, am__include, and am__quote
12272 # from the Makefile without running `make'.
12273 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12274 test -z "$DEPDIR" && continue
12275 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12276 test -z "am__include" && continue
12277 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12278 # When using ansi2knr, U may be empty or an underscore; expand it
12279 U=`sed -n 's/^U = //p' < "$mf"`
12280 # Find all dependency output files, they are included files with
12281 # $(DEPDIR) in their names. We invoke sed twice because it is the
12282 # simplest approach to changing $(DEPDIR) to its actual value in the
12284 for file in `sed -n "
12285 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12286 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12287 # Make sure the directory exists.
12288 test -f "$dirpart/$file" && continue
12289 fdir=`(dirname "$file") 2>/dev/null ||
12290 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12291 X"$file" : 'X\(//\)[^/]' \| \
12292 X"$file" : 'X\(//\)$' \| \
12293 X"$file" : 'X\(/\)' \| \
12294 . : '\(.\)' 2>/dev/null ||
12296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12298 /^X\(\/\/\)$/{ s//\1/; q; }
12299 /^X\(\/\).*/{ s//\1/; q; }
12301 { if $as_mkdir_p; then
12302 mkdir -p $dirpart/$fdir
12304 as_dir=$dirpart/$fdir
12306 while test ! -d "$as_dir"; do
12307 as_dirs="$as_dir $as_dirs"
12308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12310 X"$as_dir" : 'X\(//\)[^/]' \| \
12311 X"$as_dir" : 'X\(//\)$' \| \
12312 X"$as_dir" : 'X\(/\)' \| \
12313 . : '\(.\)' 2>/dev/null ||
12315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12317 /^X\(\/\/\)$/{ s//\1/; q; }
12318 /^X\(\/\).*/{ s//\1/; q; }
12321 test ! -n "$as_dirs" || mkdir $as_dirs
12322 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12323 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12324 { (exit 1); exit 1; }; }; }
12326 # echo "creating $dirpart/$file"
12327 echo '# dummy' > "$dirpart/$file"
12331 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
12332 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
12333 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
12334 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
12335 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
12336 if test "x$cgen_cpu_prefix" != x ; then
12337 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
12340 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12345 cat >>$CONFIG_STATUS <<\_ACEOF
12347 { (exit 0); exit 0; }
12349 chmod +x $CONFIG_STATUS
12350 ac_clean_files=$ac_clean_files_save
12353 # configure is writing to config.log, and then calls config.status.
12354 # config.status does its own redirection, appending to config.log.
12355 # Unfortunately, on DOS this fails, as config.log is still kept open
12356 # by configure, so config.status won't be able to write to it; its
12357 # output is simply discarded. So we exec the FD to /dev/null,
12358 # effectively closing config.log, so it can be properly (re)opened and
12359 # appended to by config.status. When coming back to configure, we
12360 # need to make the FD available again.
12361 if test "$no_create" != yes; then
12363 ac_config_status_args=
12364 test "$silent" = yes &&
12365 ac_config_status_args="$ac_config_status_args --quiet"
12367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12370 # would make configure fail if this is the last instruction.
12371 $ac_cs_success || { (exit 1); exit 1; }