3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
17 --enable-targets alternative target configurations"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
41 # Initialize some other variables.
48 # If the previous option needs an argument, assign it.
49 if test -n "$ac_prev"; then
50 eval "$ac_prev=\$ac_option"
56 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
60 # Accept the important Cygnus configure options, so we can diagnose typos.
64 -build | --build | --buil | --bui | --bu | --b)
66 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
69 -cache-file | --cache-file | --cache-fil | --cache-fi \
70 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
72 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
73 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
74 cache_file="$ac_optarg" ;;
76 -disable-* | --disable-*)
77 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
78 # Reject names that are not valid shell variable names.
79 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
80 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
82 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
83 eval "enable_${ac_feature}=no" ;;
85 -enable-* | --enable-*)
86 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
87 # Reject names that are not valid shell variable names.
88 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
89 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
91 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
96 eval "enable_${ac_feature}='$ac_optarg'" ;;
98 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
99 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
100 | --exec | --exe | --ex)
101 ac_prev=exec_prefix ;;
102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
104 | --exec=* | --exe=* | --ex=*)
105 exec_prefix="$ac_optarg" ;;
107 -gas | --gas | --ga | --g)
108 # Obsolete; use --with-gas.
111 -help | --help | --hel | --he)
112 # Omit some internal or obsolete options to make the list less imposing.
113 # This message is too long to be a string in the A/UX 3.1 sh.
115 Usage: configure [options] [host]
116 Options: [defaults in brackets after descriptions]
118 --cache-file=FILE cache test results in FILE
119 --help print this message
120 --no-create do not create output files
121 --quiet, --silent do not print \`checking...' messages
122 --version print the version of autoconf that created configure
123 Directory and file names:
124 --prefix=PREFIX install architecture-independent files in PREFIX
126 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
128 --srcdir=DIR find the sources in DIR [configure dir or ..]
129 --program-prefix=PREFIX prepend PREFIX to installed program names
130 --program-suffix=SUFFIX append SUFFIX to installed program names
131 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
133 --build=BUILD configure for building on BUILD [BUILD=HOST]
134 --host=HOST configure for HOST [guessed]
135 --target=TARGET configure for TARGET [TARGET=HOST]
136 Features and packages:
137 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
138 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
139 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
140 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
141 --x-includes=DIR X include files are in DIR
142 --x-libraries=DIR X library files are in DIR
143 --enable and --with options recognized:$ac_help
147 -host | --host | --hos | --ho)
149 -host=* | --host=* | --hos=* | --ho=*)
153 # Obsolete; use --without-fp.
156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
167 prefix="$ac_optarg" ;;
169 -program-prefix | --program-prefix | --program-prefi | --program-pref \
170 | --program-pre | --program-pr | --program-p)
171 ac_prev=program_prefix ;;
172 -program-prefix=* | --program-prefix=* | --program-prefi=* \
173 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
174 program_prefix="$ac_optarg" ;;
176 -program-suffix | --program-suffix | --program-suffi | --program-suff \
177 | --program-suf | --program-su | --program-s)
178 ac_prev=program_suffix ;;
179 -program-suffix=* | --program-suffix=* | --program-suffi=* \
180 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
181 program_suffix="$ac_optarg" ;;
183 -program-transform-name | --program-transform-name \
184 | --program-transform-nam | --program-transform-na \
185 | --program-transform-n | --program-transform- \
186 | --program-transform | --program-transfor \
187 | --program-transfo | --program-transf \
188 | --program-trans | --program-tran \
189 | --progr-tra | --program-tr | --program-t)
190 ac_prev=program_transform_name ;;
191 -program-transform-name=* | --program-transform-name=* \
192 | --program-transform-nam=* | --program-transform-na=* \
193 | --program-transform-n=* | --program-transform-=* \
194 | --program-transform=* | --program-transfor=* \
195 | --program-transfo=* | --program-transf=* \
196 | --program-trans=* | --program-tran=* \
197 | --progr-tra=* | --program-tr=* | --program-t=*)
198 program_transform_name="$ac_optarg" ;;
200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
201 | -silent | --silent | --silen | --sile | --sil)
204 -site | --site | --sit)
206 -site=* | --site=* | --sit=*)
209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
212 srcdir="$ac_optarg" ;;
214 -target | --target | --targe | --targ | --tar | --ta | --t)
216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
217 target="$ac_optarg" ;;
219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
222 -version | --version | --versio | --versi | --vers)
223 echo "configure generated by autoconf version 2.4"
227 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
230 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
232 ac_package=`echo $ac_package| sed 's/-/_/g'`
237 eval "with_${ac_package}='$ac_optarg'" ;;
239 -without-* | --without-*)
240 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
243 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
245 ac_package=`echo $ac_package| sed 's/-/_/g'`
246 eval "with_${ac_package}=no" ;;
249 # Obsolete; use --with-x.
252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
253 | --x-incl | --x-inc | --x-in | --x-i)
254 ac_prev=x_includes ;;
255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
257 x_includes="$ac_optarg" ;;
259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
261 ac_prev=x_libraries ;;
262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
264 x_libraries="$ac_optarg" ;;
266 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
270 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
271 echo "configure: warning: $ac_option: invalid host type" 1>&2
273 if test "x$nonopt" != xNONE; then
274 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
282 if test -n "$ac_prev"; then
283 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
286 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
288 # File descriptor usage:
291 # 2 errors and warnings
292 # 3 some systems may open it to /dev/tty
293 # 4 used on the Kubota Titan
294 # 6 checking for... messages and results
295 # 5 compiler messages saved in config.log
296 if test "$silent" = yes; then
304 This file contains any messages produced by compilers while
305 running configure, to aid debugging if configure makes a mistake.
308 # Strip out --no-create and --no-recursion so they do not pile up.
309 # Also quote any args containing shell metacharacters.
314 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 | --no-cr | --no-c) ;;
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
318 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
319 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
320 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
325 # Only set LANG and LC_ALL to C if already set.
326 # These must not be set unconditionally because not all systems understand
327 # e.g. LANG=C (notably SCO).
328 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
329 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
332 rm -rf conftest* confdefs.h
333 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
336 # A filename unique to this package, relative to the directory that
337 # configure is in, which we can look for to find out if srcdir is correct.
338 ac_unique_file=libbfd.c
340 # Find the source files, if location was not specified.
341 if test -z "$srcdir"; then
342 ac_srcdir_defaulted=yes
343 # Try the directory containing this script, then its parent.
345 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
346 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
348 if test ! -r $srcdir/$ac_unique_file; then
352 ac_srcdir_defaulted=no
354 if test ! -r $srcdir/$ac_unique_file; then
355 if test "$ac_srcdir_defaulted" = yes; then
356 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
358 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
361 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
363 # Prefer explicitly selected file to automatically selected ones.
364 if test -z "$CONFIG_SITE"; then
365 if test "x$prefix" != xNONE; then
366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
371 for ac_site_file in $CONFIG_SITE; do
372 if test -r "$ac_site_file"; then
373 echo "loading site script $ac_site_file"
378 if test -r "$cache_file"; then
379 echo "loading cache $cache_file"
382 echo "creating cache $cache_file"
387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
388 ac_cpp='$CPP $CPPFLAGS'
389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
390 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
392 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
394 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
401 ac_n= ac_c='\c' ac_t=
406 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
407 enableval="$enable_64_bit_bfd"
408 if test -n "$enableval"; then
409 case "${enableval}" in
412 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
417 # Check whether --enable-targets or --disable-targets was given.
418 enableval="$enable_targets"
419 if test -n "$enableval"; then
420 case "${enableval}" in
421 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
423 no) enable_targets= ;;
424 *) enable_targets=$enableval ;;
431 for ac_dir in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`; do
432 if test -f $ac_dir/install-sh; then
434 ac_install_sh="$ac_aux_dir/install-sh -c"
436 elif test -f $ac_dir/install.sh; then
438 ac_install_sh="$ac_aux_dir/install.sh -c"
442 if test -z "$ac_aux_dir"; then
443 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`" 1>&2; exit 1; }
445 ac_config_guess=$ac_aux_dir/config.guess
446 ac_config_sub=$ac_aux_dir/config.sub
447 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
450 # Do some error checking and defaulting for the host and target type.
452 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
455 # 1. You are not allowed to specify --host, --target, and nonopt at the
457 # 2. Host defaults to nonopt.
458 # 3. If nonopt is not specified, then host defaults to the current host,
459 # as determined by config.guess.
460 # 4. Target and build default to nonopt.
461 # 5. If nonopt is not specified, then target and build default to host.
463 # The aliases save the names the user supplied, while $host etc.
464 # will get canonicalized.
465 case $host---$target---$nonopt in
466 NONE---*---* | *---NONE---* | *---*---NONE) ;;
467 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
471 # Make sure we can run config.sub.
472 if $ac_config_sub sun4 >/dev/null 2>&1; then :
473 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
476 echo $ac_n "checking host system type""... $ac_c" 1>&6
479 case "$host_alias" in
483 if host_alias=`$ac_config_guess`; then :
484 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
486 *) host_alias=$nonopt ;;
490 host=`$ac_config_sub $host_alias`
491 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
492 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
493 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
494 echo "$ac_t""$host" 1>&6
496 echo $ac_n "checking target system type""... $ac_c" 1>&6
499 case "$target_alias" in
502 NONE) target_alias=$host_alias ;;
503 *) target_alias=$nonopt ;;
507 target=`$ac_config_sub $target_alias`
508 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
509 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
510 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
511 echo "$ac_t""$target" 1>&6
513 echo $ac_n "checking build system type""... $ac_c" 1>&6
516 case "$build_alias" in
519 NONE) build_alias=$host_alias ;;
520 *) build_alias=$nonopt ;;
524 build=`$ac_config_sub $build_alias`
525 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
526 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
527 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
528 echo "$ac_t""$build" 1>&6
530 test "$host_alias" != "$target_alias" &&
531 test "$program_prefix$program_suffix$program_transform_name" = \
533 program_prefix=${target_alias}-
535 if test -z "$target" ; then
536 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
538 if test "$program_transform_name" = s,x,x,; then
539 program_transform_name=
542 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
543 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
546 test "$program_prefix" != NONE &&
547 program_transform_name="s,^,${program_prefix},; $program_transform_name"
548 # Use a double $ so make ignores it.
549 test "$program_suffix" != NONE &&
550 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
552 # sed with no file args requires a program.
553 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
561 # Permit host specific settings.
562 . ${srcdir}/configure.host
564 echo $ac_n "checking for CC""... $ac_c" 1>&6
565 test -z "$CC" && test -r ../Makefile && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
566 test -z "$CC" && CC=cc
567 echo "$ac_t""setting CC to $CC" 1>&6
569 cat > conftest.c <<EOF
574 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
576 if test "${CFLAGS+set}" != set; then
577 echo 'void f(){}' > conftest.c
578 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
586 test "${CFLAGS+set}" = set || CFLAGS="-g"
592 # Extract the first word of "ar", so it can be a program name with args.
593 set dummy ar; ac_word=$2
594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
595 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
596 echo $ac_n "(cached) $ac_c" 1>&6
598 if test -n "$AR"; then
599 ac_cv_prog_AR="$AR" # Let the user override the test.
601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
602 for ac_dir in $PATH; do
603 test -z "$ac_dir" && ac_dir=.
604 if test -f $ac_dir/$ac_word; then
610 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":"
614 if test -n "$AR"; then
615 echo "$ac_t""$AR" 1>&6
617 echo "$ac_t""no" 1>&6
620 # Extract the first word of "ranlib", so it can be a program name with args.
621 set dummy ranlib; ac_word=$2
622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
623 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
626 if test -n "$RANLIB"; then
627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
630 for ac_dir in $PATH; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
633 ac_cv_prog_RANLIB="ranlib"
638 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
641 RANLIB="$ac_cv_prog_RANLIB"
642 if test -n "$RANLIB"; then
643 echo "$ac_t""$RANLIB" 1>&6
645 echo "$ac_t""no" 1>&6
648 # Find a good install program. We prefer a C program (faster),
649 # so one script is as good as another. But avoid the broken or
650 # incompatible versions:
651 # SysV /etc/install, /usr/sbin/install
652 # SunOS /usr/etc/install
655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
657 # ./install, which can be erroneously created by make from ./install.sh.
658 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
659 if test -z "$INSTALL"; then
660 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
664 for ac_dir in $PATH; do
665 # Account for people who put trailing slashes in PATH elements.
667 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
669 # OSF1 and SCO ODT 3.0 have their own names for install.
670 for ac_prog in ginstall installbsd scoinst install; do
671 if test -f $ac_dir/$ac_prog; then
672 if test $ac_prog = install &&
673 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
674 # AIX install. It has an incompatible calling convention.
675 # OSF/1 installbsd also uses dspmsg, but is usable.
678 ac_cv_path_install="$ac_dir/$ac_prog -c"
687 # As a last resort, use the slow shell script.
688 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
690 INSTALL="$ac_cv_path_install"
692 echo "$ac_t""$INSTALL" 1>&6
694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
695 # It thinks the first close brace ends the variable substitution.
696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
698 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
702 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
707 # If we cannot run a trivial program, we must be cross compiling.
708 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
709 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 if test "$cross_compiling" = yes; then
715 cat > conftest.$ac_ext <<EOF
716 #line 717 "configure"
717 #include "confdefs.h"
721 if test -s conftest && (./conftest; exit) 2>/dev/null; then
729 cross_compiling=$ac_cv_c_cross
730 echo "$ac_t""$ac_cv_c_cross" 1>&6
732 # Put a plausible default for CC_FOR_BUILD in Makefile.
733 if test -z "$CC_FOR_BUILD"; then
734 if test "x$cross_compiling" = "xno"; then
742 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
743 # On Suns, sometimes $CPP names a directory.
744 if test -n "$CPP" && test -d "$CPP"; then
747 if test -z "$CPP"; then
748 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 # This must be in double quotes, not single quotes, because CPP may get
752 # substituted into the Makefile and "${CC-cc}" will confuse make.
754 # On the NeXT, cc -E runs the code through the compiler's parser,
755 # not just through cpp.
756 cat > conftest.$ac_ext <<EOF
757 #line 758 "configure"
758 #include "confdefs.h"
762 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
763 ac_err=`grep -v '^ *+' conftest.out`
764 if test -z "$ac_err"; then
769 CPP="${CC-cc} -E -traditional-cpp"
770 cat > conftest.$ac_ext <<EOF
771 #line 772 "configure"
772 #include "confdefs.h"
776 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
777 ac_err=`grep -v '^ *+' conftest.out`
778 if test -z "$ac_err"; then
788 ac_cv_prog_CPP="$CPP"
790 CPP="$ac_cv_prog_CPP"
792 ac_cv_prog_CPP="$CPP"
794 echo "$ac_t""$CPP" 1>&6
796 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
798 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 cat > conftest.$ac_ext <<EOF
804 #line 805 "configure"
805 #include "confdefs.h"
808 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
809 ac_err=`grep -v '^ *+' conftest.out`
810 if test -z "$ac_err"; then
812 eval "ac_cv_header_$ac_safe=yes"
816 eval "ac_cv_header_$ac_safe=no"
820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
821 echo "$ac_t""yes" 1>&6
822 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
823 cat >> confdefs.h <<EOF
828 echo "$ac_t""no" 1>&6
832 for ac_hdr in fcntl.h sys/file.h
834 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 cat > conftest.$ac_ext <<EOF
840 #line 841 "configure"
841 #include "confdefs.h"
844 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
845 ac_err=`grep -v '^ *+' conftest.out`
846 if test -z "$ac_err"; then
848 eval "ac_cv_header_$ac_safe=yes"
852 eval "ac_cv_header_$ac_safe=no"
856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
857 echo "$ac_t""yes" 1>&6
858 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
859 cat >> confdefs.h <<EOF
864 echo "$ac_t""no" 1>&6
868 for ac_func in fcntl getpagesize
870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 cat > conftest.$ac_ext <<EOF
875 #line 876 "configure"
876 #include "confdefs.h"
877 /* System header to define __stub macros and hopefully few prototypes,
878 which can conflict with char $ac_func(); below. */
880 /* Override any gcc2 internal prototype to avoid an error. */
883 int main() { return 0; }
886 /* The GNU C library defines this for functions which it implements
887 to always fail with ENOSYS. Some functions are actually named
888 something starting with __ and the normal name is an alias. */
889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
897 if eval $ac_link; then
899 eval "ac_cv_func_$ac_func=yes"
902 eval "ac_cv_func_$ac_func=no"
907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
908 echo "$ac_t""yes" 1>&6
909 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
910 cat >> confdefs.h <<EOF
911 #define $ac_tr_func 1
915 echo "$ac_t""no" 1>&6
921 i[345]86-*-msdos* | i[345]86-*-go32* | i[345]86-*-win32)
922 cat >> confdefs.h <<\EOF
923 #define USE_BINARY_FOPEN 1
928 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
929 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 cat > conftest.$ac_ext <<EOF
933 #line 934 "configure"
934 #include "confdefs.h"
943 int main() { return 0; }
945 char *(*pfn) = (char *(*)) malloc
948 if eval $ac_compile; then
950 bfd_cv_decl_needed_malloc=no
953 bfd_cv_decl_needed_malloc=yes
959 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
960 if test $bfd_cv_decl_needed_malloc = yes; then
961 cat >> confdefs.h <<\EOF
962 #define NEED_DECLARATION_MALLOC 1
967 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
968 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 cat > conftest.$ac_ext <<EOF
972 #line 973 "configure"
973 #include "confdefs.h"
982 int main() { return 0; }
984 int (*pfn) = (int (*)) free
987 if eval $ac_compile; then
989 bfd_cv_decl_needed_free=no
992 bfd_cv_decl_needed_free=yes
998 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
999 if test $bfd_cv_decl_needed_free = yes; then
1000 cat >> confdefs.h <<\EOF
1001 #define NEED_DECLARATION_FREE 1
1006 # If we are configured native, pick a core file support file.
1009 if test "${target}" = "${host}"; then
1012 COREFILE=trad-core.o
1013 cat >> confdefs.h <<\EOF
1014 #define TRAD_HEADER "hosts/alphalinux.h"
1018 alpha*-*-*) COREFILE=osf-core.o ;;
1019 arm-*-riscix) COREFILE=trad-core.o ;;
1020 hppa*-*-hpux*) COREFILE=hpux-core.o ;;
1021 hppa*-*-hiux*) COREFILE=hpux-core.o ;;
1022 hppa*-*-bsd*) COREFILE="hpux-core.o hppabsd-core.o"
1023 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
1024 i[345]86-sequent-bsd*)
1025 COREFILE=trad-core.o;
1026 cat >> confdefs.h <<\EOF
1027 #define TRAD_HEADER "hosts/symmetry.h"
1031 i[345]86-sequent-sysv4*) ;;
1032 i[345]86-sequent-sysv*)
1033 COREFILE=trad-core.o
1034 cat >> confdefs.h <<\EOF
1035 #define TRAD_HEADER "hosts/symmetry.h"
1039 i[345]86-*-bsd* | i[345]86-*-freebsd*)
1040 COREFILE=trad-core.o
1041 cat >> confdefs.h <<\EOF
1042 #define TRAD_HEADER "hosts/i386bsd.h"
1047 COREFILE=trad-core.o
1048 cat >> confdefs.h <<\EOF
1049 #define TRAD_HEADER "hosts/i386nbsd.h"
1053 i[345]86-esix-sysv3*)
1054 COREFILE=trad-core.o
1055 cat >> confdefs.h <<\EOF
1056 #define TRAD_HEADER "hosts/esix.h"
1060 i[345]86-*-sco* | i[345]86-*-isc*)
1061 COREFILE=trad-core.o
1062 cat >> confdefs.h <<\EOF
1063 #define TRAD_HEADER "hosts/i386sco.h"
1068 COREFILE=trad-core.o
1069 cat >> confdefs.h <<\EOF
1070 #define TRAD_HEADER "hosts/i386mach3.h"
1075 COREFILE=trad-core.o
1076 cat >> confdefs.h <<\EOF
1077 #define TRAD_HEADER "hosts/i386linux.h"
1081 i[345]86-*-isc*) COREFILE=trad-core.o ;;
1082 i[345]86-*-aix*) COREFILE=aix386-core.o ;;
1083 i860-*-mach3* | i860-*-osf1*)
1084 COREFILE=trad-core.o
1085 cat >> confdefs.h <<\EOF
1086 #define TRAD_HEADER "hosts/i860mach3.h"
1091 COREFILE=trad-core.o
1092 cat >> confdefs.h <<\EOF
1093 #define TRAD_HEADER "hosts/mipsbsd.h"
1098 COREFILE=trad-core.o
1099 cat >> confdefs.h <<\EOF
1100 #define TRAD_HEADER "hosts/mipsmach3.h"
1105 COREFILE=trad-core.o
1106 cat >> confdefs.h <<\EOF
1107 #define TRAD_HEADER "hosts/mipsnbsd.h"
1112 COREFILE=trad-core.o
1113 cat >> confdefs.h <<\EOF
1114 #define TRAD_HEADER "hosts/decstation.h"
1118 mips-sgi-irix4*) COREFILE=irix-core.o ;;
1119 mips-sgi-irix5*) COREFILE=irix-core.o ;;
1121 COREFILE=trad-core.o
1122 cat >> confdefs.h <<\EOF
1123 #define TRAD_HEADER "hosts/mipsmach3.h"
1128 mips-*-sysv* | mips-*-riscos*)
1129 COREFILE=trad-core.o
1130 cat >> confdefs.h <<\EOF
1131 #define TRAD_HEADER "hosts/riscos.h"
1136 COREFILE=trad-core.o
1137 cat >> confdefs.h <<\EOF
1138 #define TRAD_HEADER "hosts/news-mips".h
1143 COREFILE=trad-core.o
1144 cat >> confdefs.h <<\EOF
1145 #define TRAD_HEADER "hosts/dpx2.h"
1149 m68*-hp-hpux*) COREFILE=hpux-core.o ;;
1151 COREFILE=trad-core.o
1152 cat >> confdefs.h <<\EOF
1153 #define TRAD_HEADER "hosts/hp300bsd.h"
1157 m68*-motorola-sysv*)
1158 COREFILE=trad-core.o
1159 cat >> confdefs.h <<\EOF
1160 #define TRAD_HEADER "hosts/delta68.h"
1165 COREFILE=trad-core.o
1166 cat >> confdefs.h <<\EOF
1167 #define TRAD_HEADER "hosts/news.h"
1172 COREFILE=trad-core.o
1173 cat >> confdefs.h <<\EOF
1174 #define TRAD_HEADER "hosts/m68knbsd.h"
1179 m88*-motorola-sysv*) COREFILE=ptrace-core.o ;;
1181 COREFILE=trad-core.o
1182 cat >> confdefs.h <<\EOF
1183 #define TRAD_HEADER "hosts/m88kmach3.h"
1188 COREFILE=trad-core.o
1189 cat >> confdefs.h <<\EOF
1190 #define TRAD_HEADER "hosts/pc532mach.h"
1195 COREFILE=trad-core.o
1196 cat >> confdefs.h <<\EOF
1197 #define TRAD_HEADER "hosts/ns32knbsd.h"
1201 rs6000-*-lynx*) COREFILE=lynx-core.o ;;
1202 rs6000-*-aix4*) COREFILE=rs6000-core.o ;;
1203 rs6000-*-*) COREFILE=rs6000-core.o ;;
1204 powerpc-*-aix4*) COREFILE=rs6000-core.o ;;
1205 powerpc-*-aix*) COREFILE=rs6000-core.o ;;
1207 COREFILE=trad-core.o
1208 cat >> confdefs.h <<\EOF
1209 #define TRAD_HEADER "hosts/sparcnbsd.h"
1214 COREFILE=trad-core.o
1215 cat >> confdefs.h <<\EOF
1216 #define TRAD_HEADER "hosts/tahoe.h"
1221 COREFILE=trad-core.o
1222 cat >> confdefs.h <<\EOF
1223 #define TRAD_HEADER "hosts/vaxult2.h"
1228 COREFILE=trad-core.o
1229 cat >> confdefs.h <<\EOF
1230 #define TRAD_HEADER "hosts/vaxult2.h"
1235 COREFILE=trad-core.o
1236 cat >> confdefs.h <<\EOF
1237 #define TRAD_HEADER "hosts/vaxbsd.h"
1244 aix386-core.o) COREFLAG=-DAIX386_CORE ;;
1245 hppabsd-core.o) COREFLAG=-DHPPABSD_CORE ;;
1246 hpux-core.o) COREFLAG=-DHPUX_CORE ;;
1247 irix-core.o) COREFLAG=-DIRIX_CORE ;;
1248 lynx-core.o) COREFLAG=-DLYNX_CORE ;;
1249 osf-core.o) COREFLAG=-DOSF_CORE ;;
1250 ptrace-core.o) COREFLAG=-DPTRACE_CORE ;;
1251 rs6000-core.o) COREFLAG="$COREFLAG -DAIX_CORE" ;;
1252 trad-core.o) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
1255 # The ELF code uses the native <sys/procfs.h> to handle core files.
1256 # Define HAVE_SYS_PROCFS_H if the file exists and defines
1258 echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6
1259 if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 #include <sys/procfs.h>
1266 int main() { return 0; }
1271 if eval $ac_compile; then
1273 bfd_cv_header_sys_procfs_h=yes
1276 bfd_cv_header_sys_procfs_h=no
1282 echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6
1283 if test $bfd_cv_header_sys_procfs_h = yes; then
1284 cat >> confdefs.h <<\EOF
1285 #define HAVE_SYS_PROCFS_H 1
1296 # Canonicalize the secondary target names.
1297 if test -n "$enable_targets" ; then
1298 for targ in `echo $enable_targets | sed 's/,/ /g'`
1300 result=`$ac_config_sub $targ 2>/dev/null`
1301 if test -n "$result" ; then
1302 canon_targets="$canon_targets $result"
1304 # Allow targets that config.sub doesn't recognize, like "all".
1305 canon_targets="$canon_targets $targ"
1315 for targ in $target $canon_targets
1317 if test "x$targ" = "xall"; then
1320 . $srcdir/config.bfd
1321 if test "x$targ" = "x$target"; then
1324 selvecs="$selvecs $targ_defvec $targ_selvecs"
1325 selarchs="$selarchs $targ_archs"
1326 TDEFINES="$TDEFINES $targ_cflags"
1331 # This processing still needs to be done if we're to decide properly whether
1332 # 64-bit support needs to be compiled in. Currently, it will be included if
1333 # the default or any other explicitly requested target requires it; it
1334 # will not be included on a 32-bit host if no 64-bit target is requested, and
1335 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
1338 # uniq the default and selected vectors in all the configured targets.
1340 for i in $selvecs ; do
1348 # uniq the architectures in all the configured targets.
1350 for i in $selarchs ; do
1358 # Target backend .o files.
1361 elf="elf.o elflink.o"
1366 # This list is alphabetized to make it easy to compare
1367 # with the two vector lists in targets.c.
1368 a29kcoff_big_vec) tb="$tb coff-a29k.o cofflink.o" ;;
1369 a_out_adobe_vec) tb="$tb aout-adobe.o aout32.o stab-syms.o" ;;
1370 armcoff_little_vec) tb="$tb coff-arm.o cofflink.o " ;;
1371 armcoff_big_vec) tb="$tb coff-arm.o cofflink.o " ;;
1372 armpe_little_vec) tb="$tb pe-arm.o cofflink.o " ;;
1373 armpe_big_vec) tb="$tb pe-arm.o cofflink.o " ;;
1374 armpei_little_vec) tb="$tb pei-arm.o cofflink.o " ;;
1375 armpei_big_vec) tb="$tb pei-arm.o cofflink.o " ;;
1376 aout0_big_vec) tb="$tb aout0.o aout32.o stab-syms.o" ;;
1377 aout_arm_big_vec) tb="$tb aout-arm.o aout32.o stab-syms.o" ;;
1378 aout_arm_little_vec) tb="$tb aout-arm.o aout32.o stab-syms.o" ;;
1379 aout_mips_big_vec) tb="$tb mipsbsd.o aout32.o stab-syms.o" ;;
1380 aout_mips_little_vec) tb="$tb mipsbsd.o aout32.o stab-syms.o" ;;
1381 apollocoff_vec) tb="$tb coff-apollo.o" ;;
1382 b_out_vec_big_host) tb="$tb bout.o aout32.o stab-syms.o" ;;
1383 b_out_vec_little_host) tb="$tb bout.o aout32.o stab-syms.o" ;;
1384 # start-sanitize-arc
1385 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;;
1386 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;;
1388 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;;
1389 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;;
1390 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o $elf" ;;
1391 bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o $elf" ;;
1392 bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o $elf" ;;
1393 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;;
1394 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;;
1395 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o $elf" ;;
1396 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.o elf32.o $elf" ;;
1397 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;;
1398 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;;
1399 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o $elf" ;;
1400 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.o elf64.o $elf"
1402 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.o elf64.o $elf"
1404 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o $elf"
1406 cisco_core_vec) tb="$tb cisco-core.o" ;;
1407 demo_64_vec) tb="$tb demo64.o aout64.o stab-syms.o"
1409 ecoff_big_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;;
1410 ecoff_little_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;;
1411 ecoffalpha_little_vec) tb="$tb coff-alpha.o ecoff.o ecofflink.o"
1413 h8300coff_vec) tb="$tb coff-h8300.o reloc16.o" ;;
1414 h8500coff_vec) tb="$tb coff-h8500.o reloc16.o" ;;
1415 host_aout_vec) tb="$tb host-aout.o aout32.o stab-syms.o" ;;
1416 hp300bsd_vec) tb="$tb hp300bsd.o aout32.o stab-syms.o" ;;
1417 hp300hpux_vec) tb="$tb hp300hpux.o aout32.o stab-syms.o" ;;
1418 i386aout_vec) tb="$tb i386aout.o aout32.o stab-syms.o" ;;
1419 i386bsd_vec) tb="$tb i386bsd.o aout32.o stab-syms.o" ;;
1420 i386dynix_vec) tb="$tb i386dynix.o aout32.o stab-syms.o" ;;
1421 i386coff_vec) tb="$tb coff-i386.o cofflink.o" ;;
1422 i386msdos_vec) tb="$tb i386msdos.o" ;;
1423 i386pe_vec) tb="$tb pe-i386.o cofflink.o " ;;
1424 i386pei_vec) tb="$tb pei-i386.o cofflink.o" ;;
1425 i386linux_vec) tb="$tb i386linux.o aout32.o stab-syms.o" ;;
1426 i386lynx_aout_vec) tb="$tb i386lynx.o lynx-core.o aout32.o stab-syms.o" ;;
1427 i386lynx_coff_vec) tb="$tb cf-i386lynx.o cofflink.o lynx-core.o stab-syms.o" ;;
1428 i386mach3_vec) tb="$tb i386mach3.o aout32.o stab-syms.o" ;;
1429 i386netbsd_vec) tb="$tb i386netbsd.o aout32.o stab-syms.o" ;;
1430 i386os9k_vec) tb="$tb i386os9k.o aout32.o stab-syms.o" ;;
1431 i860coff_vec) tb="$tb coff-i860.o cofflink.o" ;;
1432 icoff_big_vec) tb="$tb coff-i960.o cofflink.o" ;;
1433 icoff_little_vec) tb="$tb coff-i960.o cofflink.o" ;;
1434 ieee_vec) tb="$tb ieee.o" ;;
1435 m68kcoff_vec) tb="$tb coff-m68k.o cofflink.o" ;;
1436 m68kcoffun_vec) tb="$tb coff-u68k.o coff-m68k.o cofflink.o" ;;
1437 m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o stab-syms.o" ;;
1438 m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o stab-syms.o" ;;
1439 m68knetbsd_vec) tb="$tb m68knetbsd.o aout32.o stab-syms.o" ;;
1440 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.o aout32.o stab-syms.o" ;;
1441 m88kbcs_vec) tb="$tb coff-m88k.o" ;;
1442 newsos3_vec) tb="$tb newsos3.o aout32.o stab-syms.o" ;;
1443 nlm32_i386_vec) tb="$tb nlm32-i386.o nlm32.o nlm.o" ;;
1444 nlm32_sparc_vec) tb="$tb nlm32-sparc.o nlm32.o nlm.o" ;;
1445 nlm32_alpha_vec) tb="$tb nlm32-alpha.o nlm32.o nlm.o"
1447 riscix_vec) tb="$tb aout32.o riscix.o stab-syms.o" ;;
1448 nlm32_powerpc_vec) tb="$tb nlm32-ppc.o nlm32.o nlm.o" ;;
1449 pc532netbsd_vec) tb="$tb ns32knetbsd.o aout-ns32k.o stab-syms.o" ;;
1450 pc532machaout_vec) tb="$tb pc532-mach.o aout-ns32k.o stab-syms.o" ;;
1451 pmac_xcoff_vec) tb="$tb coff-pmac.o xcofflink.o" ;;
1452 rs6000coff_vec) tb="$tb coff-rs6000.o xcofflink.o" ;;
1453 bfd_powerpc_pe_vec) tb="$tb pe-ppc.o cofflink.o" ;;
1454 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.o cofflink.o" ;;
1455 bfd_powerpc_pei_vec) tb="$tb pei-ppc.o cofflink.o" ;;
1456 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.o cofflink.o" ;;
1457 shcoff_vec) tb="$tb coff-sh.o cofflink.o" ;;
1458 # start-sanitize-rce
1459 rce_aout_vec) tb="$tb aout-rce.o aout32.o stab-syms.o" ;;
1461 shlcoff_vec) tb="$tb coff-sh.o cofflink.o" ;;
1462 som_vec) tb="$tb som.o" ;;
1463 sparclynx_aout_vec) tb="$tb sparclynx.o lynx-core.o aout32.o stab-syms.o" ;;
1464 sparclynx_coff_vec) tb="$tb cf-sparclynx.o lynx-core.o stab-syms.o" ;;
1465 sparcnetbsd_vec) tb="$tb sparcnetbsd.o aout32.o stab-syms.o" ;;
1466 sparccoff_vec) tb="$tb coff-sparc.o" ;;
1467 srec_vec) tb="$tb srec.o" ;;
1468 sunos_big_vec) tb="$tb sunos.o aout32.o stab-syms.o" ;;
1469 symbolsrec_vec) tb="$tb srec.o" ;;
1470 tekhex_vec) tb="$tb tekhex.o" ;;
1471 we32kcoff_vec) tb="$tb coff-we32k.o" ;;
1472 z8kcoff_vec) tb="$tb coff-z8k.o reloc16.o" ;;
1473 w65_vec) tb="$tb coff-w65.o reloc16.o" ;;
1474 versados_vec) tb="$tb versados.o" ;;
1477 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
1481 # Target architecture .o files.
1482 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.o/g`
1484 # Weed out duplicate .o files.
1506 if test x${all_targets} = xtrue ; then
1507 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
1508 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
1511 else # all_targets is true
1512 # Only set these if they will be nonempty, for the clever echo.
1513 test -n "$selvecs" &&
1514 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1515 test -n "$selarchs" &&
1516 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1517 fi # all_targets is true
1519 case ${host64}-${target64}-${want64} in
1522 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
1526 all_backends='$(BFD32_BACKENDS)'
1536 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
1537 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
1538 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
1541 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1542 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 if test "$cross_compiling" = yes; then
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1552 /* Thanks to Mike Haertel and Jim Avera for this test. */
1553 #include <sys/types.h>
1555 #include <sys/mman.h>
1559 # define HAVE_GETPAGESIZE
1563 #ifndef HAVE_GETPAGESIZE
1564 # include <sys/param.h>
1565 # ifdef EXEC_PAGESIZE
1566 # define getpagesize() EXEC_PAGESIZE
1569 # define getpagesize() NBPG * CLSIZE
1575 # define getpagesize() NBPC
1577 # define getpagesize() PAGESIZE /* SVR4 */
1584 # define valloc malloc
1588 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
1590 char *valloc(), *malloc();
1596 char *buf1, *buf2, *buf3;
1597 int i = getpagesize(), j;
1598 int i2 = getpagesize()*2;
1601 buf1 = (char *)valloc(i2);
1602 buf2 = (char *)valloc(i);
1603 buf3 = (char *)malloc(i2);
1604 for (j = 0; j < i2; ++j)
1605 *(buf1 + j) = rand();
1606 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
1607 write(fd, buf1, i2);
1608 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
1609 for (j = 0; j < i; ++j)
1610 if (*(buf1 + j) != *(buf2 + j))
1612 lseek(fd, (long)i, 0);
1613 read(fd, buf2, i); /* read into mapped memory -- file should not change */
1615 lseek(fd, (long)0, 0);
1617 for (j = 0; j < i2; ++j)
1618 if (*(buf1 + j) != *(buf3 + j))
1625 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1633 echo "$ac_t""$ac_cv_func_mmap" 1>&6
1634 if test $ac_cv_func_mmap = yes; then
1635 cat >> confdefs.h <<\EOF
1641 for ac_func in madvise mprotect
1643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1650 /* System header to define __stub macros and hopefully few prototypes,
1651 which can conflict with char $ac_func(); below. */
1653 /* Override any gcc2 internal prototype to avoid an error. */
1656 int main() { return 0; }
1659 /* The GNU C library defines this for functions which it implements
1660 to always fail with ENOSYS. Some functions are actually named
1661 something starting with __ and the normal name is an alias. */
1662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1670 if eval $ac_link; then
1672 eval "ac_cv_func_$ac_func=yes"
1675 eval "ac_cv_func_$ac_func=no"
1680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1681 echo "$ac_t""yes" 1>&6
1682 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
1683 cat >> confdefs.h <<EOF
1684 #define $ac_tr_func 1
1688 echo "$ac_t""no" 1>&6
1693 rm -f doc/config.status
1695 cat > confcache <<\EOF
1696 # This file is a shell script that caches the results of configure
1697 # tests run on this system so they can be shared between configure
1698 # scripts and configure runs. It is not useful on other systems.
1699 # If it contains results you don't want to keep, you may remove or edit it.
1701 # By default, configure uses ./config.cache as the cache file,
1702 # creating it if it does not exist already. You can give configure
1703 # the --cache-file=FILE option to use a different cache file; that is
1704 # what configure does when it calls configure scripts in
1705 # subdirectories, so they share the cache.
1706 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1707 # config.status only pays attention to the cache file if you give it the
1708 # --recheck option to rerun configure.
1711 # Ultrix sh set writes to stderr and can't be redirected directly,
1712 # and sets the high bit in the cache file unless we assign to the vars.
1714 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1716 if cmp -s $cache_file confcache; then
1719 if test -w $cache_file; then
1720 echo "updating cache $cache_file"
1721 cat confcache > $cache_file
1723 echo "not updating unwritable cache $cache_file"
1728 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1731 # Let make expand exec_prefix.
1732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1734 # Any assignment to VPATH causes Sun make to only execute
1735 # the first set of double-colon rules, so remove it if not needed.
1736 # If there is a colon in the path, we need to keep it.
1737 if test "x$srcdir" = x.; then
1738 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1741 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1743 DEFS=-DHAVE_CONFIG_H
1745 # Without the "./", some shells look in PATH for config.status.
1746 : ${CONFIG_STATUS=./config.status}
1748 echo creating $CONFIG_STATUS
1749 rm -f $CONFIG_STATUS
1750 cat > $CONFIG_STATUS <<EOF
1752 # Generated automatically by configure.
1753 # Run this file to recreate the current configuration.
1754 # This directory was configured as follows,
1755 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1757 # $0 $ac_configure_args
1759 # Compiler output produced by configure, useful for debugging
1760 # configure, is in ./config.log if it exists.
1762 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1765 case "\$ac_option" in
1766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1767 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1768 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1769 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1770 echo "$CONFIG_STATUS generated by autoconf version 2.4"
1772 -help | --help | --hel | --he | --h)
1773 echo "\$ac_cs_usage"; exit 0 ;;
1774 *) echo "\$ac_cs_usage"; exit 1 ;;
1778 ac_given_srcdir=$srcdir
1779 ac_given_INSTALL="$INSTALL"
1781 trap 'rm -fr `echo "Makefile doc/Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1783 # Protect against being on the right side of a sed subst in config.status.
1784 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1785 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1788 s%@CFLAGS@%$CFLAGS%g
1789 s%@CPPFLAGS@%$CPPFLAGS%g
1790 s%@CXXFLAGS@%$CXXFLAGS%g
1792 s%@LDFLAGS@%$LDFLAGS%g
1794 s%@exec_prefix@%$exec_prefix%g
1795 s%@prefix@%$prefix%g
1796 s%@program_transform_name@%$program_transform_name%g
1798 s%@host_alias@%$host_alias%g
1799 s%@host_cpu@%$host_cpu%g
1800 s%@host_vendor@%$host_vendor%g
1801 s%@host_os@%$host_os%g
1802 s%@target@%$target%g
1803 s%@target_alias@%$target_alias%g
1804 s%@target_cpu@%$target_cpu%g
1805 s%@target_vendor@%$target_vendor%g
1806 s%@target_os@%$target_os%g
1808 s%@build_alias@%$build_alias%g
1809 s%@build_cpu@%$build_cpu%g
1810 s%@build_vendor@%$build_vendor%g
1811 s%@build_os@%$build_os%g
1813 s%@HDEFINES@%$HDEFINES%g
1815 s%@RANLIB@%$RANLIB%g
1816 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1817 s%@INSTALL_DATA@%$INSTALL_DATA%g
1818 s%@HOST_64BIT_LONG@%$HOST_64BIT_LONG%g
1819 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1821 s%@COREFILE@%$COREFILE%g
1822 s%@COREFLAG@%$COREFLAG%g
1823 s%@TDEFINES@%$TDEFINES%g
1824 s%@wordsize@%$wordsize%g
1825 s%@all_backends@%$all_backends%g
1826 s%@bfd_backends@%$bfd_backends%g
1827 s%@bfd_machines@%$bfd_machines%g
1828 s%@tdefaults@%$tdefaults%g
1832 cat >> $CONFIG_STATUS <<EOF
1834 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile"}
1836 cat >> $CONFIG_STATUS <<\EOF
1837 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1838 # Support "outfile[:infile]", defaulting infile="outfile.in".
1840 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1841 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1842 *) ac_file_in="${ac_file}.in" ;;
1845 # Adjust relative srcdir, etc. for subdirectories.
1847 # Remove last slash and all that follows it. Not all systems have dirname.
1848 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1849 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1850 # The file is in a subdirectory.
1851 test ! -d "$ac_dir" && mkdir "$ac_dir"
1852 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1853 # A "../" for each directory in $ac_dir_suffix.
1854 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1856 ac_dir_suffix= ac_dots=
1859 case "$ac_given_srcdir" in
1861 if test -z "$ac_dots"; then top_srcdir=.
1862 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1863 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1865 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1866 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1869 case "$ac_given_INSTALL" in
1870 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1871 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1873 echo creating "$ac_file"
1875 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1877 *Makefile*) ac_comsub="1i\\
1878 # $configure_input" ;;
1882 s%@configure_input@%$configure_input%g
1883 s%@srcdir@%$srcdir%g
1884 s%@top_srcdir@%$top_srcdir%g
1885 s%@INSTALL@%$INSTALL%g
1886 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1890 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1891 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1893 # ac_d sets the value in "#define NAME VALUE" lines.
1894 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1895 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1898 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1899 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1900 ac_uB='\([ ]\)%\1#\2define\3'
1903 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1904 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1905 ac_eB='$%\1#\2define\3'
1909 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
1910 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1911 # Support "outfile[:infile]", defaulting infile="outfile.in".
1913 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1914 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1915 *) ac_file_in="${ac_file}.in" ;;
1918 echo creating $ac_file
1920 rm -f conftest.frag conftest.in conftest.out
1921 cp $ac_given_srcdir/$ac_file_in conftest.in
1925 # Transform confdefs.h into a sed script conftest.vals that substitutes
1926 # the proper values into config.h.in to produce config.h. And first:
1927 # Protect against being on the right side of a sed subst in config.status.
1928 # Protect against being in an unquoted here document in config.status.
1930 cat > conftest.hdr <<\EOF
1933 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1937 sed -n -f conftest.hdr confdefs.h > conftest.vals
1940 # This sed command replaces #undef with comments. This is necessary, for
1941 # example, in the case of _POSIX_SOURCE, which is predefined and required
1942 # on some systems where configure will not decide to define it.
1943 cat >> conftest.vals <<\EOF
1944 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1947 # Break up conftest.vals because some shells have a limit on
1948 # the size of here documents, and old seds have small limits too.
1949 # Maximum number of lines to put in a single here document.
1950 ac_max_here_lines=12
1955 ac_lines=`grep -c . conftest.vals`
1956 # grep -c gives empty output for an empty file on some AIX systems.
1957 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1958 # Write a limited-size here document to conftest.frag.
1959 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1960 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1962 sed -f conftest.frag conftest.in > conftest.out
1964 mv conftest.out conftest.in
1966 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1968 mv conftest.tail conftest.vals
1972 cat >> $CONFIG_STATUS <<\EOF
1973 rm -f conftest.frag conftest.h
1974 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1975 cat conftest.in >> conftest.h
1977 if cmp -s $ac_file conftest.h 2>/dev/null; then
1978 echo "$ac_file is unchanged"
1982 mv conftest.h $ac_file
1987 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1990 chmod +x $CONFIG_STATUS
1991 rm -fr confdefs* $ac_clean_files
1992 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1