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="elf2flt.c"
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 CPP EGREP bfd_include_dir binutils_include_dir binutils_ldscript_dir got_check LIBOBJS 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 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
841 if test -n "$ac_init_help"; then
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --disable-got-check - disable check for GOT (needed on H8)
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
853 --with-libbfd=<file> path to libbfd.a library to use
854 --with-libiberty=<file> path to libiberty.a library to use
855 --with-bfd-include-dir=<dir> include path for correct bfd.h
856 --with-binutils-include-dir=<dir> include path for binutils headers
857 --with-binutils-ldscript-dir=<dir> path to install elf2flt.ld
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
874 if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
881 if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 ac_dir_suffix= ac_top_builddir=
890 .) # No --srcdir option. We are building in place.
892 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 # Do not use `cd foo && pwd` to compute absolute paths, because
906 # the directories may not exist.
908 .) ac_abs_builddir="$ac_dir";;
911 .) ac_abs_builddir=`pwd`;;
912 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
913 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 case $ac_abs_builddir in
917 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 case ${ac_top_builddir}. in
920 .) ac_abs_top_builddir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 case $ac_abs_builddir in
926 .) ac_abs_srcdir=$ac_srcdir;;
929 .) ac_abs_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
931 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 case $ac_abs_builddir in
935 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 case $ac_top_srcdir in
938 .) ac_abs_top_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 # Check for guested configure; otherwise get Cygnus style configure.
946 if test -f $ac_srcdir/configure.gnu; then
948 $SHELL $ac_srcdir/configure.gnu --help=recursive
949 elif test -f $ac_srcdir/configure; then
951 $SHELL $ac_srcdir/configure --help=recursive
952 elif test -f $ac_srcdir/configure.ac ||
953 test -f $ac_srcdir/configure.in; then
957 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963 test -n "$ac_init_help" && exit 0
964 if $ac_init_version; then
967 Copyright (C) 2003 Free Software Foundation, Inc.
968 This configure script is free software; the Free Software Foundation
969 gives unlimited permission to copy, distribute and modify it.
975 This file contains any messages produced by compilers while
976 running configure, to aid debugging if configure makes a mistake.
978 It was created by $as_me, which was
979 generated by GNU Autoconf 2.59. Invocation command line was
990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
997 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
999 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1000 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1002 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1003 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1004 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1005 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 test -z "$as_dir" && as_dir=.
1014 echo "PATH: $as_dir"
1029 # Keep a trace of the command line.
1030 # Strip out --no-create and --no-recursion so they do not pile up.
1031 # Strip out --silent because we don't want to record it for future runs.
1032 # Also quote any args containing shell meta-characters.
1033 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_must_keep_next=false
1044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1048 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1054 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1055 if test $ac_must_keep_next = true; then
1056 ac_must_keep_next=false # Got value, back to normal.
1059 *=* | --config-cache | -C | -disable-* | --disable-* \
1060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1062 | -with-* | --with-* | -without-* | --without-* | --x)
1063 case "$ac_configure_args0 " in
1064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067 -* ) ac_must_keep_next=true ;;
1070 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1071 # Get rid of the leading space.
1077 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1078 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1080 # When interrupted or exit'd, cleanup temporary files, and complete
1081 # config.log. We remove comments because anyway the quotes in there
1082 # would cause problems or look ugly.
1083 # WARNING: Be sure not to use single quotes in there, as some shells,
1084 # such as our DU 5.0 friend, will then `close' the trap.
1085 trap 'exit_status=$?
1086 # Save into config.log some information that might help in debugging.
1091 ## ---------------- ##
1092 ## Cache variables. ##
1093 ## ---------------- ##
1096 # The following way of writing the cache mishandles newlines in values,
1099 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 ## ----------------- ##
1115 ## Output variables. ##
1116 ## ----------------- ##
1119 for ac_var in $ac_subst_vars
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1126 if test -n "$ac_subst_files"; then
1133 for ac_var in $ac_subst_files
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1141 if test -s confdefs.h; then
1148 sed "/^$/d" confdefs.h | sort
1151 test "$ac_signal" != 0 &&
1152 echo "$as_me: caught signal $ac_signal"
1153 echo "$as_me: exit $exit_status"
1155 rm -f core *.core &&
1156 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159 for ac_signal in 1 2 13 15; do
1160 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1165 rm -rf conftest* confdefs.h
1166 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 # Predefined preprocessor variables.
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 # Let the site file select an alternate cache file if it wants to.
1197 # Prefer explicitly selected file to automatically selected ones.
1198 if test -z "$CONFIG_SITE"; then
1199 if test "x$prefix" != xNONE; then
1200 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1202 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205 for ac_site_file in $CONFIG_SITE; do
1206 if test -r "$ac_site_file"; then
1207 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1208 echo "$as_me: loading site script $ac_site_file" >&6;}
1209 sed 's/^/| /' "$ac_site_file" >&5
1214 if test -r "$cache_file"; then
1215 # Some versions of bash will fail to source /dev/null (special
1216 # files actually), so we avoid doing that.
1217 if test -f "$cache_file"; then
1218 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1219 echo "$as_me: loading cache $cache_file" >&6;}
1221 [\\/]* | ?:[\\/]* ) . $cache_file;;
1222 *) . ./$cache_file;;
1226 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227 echo "$as_me: creating cache $cache_file" >&6;}
1231 # Check that the precious variables saved in the cache have kept the same
1233 ac_cache_corrupted=false
1234 for ac_var in `(set) 2>&1 |
1235 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1236 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1237 eval ac_new_set=\$ac_env_${ac_var}_set
1238 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1239 eval ac_new_val="\$ac_env_${ac_var}_value"
1240 case $ac_old_set,$ac_new_set in
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1243 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1251 if test "x$ac_old_val" != "x$ac_new_val"; then
1252 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1255 echo "$as_me: former value: $ac_old_val" >&2;}
1256 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1257 echo "$as_me: current value: $ac_new_val" >&2;}
1258 ac_cache_corrupted=:
1261 # Pass precious variables to config.status.
1262 if test "$ac_new_set" = set; then
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 *) ac_arg=$ac_var=$ac_new_val ;;
1268 case " $ac_configure_args " in
1269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1270 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 if $ac_cache_corrupted; then
1275 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279 { (exit 1); exit 1; }; }
1283 ac_cpp='$CPP $CPPFLAGS'
1284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308 # Check whether --with-libbfd or --without-libbfd was given.
1309 if test "${with_libbfd+set}" = set; then
1310 withval="$with_libbfd"
1318 # Check whether --with-libiberty or --without-libiberty was given.
1319 if test "${with_libiberty+set}" = set; then
1320 withval="$with_libiberty"
1321 ac_libiberty=$withval
1328 # Check whether --with-bfd-include-dir or --without-bfd-include-dir was given.
1329 if test "${with_bfd_include_dir+set}" = set; then
1330 withval="$with_bfd_include_dir"
1331 ac_bfd_include_dir=$withval
1333 ac_bfd_include_dir=NONE
1338 # Check whether --with-binutils-include-dir or --without-binutils-include-dir was given.
1339 if test "${with_binutils_include_dir+set}" = set; then
1340 withval="$with_binutils_include_dir"
1341 ac_binutils_include_dir=$withval
1343 ac_binutils_include_dir=NONE
1348 # Check whether --with-binutils-ldscript-dir or --without-binutils-ldscript-dir was given.
1349 if test "${with_binutils_ldscript_dir+set}" = set; then
1350 withval="$with_binutils_ldscript_dir"
1351 ac_binutils_ldscript_dir=$withval
1353 ac_binutils_ldscript_dir=NONE
1357 # Check whether --enable-got-check or --disable-got-check was given.
1358 if test "${enable_got_check+set}" = set; then
1359 enableval="$enable_got_check"
1360 got_check=$enableval
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh; then
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool; then
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404 ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408 { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 echo "$as_me:$LINENO: checking host system type" >&5
1424 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1425 if test "${ac_cv_host+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 ac_cv_host_alias=$host_alias
1429 test -z "$ac_cv_host_alias" &&
1430 ac_cv_host_alias=$ac_cv_build_alias
1431 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1432 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1433 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1434 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1438 echo "${ECHO_T}$ac_cv_host" >&6
1440 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1441 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1442 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445 echo "$as_me:$LINENO: checking target system type" >&5
1446 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1447 if test "${ac_cv_target+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 ac_cv_target_alias=$target_alias
1451 test "x$ac_cv_target_alias" = "x" &&
1452 ac_cv_target_alias=$ac_cv_host_alias
1453 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1456 { (exit 1); exit 1; }; }
1459 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1460 echo "${ECHO_T}$ac_cv_target" >&6
1461 target=$ac_cv_target
1462 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1463 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1464 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467 # The aliases save the names the user supplied, while $host etc.
1468 # will get canonicalized.
1469 test -n "$target_alias" &&
1470 test "$program_prefix$program_suffix$program_transform_name" = \
1472 program_prefix=${target_alias}-
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1481 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1516 if test -z "$ac_cv_prog_CC"; then
1518 # Extract the first word of "gcc", so it can be a program name with args.
1519 set dummy gcc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="gcc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1558 if test -z "$CC"; then
1559 if test -n "$ac_tool_prefix"; then
1560 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1561 set dummy ${ac_tool_prefix}cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_CC="${ac_tool_prefix}cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 if test -n "$CC"; then
1588 echo "$as_me:$LINENO: result: $CC" >&5
1589 echo "${ECHO_T}$CC" >&6
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1596 if test -z "$ac_cv_prog_CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599 set dummy cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$ac_ct_CC"; then
1606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_ac_ct_CC="cc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1625 if test -n "$ac_ct_CC"; then
1626 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1627 echo "${ECHO_T}$ac_ct_CC" >&6
1629 echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1639 if test -z "$CC"; then
1640 # Extract the first word of "cc", so it can be a program name with args.
1641 set dummy cc; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1659 ac_prog_rejected=yes
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 if test $ac_prog_rejected = yes; then
1670 # We found a bogon in the path, so make sure we never use it.
1671 set dummy $ac_cv_prog_CC
1673 if test $# != 0; then
1674 # We chose a different compiler from the bogus one.
1675 # However, it has the same basename, so the bogon will be chosen
1676 # first if we set CC to just the basename; use the full file name.
1678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1684 if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1693 if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 if test -n "$CC"; then
1705 ac_cv_prog_CC="$CC" # Let the user override the test.
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 if test -n "$CC"; then
1725 echo "$as_me:$LINENO: result: $CC" >&5
1726 echo "${ECHO_T}$CC" >&6
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1732 test -n "$CC" && break
1735 if test -z "$CC"; then
1739 # Extract the first word of "$ac_prog", so it can be a program name with args.
1740 set dummy $ac_prog; ac_word=$2
1741 echo "$as_me:$LINENO: checking for $ac_word" >&5
1742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 if test -n "$ac_ct_CC"; then
1747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_ac_ct_CC="$ac_prog"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1766 if test -n "$ac_ct_CC"; then
1767 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1768 echo "${ECHO_T}$ac_ct_CC" >&6
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1774 test -n "$ac_ct_CC" && break
1783 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&5
1785 echo "$as_me: error: no acceptable C compiler found in \$PATH
1786 See \`config.log' for more details." >&2;}
1787 { (exit 1); exit 1; }; }
1789 # Provide some information about the compiler.
1790 echo "$as_me:$LINENO:" \
1791 "checking for C compiler version" >&5
1792 ac_compiler=`set X $ac_compile; echo $2`
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1794 (eval $ac_compiler --version </dev/null >&5) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1799 (eval $ac_compiler -v </dev/null >&5) 2>&5
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }
1803 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1804 (eval $ac_compiler -V </dev/null >&5) 2>&5
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }
1809 cat >conftest.$ac_ext <<_ACEOF
1812 cat confdefs.h >>conftest.$ac_ext
1813 cat >>conftest.$ac_ext <<_ACEOF
1814 /* end confdefs.h. */
1824 ac_clean_files_save=$ac_clean_files
1825 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1826 # Try to create an executable without -o first, disregard a.out.
1827 # It will help us diagnose broken compilers, and finding out an intuition
1829 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1830 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1831 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1832 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1833 (eval $ac_link_default) 2>&5
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; then
1837 # Find the output, starting from the most likely. This scheme is
1838 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1841 # Be careful to initialize this variable, since it used to be cached.
1842 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1844 # b.out is created by i960 compilers.
1845 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1847 test -f "$ac_file" || continue
1849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1852 # This is the source file.
1855 # We found the default executable, but exeext='' is most
1859 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1860 # FIXME: I believe we export ac_cv_exeext for Libtool,
1861 # but it would be cool to find out if it's true. Does anybody
1862 # maintain Libtool? --akim.
1870 echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1874 See \`config.log' for more details." >&5
1875 echo "$as_me: error: C compiler cannot create executables
1876 See \`config.log' for more details." >&2;}
1877 { (exit 77); exit 77; }; }
1880 ac_exeext=$ac_cv_exeext
1881 echo "$as_me:$LINENO: result: $ac_file" >&5
1882 echo "${ECHO_T}$ac_file" >&6
1884 # Check the compiler produces executables we can run. If not, either
1885 # the compiler is broken, or we cross compile.
1886 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1887 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1888 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1889 # If not cross compiling, check that we can run a simple program.
1890 if test "$cross_compiling" != yes; then
1891 if { ac_try='./$ac_file'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1899 if test "$cross_compiling" = maybe; then
1902 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1903 If you meant to cross compile, use \`--host'.
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot run C compiled programs.
1906 If you meant to cross compile, use \`--host'.
1907 See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1912 echo "$as_me:$LINENO: result: yes" >&5
1913 echo "${ECHO_T}yes" >&6
1915 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1916 ac_clean_files=$ac_clean_files_save
1917 # Check the compiler produces executables we can run. If not, either
1918 # the compiler is broken, or we cross compile.
1919 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1920 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1921 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1922 echo "${ECHO_T}$cross_compiling" >&6
1924 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1925 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1927 (eval $ac_link) 2>&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }; then
1931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1933 # work properly (i.e., refer to `conftest.exe'), while it won't with
1935 for ac_file in conftest.exe conftest conftest.*; do
1936 test -f "$ac_file" || continue
1938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1946 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1947 See \`config.log' for more details." >&5
1948 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1949 See \`config.log' for more details." >&2;}
1950 { (exit 1); exit 1; }; }
1953 rm -f conftest$ac_cv_exeext
1954 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1955 echo "${ECHO_T}$ac_cv_exeext" >&6
1957 rm -f conftest.$ac_ext
1958 EXEEXT=$ac_cv_exeext
1960 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1961 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1962 if test "${ac_cv_objext+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 cat >conftest.$ac_ext <<_ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1980 rm -f conftest.o conftest.obj
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1986 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1994 echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2000 See \`config.log' for more details." >&2;}
2001 { (exit 1); exit 1; }; }
2004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2006 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2007 echo "${ECHO_T}$ac_cv_objext" >&6
2008 OBJEXT=$ac_cv_objext
2010 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 cat >conftest.$ac_ext <<_ACEOF
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h. */
2033 rm -f conftest.$ac_objext
2034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2035 (eval $ac_compile) 2>conftest.er1
2037 grep -v '^ *+' conftest.er1 >conftest.err
2039 cat conftest.err >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); } &&
2042 { ac_try='test -z "$ac_c_werror_flag"
2043 || test ! -s conftest.err'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; } &&
2049 { ac_try='test -s conftest.$ac_objext'
2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; }; then
2057 echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2066 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2068 GCC=`test $ac_compiler_gnu = yes && echo yes`
2069 ac_test_CFLAGS=${CFLAGS+set}
2070 ac_save_CFLAGS=$CFLAGS
2072 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2073 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2074 if test "${ac_cv_prog_cc_g+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 cat >conftest.$ac_ext <<_ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>conftest.er1
2096 grep -v '^ *+' conftest.er1 >conftest.err
2098 cat conftest.err >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -z "$ac_c_werror_flag"
2102 || test ! -s conftest.err'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2116 echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2124 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2125 if test "$ac_test_CFLAGS" = set; then
2126 CFLAGS=$ac_save_CFLAGS
2127 elif test $ac_cv_prog_cc_g = yes; then
2128 if test "$GCC" = yes; then
2134 if test "$GCC" = yes; then
2140 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2141 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2142 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 ac_cv_prog_cc_stdc=no
2147 cat >conftest.$ac_ext <<_ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2155 #include <sys/types.h>
2156 #include <sys/stat.h>
2157 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2158 struct buf { int x; };
2159 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2160 static char *e (p, i)
2166 static char *f (char * (*g) (char **, int), char **p, ...)
2171 s = g (p, va_arg (v,int));
2176 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2177 function prototypes and stuff, but not '\xHH' hex character constants.
2178 These don't provoke an error unfortunately, instead are silently treated
2179 as 'x'. The following induces an error, until -std1 is added to get
2180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2181 array size at least. It's necessary to write '\x00'==0 to get something
2182 that's true only with -std1. */
2183 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2185 int test (int i, double x);
2186 struct s1 {int (*f) (int a);};
2187 struct s2 {int (*f) (double a);};
2188 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2194 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2199 # Don't try gcc -ansi; that turns off useful extensions and
2200 # breaks some systems' header files.
2201 # AIX -qlanglvl=ansi
2202 # Ultrix and OSF/1 -std1
2203 # HP-UX 10.20 and later -Ae
2204 # HP-UX older versions -Aa -D_HPUX_SOURCE
2205 # SVR4 -Xc -D__EXTENSIONS__
2206 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2208 CC="$ac_save_CC $ac_arg"
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>conftest.er1
2213 grep -v '^ *+' conftest.er1 >conftest.err
2215 cat conftest.err >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); } &&
2218 { ac_try='test -z "$ac_c_werror_flag"
2219 || test ! -s conftest.err'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; } &&
2225 { ac_try='test -s conftest.$ac_objext'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2231 ac_cv_prog_cc_stdc=$ac_arg
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2238 rm -f conftest.err conftest.$ac_objext
2240 rm -f conftest.$ac_ext conftest.$ac_objext
2245 case "x$ac_cv_prog_cc_stdc" in
2247 echo "$as_me:$LINENO: result: none needed" >&5
2248 echo "${ECHO_T}none needed" >&6 ;;
2250 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2251 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2252 CC="$CC $ac_cv_prog_cc_stdc" ;;
2255 # Some people use a C++ compiler to compile C. Since we use `exit',
2256 # in C++ we need to declare it. In case someone uses the same compiler
2257 # for both compiling C and C++ we need to have the C++ compiler decide
2258 # the declaration of exit, since it's the most demanding environment.
2259 cat >conftest.$ac_ext <<_ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2268 grep -v '^ *+' conftest.er1 >conftest.err
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_c_werror_flag"
2274 || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 for ac_declaration in \
2288 'extern "C" void std::exit (int) throw (); using std::exit;' \
2289 'extern "C" void std::exit (int); using std::exit;' \
2290 'extern "C" void exit (int) throw ();' \
2291 'extern "C" void exit (int);' \
2294 cat >conftest.$ac_ext <<_ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* 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
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1 >conftest.err
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_c_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386 if test -n "$ac_declaration"; then
2387 echo '#ifdef __cplusplus' >>confdefs.h
2388 echo $ac_declaration >>confdefs.h
2389 echo '#endif' >>confdefs.h
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 # Find a good install program. We prefer a C program (faster),
2405 # so one script is as good as another. But avoid the broken or
2406 # incompatible versions:
2407 # SysV /etc/install, /usr/sbin/install
2408 # SunOS /usr/etc/install
2409 # IRIX /sbin/install
2411 # AmigaOS /C/install, which installs bootblocks on floppy discs
2412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2415 # OS/2's system install, which has a completely different semantic
2416 # ./install, which can be erroneously created by make from ./install.sh.
2417 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2418 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2419 if test -z "$INSTALL"; then
2420 if test "${ac_cv_path_install+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 # Account for people who put trailing slashes in PATH elements.
2430 ./ | .// | /cC/* | \
2431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2432 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2435 # OSF1 and SCO ODT 3.0 have their own names for install.
2436 # Don't use installbsd from OSF since it installs stuff as root
2438 for ac_prog in ginstall scoinst install; do
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2441 if test $ac_prog = install &&
2442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443 # AIX install. It has an incompatible calling convention.
2445 elif test $ac_prog = install &&
2446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2447 # program-specific install script used by HP pwplus--don't use.
2450 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2462 if test "${ac_cv_path_install+set}" = set; then
2463 INSTALL=$ac_cv_path_install
2465 # As a last resort, use the slow shell script. We don't cache a
2466 # path for INSTALL within a source directory, because that will
2467 # break other packages using the cache if that directory is
2468 # removed, or if the path is relative.
2469 INSTALL=$ac_install_sh
2472 echo "$as_me:$LINENO: result: $INSTALL" >&5
2473 echo "${ECHO_T}$INSTALL" >&6
2475 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2476 # It thinks the first close brace ends the variable substitution.
2477 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2479 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2481 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2484 if test "$ac_libiberty" = "NONE"; then
2487 echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
2488 echo $ECHO_N "checking for objalloc_create in -liberty... $ECHO_C" >&6
2489 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 ac_check_lib_save_LIBS=$LIBS
2493 LIBS="-liberty $LIBS"
2494 cat >conftest.$ac_ext <<_ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2501 /* Override any gcc2 internal prototype to avoid an error. */
2505 /* We use char because int might match the return type of a gcc2
2506 builtin and then its argument prototype would still apply. */
2507 char objalloc_create ();
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518 (eval $ac_link) 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag"
2526 || test ! -s conftest.err'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest$ac_exeext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 ac_cv_lib_iberty_objalloc_create=yes
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2543 ac_cv_lib_iberty_objalloc_create=no
2545 rm -f conftest.err conftest.$ac_objext \
2546 conftest$ac_exeext conftest.$ac_ext
2547 LIBS=$ac_check_lib_save_LIBS
2549 echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
2550 echo "${ECHO_T}$ac_cv_lib_iberty_objalloc_create" >&6
2551 if test $ac_cv_lib_iberty_objalloc_create = yes; then
2552 cat >>confdefs.h <<_ACEOF
2553 #define HAVE_LIBIBERTY 1
2556 LIBS="-liberty $LIBS"
2562 LIBS="$ac_libiberty $LIBS"
2564 if test "$ac_libbfd" = "NONE"; then
2566 echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
2567 echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6
2568 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 ac_check_lib_save_LIBS=$LIBS
2573 cat >conftest.$ac_ext <<_ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2580 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2595 rm -f conftest.$ac_objext conftest$ac_exeext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2597 (eval $ac_link) 2>conftest.er1
2599 grep -v '^ *+' conftest.er1 >conftest.err
2601 cat conftest.err >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest$ac_exeext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2617 ac_cv_lib_bfd_bfd_openr=yes
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2622 ac_cv_lib_bfd_bfd_openr=no
2624 rm -f conftest.err conftest.$ac_objext \
2625 conftest$ac_exeext conftest.$ac_ext
2626 LIBS=$ac_check_lib_save_LIBS
2628 echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
2629 echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6
2630 if test $ac_cv_lib_bfd_bfd_openr = yes; then
2631 cat >>confdefs.h <<_ACEOF
2632 #define HAVE_LIBBFD 1
2641 LIBS="$ac_libbfd $LIBS"
2645 if test "$ac_bfd_include_dir" != "NONE"; then
2646 bfd_include_dir="-I$ac_bfd_include_dir"
2649 binutils_include_dir=
2650 if test "$ac_binutils_include_dir" != "NONE"; then
2651 binutils_include_dir="-I$ac_binutils_include_dir"
2654 binutils_ldscript_dir=
2655 if test "$ac_binutils_ldscript_dir" = "NONE"; then
2656 ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
2658 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
2660 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
2662 echo "You need to specify the location of the libfd.a and libiberty.a"
2663 echo "host libraries from the binutils package."
2665 echo "Run configure again specifying these options:"
2667 echo " ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2672 if test "$ac_bfd_include_dir" = "NONE" ; then
2674 echo "You need to specify the location of the bfd.h header from a"
2675 echo "configured/compiled version of the binutils package for your target."
2676 echo "Without this your elf2flt may crash as it will try to use the"
2677 echo "systems bfd.h which may be from a different binutils package."
2679 echo "Run configure again specifying these options:"
2681 echo " ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2693 # On Suns, sometimes $CPP names a directory.
2694 if test -n "$CPP" && test -d "$CPP"; then
2697 if test -z "$CPP"; then
2698 if test "${ac_cv_prog_CPP+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 # Double quotes because CPP needs to be expanded
2702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2705 for ac_c_preproc_warn_flag in '' yes
2707 # Use a header file that comes with gcc, so configuring glibc
2708 # with a fresh cross-compiler works.
2709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2710 # <limits.h> exists even on freestanding compilers.
2711 # On the NeXT, cc -E runs the code through the compiler's parser,
2712 # not just through cpp. "Syntax error" is here to catch this case.
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2720 # include <limits.h>
2722 # include <assert.h>
2726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } >/dev/null; then
2734 if test -s conftest.err; then
2735 ac_cpp_err=$ac_c_preproc_warn_flag
2736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2743 if test -z "$ac_cpp_err"; then
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2749 # Broken: fails on valid input.
2752 rm -f conftest.err conftest.$ac_ext
2754 # OK, works on sane cases. Now check whether non-existent headers
2755 # can be detected and how.
2756 cat >conftest.$ac_ext <<_ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2762 #include <ac_nonexistent.h>
2764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } >/dev/null; then
2772 if test -s conftest.err; then
2773 ac_cpp_err=$ac_c_preproc_warn_flag
2774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2781 if test -z "$ac_cpp_err"; then
2782 # Broken: success on invalid input.
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 # Passes both tests.
2792 rm -f conftest.err conftest.$ac_ext
2795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2796 rm -f conftest.err conftest.$ac_ext
2797 if $ac_preproc_ok; then
2809 echo "$as_me:$LINENO: result: $CPP" >&5
2810 echo "${ECHO_T}$CPP" >&6
2812 for ac_c_preproc_warn_flag in '' yes
2814 # Use a header file that comes with gcc, so configuring glibc
2815 # with a fresh cross-compiler works.
2816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2817 # <limits.h> exists even on freestanding compilers.
2818 # On the NeXT, cc -E runs the code through the compiler's parser,
2819 # not just through cpp. "Syntax error" is here to catch this case.
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2827 # include <limits.h>
2829 # include <assert.h>
2833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2836 grep -v '^ *+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } >/dev/null; then
2841 if test -s conftest.err; then
2842 ac_cpp_err=$ac_c_preproc_warn_flag
2843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2850 if test -z "$ac_cpp_err"; then
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2856 # Broken: fails on valid input.
2859 rm -f conftest.err conftest.$ac_ext
2861 # OK, works on sane cases. Now check whether non-existent headers
2862 # can be detected and how.
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2869 #include <ac_nonexistent.h>
2871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2874 grep -v '^ *+' conftest.er1 >conftest.err
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } >/dev/null; then
2879 if test -s conftest.err; then
2880 ac_cpp_err=$ac_c_preproc_warn_flag
2881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2888 if test -z "$ac_cpp_err"; then
2889 # Broken: success on invalid input.
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2895 # Passes both tests.
2899 rm -f conftest.err conftest.$ac_ext
2902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2903 rm -f conftest.err conftest.$ac_ext
2904 if $ac_preproc_ok; then
2907 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 echo "$as_me:$LINENO: checking for egrep" >&5
2922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2923 if test "${ac_cv_prog_egrep+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2927 then ac_cv_prog_egrep='grep -E'
2928 else ac_cv_prog_egrep='egrep'
2931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2933 EGREP=$ac_cv_prog_egrep
2936 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2937 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2938 if test "${ac_cv_header_stdc+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962 (eval $ac_compile) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_c_werror_flag"
2970 || test ! -s conftest.err'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_cv_header_stdc=yes
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 ac_cv_header_stdc=no
2989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 if test $ac_cv_header_stdc = yes; then
2992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2993 cat >conftest.$ac_ext <<_ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3003 $EGREP "memchr" >/dev/null 2>&1; then
3006 ac_cv_header_stdc=no
3012 if test $ac_cv_header_stdc = yes; then
3013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3014 cat >conftest.$ac_ext <<_ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3024 $EGREP "free" >/dev/null 2>&1; then
3027 ac_cv_header_stdc=no
3033 if test $ac_cv_header_stdc = yes; then
3034 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3035 if test "$cross_compiling" = yes; then
3038 cat >conftest.$ac_ext <<_ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3045 #if ((' ' & 0x0FF) == 0x020)
3046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3049 # define ISLOWER(c) \
3050 (('a' <= (c) && (c) <= 'i') \
3051 || ('j' <= (c) && (c) <= 'r') \
3052 || ('s' <= (c) && (c) <= 'z'))
3053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3061 for (i = 0; i < 256; i++)
3062 if (XOR (islower (i), ISLOWER (i))
3063 || toupper (i) != TOUPPER (i))
3068 rm -f conftest$ac_exeext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3070 (eval $ac_link) 2>&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3081 echo "$as_me: program exited with status $ac_status" >&5
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3086 ac_cv_header_stdc=no
3088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3092 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3093 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3094 if test $ac_cv_header_stdc = yes; then
3096 cat >>confdefs.h <<\_ACEOF
3097 #define STDC_HEADERS 1
3102 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3112 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3113 inttypes.h stdint.h unistd.h
3115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3116 echo "$as_me:$LINENO: checking for $ac_header" >&5
3117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 $ac_includes_default
3129 #include <$ac_header>
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -z "$ac_c_werror_flag"
3141 || test ! -s conftest.err'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 eval "$as_ac_Header=yes"
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 eval "$as_ac_Header=no"
3160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3165 cat >>confdefs.h <<_ACEOF
3166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3177 for ac_header in fcntl.h unistd.h bfd.h
3179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3181 echo "$as_me:$LINENO: checking for $ac_header" >&5
3182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3189 # Is the header compilable?
3190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3198 $ac_includes_default
3199 #include <$ac_header>
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } &&
3210 { ac_try='test -z "$ac_c_werror_flag"
3211 || test ! -s conftest.err'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 ac_header_compiler=yes
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 ac_header_compiler=no
3230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3232 echo "${ECHO_T}$ac_header_compiler" >&6
3234 # Is the header present?
3235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243 #include <$ac_header>
3245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null; then
3253 if test -s conftest.err; then
3254 ac_cpp_err=$ac_c_preproc_warn_flag
3255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 if test -z "$ac_cpp_err"; then
3263 ac_header_preproc=yes
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 ac_header_preproc=no
3270 rm -f conftest.err conftest.$ac_ext
3271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3272 echo "${ECHO_T}$ac_header_preproc" >&6
3274 # So? What about this header?
3275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3281 ac_header_preproc=yes
3284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3298 ## ------------------------------------------ ##
3299 ## Report this to the AC_PACKAGE_NAME lists. ##
3300 ## ------------------------------------------ ##
3303 sed "s/^/$as_me: WARNING: /" >&2
3306 echo "$as_me:$LINENO: checking for $ac_header" >&5
3307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 eval "$as_ac_Header=\$ac_header_preproc"
3313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3318 cat >>confdefs.h <<_ACEOF
3319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3327 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3328 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3329 if test "${ac_cv_c_const+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3342 /* FIXME: Include the comments suggested by Paul. */
3344 /* Ultrix mips cc rejects this. */
3345 typedef int charset[2];
3347 /* SunOS 4.1.1 cc rejects this. */
3348 char const *const *ccp;
3350 /* NEC SVR4.0.2 mips cc rejects this. */
3351 struct point {int x, y;};
3352 static struct point const zero = {0,0};
3353 /* AIX XL C 1.02.0.0 rejects this.
3354 It does not let you subtract one const X* pointer from another in
3355 an arm of an if-expression whose if-part is not a constant
3357 const char *g = "string";
3358 ccp = &g + (g ? g-g : 0);
3359 /* HPUX 7.0 cc rejects these. */
3362 ccp = (char const *const *) p;
3363 { /* SCO 3.2v4 cc rejects this. */
3365 char const *s = 0 ? (char *) 0 : (char const *) 0;
3369 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3371 const int *foo = &x[0];
3374 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3375 typedef const int *iptr;
3379 { /* AIX XL C 1.02.0.0 rejects this saying
3380 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3381 struct s { int j; const int *ap[3]; };
3382 struct s *b; b->j = 5;
3384 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3393 rm -f conftest.$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3425 echo "${ECHO_T}$ac_cv_c_const" >&6
3426 if test $ac_cv_c_const = no; then
3428 cat >>confdefs.h <<\_ACEOF
3436 for ac_func in vprintf
3438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3439 echo "$as_me:$LINENO: checking for $ac_func" >&5
3440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3441 if eval "test \"\${$as_ac_var+set}\" = set"; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3452 #define $ac_func innocuous_$ac_func
3454 /* System header to define __stub macros and hopefully few prototypes,
3455 which can conflict with char $ac_func (); below.
3456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 <limits.h> exists even on freestanding compilers. */
3460 # include <limits.h>
3462 # include <assert.h>
3467 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3475 /* The GNU C library defines this for functions which it implements
3476 to always fail with ENOSYS. Some functions are actually named
3477 something starting with __ and the normal name is an alias. */
3478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3481 char (*f) () = $ac_func;
3490 return f != $ac_func;
3495 rm -f conftest.$ac_objext conftest$ac_exeext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3497 (eval $ac_link) 2>conftest.er1
3499 grep -v '^ *+' conftest.er1 >conftest.err
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -z "$ac_c_werror_flag"
3505 || test ! -s conftest.err'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; } &&
3511 { ac_try='test -s conftest$ac_exeext'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3517 eval "$as_ac_var=yes"
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 eval "$as_ac_var=no"
3524 rm -f conftest.err conftest.$ac_objext \
3525 conftest$ac_exeext conftest.$ac_ext
3527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3529 if test `eval echo '${'$as_ac_var'}'` = yes; then
3530 cat >>confdefs.h <<_ACEOF
3531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3534 echo "$as_me:$LINENO: checking for _doprnt" >&5
3535 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3536 if test "${ac_cv_func__doprnt+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
3546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3547 #define _doprnt innocuous__doprnt
3549 /* System header to define __stub macros and hopefully few prototypes,
3550 which can conflict with char _doprnt (); below.
3551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552 <limits.h> exists even on freestanding compilers. */
3555 # include <limits.h>
3557 # include <assert.h>
3562 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3570 /* The GNU C library defines this for functions which it implements
3571 to always fail with ENOSYS. Some functions are actually named
3572 something starting with __ and the normal name is an alias. */
3573 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3576 char (*f) () = _doprnt;
3585 return f != _doprnt;
3590 rm -f conftest.$ac_objext conftest$ac_exeext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3592 (eval $ac_link) 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest$ac_exeext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_cv_func__doprnt=yes
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ac_cv_func__doprnt=no
3619 rm -f conftest.err conftest.$ac_objext \
3620 conftest$ac_exeext conftest.$ac_ext
3622 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3623 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3624 if test $ac_cv_func__doprnt = yes; then
3626 cat >>confdefs.h <<\_ACEOF
3627 #define HAVE_DOPRNT 1
3638 for ac_func in dcgettext
3640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3641 echo "$as_me:$LINENO: checking for $ac_func" >&5
3642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3643 if eval "test \"\${$as_ac_var+set}\" = set"; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3654 #define $ac_func innocuous_$ac_func
3656 /* System header to define __stub macros and hopefully few prototypes,
3657 which can conflict with char $ac_func (); below.
3658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659 <limits.h> exists even on freestanding compilers. */
3662 # include <limits.h>
3664 # include <assert.h>
3669 /* Override any gcc2 internal prototype to avoid an error. */
3674 /* We use char because int might match the return type of a gcc2
3675 builtin and then its argument prototype would still apply. */
3677 /* The GNU C library defines this for functions which it implements
3678 to always fail with ENOSYS. Some functions are actually named
3679 something starting with __ and the normal name is an alias. */
3680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3683 char (*f) () = $ac_func;
3692 return f != $ac_func;
3697 rm -f conftest.$ac_objext conftest$ac_exeext
3698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3699 (eval $ac_link) 2>conftest.er1
3701 grep -v '^ *+' conftest.er1 >conftest.err
3703 cat conftest.err >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -z "$ac_c_werror_flag"
3707 || test ! -s conftest.err'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; } &&
3713 { ac_try='test -s conftest$ac_exeext'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 eval "$as_ac_var=yes"
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 eval "$as_ac_var=no"
3726 rm -f conftest.err conftest.$ac_objext \
3727 conftest$ac_exeext conftest.$ac_ext
3729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3731 if test `eval echo '${'$as_ac_var'}'` = yes; then
3732 cat >>confdefs.h <<_ACEOF
3733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3750 ac_config_files="$ac_config_files Makefile ld-elf2flt"
3751 cat >confcache <<\_ACEOF
3752 # This file is a shell script that caches the results of configure
3753 # tests run on this system so they can be shared between configure
3754 # scripts and configure runs, see configure's option --config-cache.
3755 # It is not useful on other systems. If it contains results you don't
3756 # want to keep, you may remove or edit it.
3758 # config.status only pays attention to the cache file if you give it
3759 # the --recheck option to rerun configure.
3761 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3762 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3767 # The following way of writing the cache mishandles newlines in values,
3768 # but we know of no workaround that is simple, portable, and efficient.
3769 # So, don't put newlines in cache variables' values.
3770 # Ultrix sh set writes to stderr and can't be redirected directly,
3771 # and sets the high bit in the cache file unless we assign to the vars.
3774 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3776 # `set' does not quote correctly, so add quotes (double-quote
3777 # substitution turns \\\\ into \\, and sed turns \\ into \).
3780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3783 # `set' quotes correctly as required by POSIX, so do not add quotes.
3785 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3794 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3796 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3797 if test -w $cache_file; then
3798 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3799 cat confcache >$cache_file
3801 echo "not updating unwritable cache $cache_file"
3806 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3807 # Let make expand exec_prefix.
3808 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3810 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3811 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3812 # trailing colons and then remove the whole line if VPATH becomes empty
3813 # (actually we leave an empty line to preserve line numbers).
3814 if test "x$srcdir" = x.; then
3815 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3816 s/:*\$(srcdir):*/:/;
3817 s/:*\${srcdir}:*/:/;
3819 s/^\([^=]*=[ ]*\):*/\1/;
3825 # Transform confdefs.h into DEFS.
3826 # Protect against shell expansion while executing Makefile rules.
3827 # Protect against Makefile macro expansion.
3829 # If the first sed substitution is executed (which looks for macros that
3830 # take arguments), then we branch to the quote section. Otherwise,
3831 # look for a macro that doesn't take arguments.
3832 cat >confdef2opt.sed <<\_ACEOF
3835 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3837 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3841 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3847 # We use echo to avoid assuming a particular line-breaking character.
3848 # The extra dot is to prevent the shell from consuming trailing
3849 # line-breaks from the sub-command output. A line-break within
3850 # single-quotes doesn't work because, if this script is created in a
3851 # platform that uses two characters for line-breaks (e.g., DOS), tr
3853 ac_LF_and_DOT=`echo; echo .`
3854 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3855 rm -f confdef2opt.sed
3860 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3861 # 1. Remove the extension, and $U if already installed.
3862 ac_i=`echo "$ac_i" |
3863 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3865 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3866 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3870 LTLIBOBJS=$ac_ltlibobjs
3874 : ${CONFIG_STATUS=./config.status}
3875 ac_clean_files_save=$ac_clean_files
3876 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3877 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3878 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3879 cat >$CONFIG_STATUS <<_ACEOF
3881 # Generated by $as_me.
3882 # Run this file to recreate the current configuration.
3883 # Compiler output produced by configure, useful for debugging
3884 # configure, is in config.log if it exists.
3889 SHELL=\${CONFIG_SHELL-$SHELL}
3892 cat >>$CONFIG_STATUS <<\_ACEOF
3893 ## --------------------- ##
3894 ## M4sh Initialization. ##
3895 ## --------------------- ##
3897 # Be Bourne compatible
3898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3901 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3902 # is contrary to our usage. Disable this feature.
3903 alias -g '${1+"$@"}'='"$@"'
3904 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3907 DUALCASE=1; export DUALCASE # for MKS sh
3909 # Support unset when possible.
3910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3917 # Work around bugs in pre-3.0 UWIN ksh.
3918 $as_unset ENV MAIL MAILPATH
3925 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3926 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3927 LC_TELEPHONE LC_TIME
3929 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3930 eval $as_var=C; export $as_var
3936 # Required to use basename.
3937 if expr a : '\(a\)' >/dev/null 2>&1; then
3943 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3944 as_basename=basename
3950 # Name of the executable.
3951 as_me=`$as_basename "$0" ||
3952 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3953 X"$0" : 'X\(//\)$' \| \
3954 X"$0" : 'X\(/\)$' \| \
3955 . : '\(.\)' 2>/dev/null ||
3957 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3958 /^X\/\(\/\/\)$/{ s//\1/; q; }
3959 /^X\/\(\/\).*/{ s//\1/; q; }
3963 # PATH needs CR, and LINENO needs CR and PATH.
3964 # Avoid depending upon Character Ranges.
3965 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3966 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3967 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3968 as_cr_digits='0123456789'
3969 as_cr_alnum=$as_cr_Letters$as_cr_digits
3971 # The user is always right.
3972 if test "${PATH_SEPARATOR+set}" != set; then
3973 echo "#! /bin/sh" >conf$$.sh
3974 echo "exit 0" >>conf$$.sh
3976 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3987 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3988 test "x$as_lineno_1" != "x$as_lineno_2" &&
3989 test "x$as_lineno_3" = "x$as_lineno_2" || {
3990 # Find who we are. Look in the path if we contain no path at all
3993 *[\\/]* ) as_myself=$0 ;;
3994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir=.
3999 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4004 # We did not find ourselves, most probably we were run as `sh COMMAND'
4005 # in which case we are not to be found in the path.
4006 if test "x$as_myself" = x; then
4009 if test ! -f "$as_myself"; then
4010 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4011 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4012 { (exit 1); exit 1; }; }
4014 case $CONFIG_SHELL in
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4020 test -z "$as_dir" && as_dir=.
4021 for as_base in sh bash ksh sh5; do
4024 if ("$as_dir/$as_base" -c '
4027 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4028 test "x$as_lineno_1" != "x$as_lineno_2" &&
4029 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4030 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4031 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4032 CONFIG_SHELL=$as_dir/$as_base
4034 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4042 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4043 # uniformly replaced by the line number. The first 'sed' inserts a
4044 # line-number line before each line; the second 'sed' does the real
4045 # work. The second script uses 'N' to pair each line-number line
4046 # with the numbered line, and appends trailing '-' during
4047 # substitution so that $LINENO is not a special case at line end.
4048 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4049 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4050 sed '=' <$as_myself |
4055 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4058 s,^['$as_cr_digits']*\n,,
4060 chmod +x $as_me.lineno ||
4061 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4062 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4063 { (exit 1); exit 1; }; }
4065 # Don't try to exec as it changes $[0], causing all sort of problems
4066 # (the dirname of $[0] is not the place where we might find the
4067 # original and so on. Autoconf is especially sensible to this).
4069 # Exit status is that of the last command.
4074 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4075 *c*,-n*) ECHO_N= ECHO_C='
4077 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4078 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4081 if expr a : '\(a\)' >/dev/null 2>&1; then
4087 rm -f conf$$ conf$$.exe conf$$.file
4089 if ln -s conf$$.file conf$$ 2>/dev/null; then
4090 # We could just check for DJGPP; but this test a) works b) is more generic
4091 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4092 if test -f conf$$.exe; then
4093 # Don't use ln at all; we don't have any links
4098 elif ln conf$$.file conf$$ 2>/dev/null; then
4103 rm -f conf$$ conf$$.exe conf$$.file
4105 if mkdir -p . 2>/dev/null; then
4108 test -d ./-p && rmdir ./-p
4112 as_executable_p="test -f"
4114 # Sed expression to map a string onto a valid CPP name.
4115 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4117 # Sed expression to map a string onto a valid variable name.
4118 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4122 # We need space, tab and new line, in precisely that order.
4132 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4133 # report actual input values of CONFIG_FILES etc. instead of their
4134 # values after options handling. Logging --version etc. is OK.
4138 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4139 ## Running $as_me. ##
4144 This file was extended by $as_me, which was
4145 generated by GNU Autoconf 2.59. Invocation command line was
4147 CONFIG_FILES = $CONFIG_FILES
4148 CONFIG_HEADERS = $CONFIG_HEADERS
4149 CONFIG_LINKS = $CONFIG_LINKS
4150 CONFIG_COMMANDS = $CONFIG_COMMANDS
4154 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4158 # Files that config.status was made for.
4159 if test -n "$ac_config_files"; then
4160 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4163 if test -n "$ac_config_headers"; then
4164 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4167 if test -n "$ac_config_links"; then
4168 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4171 if test -n "$ac_config_commands"; then
4172 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4175 cat >>$CONFIG_STATUS <<\_ACEOF
4178 \`$as_me' instantiates files from templates according to the
4179 current configuration.
4181 Usage: $0 [OPTIONS] [FILE]...
4183 -h, --help print this help, then exit
4184 -V, --version print version number, then exit
4185 -q, --quiet do not print progress messages
4186 -d, --debug don't remove temporary files
4187 --recheck update $as_me by reconfiguring in the same conditions
4188 --file=FILE[:TEMPLATE]
4189 instantiate the configuration file FILE
4191 Configuration files:
4194 Report bugs to <bug-autoconf@gnu.org>."
4197 cat >>$CONFIG_STATUS <<_ACEOF
4200 configured by $0, generated by GNU Autoconf 2.59,
4201 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4203 Copyright (C) 2003 Free Software Foundation, Inc.
4204 This config.status script is free software; the Free Software Foundation
4205 gives unlimited permission to copy, distribute and modify it."
4210 cat >>$CONFIG_STATUS <<\_ACEOF
4211 # If no file are specified by the user, then we need to provide default
4212 # value. By we need to know if files were specified by the user.
4218 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4219 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4227 *) # This is not an option, so the user has probably given explicit
4230 ac_need_defaults=false;;
4234 # Handling of the options.
4236 cat >>$CONFIG_STATUS <<\_ACEOF
4237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4239 --version | --vers* | -V )
4240 echo "$ac_cs_version"; exit 0 ;;
4242 # Conflict between --help and --header
4243 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4244 Try \`$0 --help' for more information." >&5
4245 echo "$as_me: error: ambiguous option: $1
4246 Try \`$0 --help' for more information." >&2;}
4247 { (exit 1); exit 1; }; };;
4248 --help | --hel | -h )
4249 echo "$ac_cs_usage"; exit 0 ;;
4250 --debug | --d* | -d )
4252 --file | --fil | --fi | --f )
4254 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4255 ac_need_defaults=false;;
4256 --header | --heade | --head | --hea )
4258 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4259 ac_need_defaults=false;;
4260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4265 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4266 Try \`$0 --help' for more information." >&5
4267 echo "$as_me: error: unrecognized option: $1
4268 Try \`$0 --help' for more information." >&2;}
4269 { (exit 1); exit 1; }; } ;;
4271 *) ac_config_targets="$ac_config_targets $1" ;;
4277 ac_configure_extra_args=
4279 if $ac_cs_silent; then
4281 ac_configure_extra_args="$ac_configure_extra_args --silent"
4285 cat >>$CONFIG_STATUS <<_ACEOF
4286 if \$ac_cs_recheck; then
4287 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4288 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4297 cat >>$CONFIG_STATUS <<\_ACEOF
4298 for ac_config_target in $ac_config_targets
4300 case "$ac_config_target" in
4301 # Handling of arguments.
4302 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4303 "ld-elf2flt" ) CONFIG_FILES="$CONFIG_FILES ld-elf2flt" ;;
4304 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4305 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4306 { (exit 1); exit 1; }; };;
4310 # If the user did not use the arguments to specify the items to instantiate,
4311 # then the envvar interface is used. Set only those that are not.
4312 # We use the long form for the default assignment because of an extremely
4313 # bizarre bug on SunOS 4.1.3.
4314 if $ac_need_defaults; then
4315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4318 # Have a temporary directory for convenience. Make it in the build tree
4319 # simply because there is no reason to put it here, and in addition,
4320 # creating and moving files from /tmp can sometimes cause problems.
4321 # Create a temporary directory, and hook for its removal unless debugging.
4324 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4325 trap '{ (exit 1); exit 1; }' 1 2 13 15
4328 # Create a (secure) tmp directory for tmp files.
4331 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4332 test -n "$tmp" && test -d "$tmp"
4335 tmp=./confstat$$-$RANDOM
4336 (umask 077 && mkdir $tmp)
4339 echo "$me: cannot create a temporary directory in ." >&2
4340 { (exit 1); exit 1; }
4345 cat >>$CONFIG_STATUS <<_ACEOF
4348 # CONFIG_FILES section.
4351 # No need to generate the scripts if there are no CONFIG_FILES.
4352 # This happens for instance when ./config.status config.h
4353 if test -n "\$CONFIG_FILES"; then
4354 # Protect against being on the right side of a sed subst in config.status.
4355 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4356 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4357 s,@SHELL@,$SHELL,;t t
4358 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4359 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4360 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4361 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4362 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4363 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4364 s,@exec_prefix@,$exec_prefix,;t t
4365 s,@prefix@,$prefix,;t t
4366 s,@program_transform_name@,$program_transform_name,;t t
4367 s,@bindir@,$bindir,;t t
4368 s,@sbindir@,$sbindir,;t t
4369 s,@libexecdir@,$libexecdir,;t t
4370 s,@datadir@,$datadir,;t t
4371 s,@sysconfdir@,$sysconfdir,;t t
4372 s,@sharedstatedir@,$sharedstatedir,;t t
4373 s,@localstatedir@,$localstatedir,;t t
4374 s,@libdir@,$libdir,;t t
4375 s,@includedir@,$includedir,;t t
4376 s,@oldincludedir@,$oldincludedir,;t t
4377 s,@infodir@,$infodir,;t t
4378 s,@mandir@,$mandir,;t t
4379 s,@build_alias@,$build_alias,;t t
4380 s,@host_alias@,$host_alias,;t t
4381 s,@target_alias@,$target_alias,;t t
4383 s,@ECHO_C@,$ECHO_C,;t t
4384 s,@ECHO_N@,$ECHO_N,;t t
4385 s,@ECHO_T@,$ECHO_T,;t t
4387 s,@build@,$build,;t t
4388 s,@build_cpu@,$build_cpu,;t t
4389 s,@build_vendor@,$build_vendor,;t t
4390 s,@build_os@,$build_os,;t t
4392 s,@host_cpu@,$host_cpu,;t t
4393 s,@host_vendor@,$host_vendor,;t t
4394 s,@host_os@,$host_os,;t t
4395 s,@target@,$target,;t t
4396 s,@target_cpu@,$target_cpu,;t t
4397 s,@target_vendor@,$target_vendor,;t t
4398 s,@target_os@,$target_os,;t t
4400 s,@CFLAGS@,$CFLAGS,;t t
4401 s,@LDFLAGS@,$LDFLAGS,;t t
4402 s,@CPPFLAGS@,$CPPFLAGS,;t t
4403 s,@ac_ct_CC@,$ac_ct_CC,;t t
4404 s,@EXEEXT@,$EXEEXT,;t t
4405 s,@OBJEXT@,$OBJEXT,;t t
4406 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4407 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4408 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4410 s,@EGREP@,$EGREP,;t t
4411 s,@bfd_include_dir@,$bfd_include_dir,;t t
4412 s,@binutils_include_dir@,$binutils_include_dir,;t t
4413 s,@binutils_ldscript_dir@,$binutils_ldscript_dir,;t t
4414 s,@got_check@,$got_check,;t t
4415 s,@LIBOBJS@,$LIBOBJS,;t t
4416 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4421 cat >>$CONFIG_STATUS <<\_ACEOF
4422 # Split the substitutions into bite-sized pieces for seds with
4423 # small command number limits, like on Digital OSF/1 and HP-UX.
4425 ac_sed_frag=1 # Number of current file.
4426 ac_beg=1 # First line for current file.
4427 ac_end=$ac_max_sed_lines # Line after last line for current file.
4430 while $ac_more_lines; do
4431 if test $ac_beg -gt 1; then
4432 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4434 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4436 if test ! -s $tmp/subs.frag; then
4439 # The purpose of the label and of the branching condition is to
4440 # speed up the sed processing (if there are no `@' at all, there
4441 # is no need to browse any of the substitutions).
4442 # These are the two extra sed commands mentioned above.
4444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4445 if test -z "$ac_sed_cmds"; then
4446 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4448 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4450 ac_sed_frag=`expr $ac_sed_frag + 1`
4452 ac_end=`expr $ac_end + $ac_max_sed_lines`
4455 if test -z "$ac_sed_cmds"; then
4458 fi # test -n "$CONFIG_FILES"
4461 cat >>$CONFIG_STATUS <<\_ACEOF
4462 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4465 - | *:- | *:-:* ) # input from stdin
4467 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4469 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4471 * ) ac_file_in=$ac_file.in ;;
4474 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4475 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4477 X"$ac_file" : 'X\(//\)[^/]' \| \
4478 X"$ac_file" : 'X\(//\)$' \| \
4479 X"$ac_file" : 'X\(/\)' \| \
4480 . : '\(.\)' 2>/dev/null ||
4482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4484 /^X\(\/\/\)$/{ s//\1/; q; }
4485 /^X\(\/\).*/{ s//\1/; q; }
4487 { if $as_mkdir_p; then
4492 while test ! -d "$as_dir"; do
4493 as_dirs="$as_dir $as_dirs"
4494 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4496 X"$as_dir" : 'X\(//\)[^/]' \| \
4497 X"$as_dir" : 'X\(//\)$' \| \
4498 X"$as_dir" : 'X\(/\)' \| \
4499 . : '\(.\)' 2>/dev/null ||
4501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4503 /^X\(\/\/\)$/{ s//\1/; q; }
4504 /^X\(\/\).*/{ s//\1/; q; }
4507 test ! -n "$as_dirs" || mkdir $as_dirs
4508 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4509 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4510 { (exit 1); exit 1; }; }; }
4514 if test "$ac_dir" != .; then
4515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4516 # A "../" for each directory in $ac_dir_suffix.
4517 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4519 ac_dir_suffix= ac_top_builddir=
4523 .) # No --srcdir option. We are building in place.
4525 if test -z "$ac_top_builddir"; then
4528 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4530 [\\/]* | ?:[\\/]* ) # Absolute path.
4531 ac_srcdir=$srcdir$ac_dir_suffix;
4532 ac_top_srcdir=$srcdir ;;
4534 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4535 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4538 # Do not use `cd foo && pwd` to compute absolute paths, because
4539 # the directories may not exist.
4541 .) ac_abs_builddir="$ac_dir";;
4544 .) ac_abs_builddir=`pwd`;;
4545 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4546 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4549 case $ac_abs_builddir in
4550 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4552 case ${ac_top_builddir}. in
4553 .) ac_abs_top_builddir=$ac_abs_builddir;;
4554 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4555 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4558 case $ac_abs_builddir in
4559 .) ac_abs_srcdir=$ac_srcdir;;
4562 .) ac_abs_srcdir=$ac_abs_builddir;;
4563 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4564 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4567 case $ac_abs_builddir in
4568 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4570 case $ac_top_srcdir in
4571 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4572 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4573 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4579 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4580 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4583 if test x"$ac_file" != x-; then
4584 { echo "$as_me:$LINENO: creating $ac_file" >&5
4585 echo "$as_me: creating $ac_file" >&6;}
4588 # Let's still pretend it is `configure' which instantiates (i.e., don't
4589 # use $as_me), people would be surprised to read:
4590 # /* config.h. Generated by config.status. */
4591 if test x"$ac_file" = x-; then
4594 configure_input="$ac_file. "
4596 configure_input=$configure_input"Generated from `echo $ac_file_in |
4597 sed 's,.*/,,'` by configure."
4599 # First look for the input files in the build tree, otherwise in the
4601 ac_file_inputs=`IFS=:
4602 for f in $ac_file_in; do
4604 -) echo $tmp/stdin ;;
4606 # Absolute (can't be DOS-style, as IFS=:)
4607 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4608 echo "$as_me: error: cannot find input file: $f" >&2;}
4609 { (exit 1); exit 1; }; }
4612 if test -f "$f"; then
4615 elif test -f "$srcdir/$f"; then
4620 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4621 echo "$as_me: error: cannot find input file: $f" >&2;}
4622 { (exit 1); exit 1; }; }
4625 done` || { (exit 1); exit 1; }
4627 cat >>$CONFIG_STATUS <<_ACEOF
4631 cat >>$CONFIG_STATUS <<\_ACEOF
4633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4634 s,@configure_input@,$configure_input,;t t
4635 s,@srcdir@,$ac_srcdir,;t t
4636 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4637 s,@top_srcdir@,$ac_top_srcdir,;t t
4638 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4639 s,@builddir@,$ac_builddir,;t t
4640 s,@abs_builddir@,$ac_abs_builddir,;t t
4641 s,@top_builddir@,$ac_top_builddir,;t t
4642 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4643 s,@INSTALL@,$ac_INSTALL,;t t
4644 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4646 if test x"$ac_file" != x-; then
4647 mv $tmp/out $ac_file
4656 cat >>$CONFIG_STATUS <<\_ACEOF
4658 { (exit 0); exit 0; }
4660 chmod +x $CONFIG_STATUS
4661 ac_clean_files=$ac_clean_files_save
4664 # configure is writing to config.log, and then calls config.status.
4665 # config.status does its own redirection, appending to config.log.
4666 # Unfortunately, on DOS this fails, as config.log is still kept open
4667 # by configure, so config.status won't be able to write to it; its
4668 # output is simply discarded. So we exec the FD to /dev/null,
4669 # effectively closing config.log, so it can be properly (re)opened and
4670 # appended to by config.status. When coming back to configure, we
4671 # need to make the FD available again.
4672 if test "$no_create" != yes; then
4674 ac_config_status_args=
4675 test "$silent" = yes &&
4676 ac_config_status_args="$ac_config_status_args --quiet"
4678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4681 # would make configure fail if this is the last instruction.
4682 $ac_cs_success || { (exit 1); exit 1; }