1 dnl Process this file with autoconf to produce a configure script.
6 AC_CONFIG_SRCDIR([libbfd.c])
11 AM_INIT_AUTOMAKE(bfd, 2.19.51)
13 dnl These must be called before LT_INIT, because it may want
14 dnl to call AC_CHECK_PROG.
16 AC_CHECK_TOOL(RANLIB, ranlib, :)
18 dnl Default to a non shared library. This may be overridden by the
19 dnl configure option --enable-shared.
24 AC_USE_SYSTEM_EXTENSIONS
28 AC_ARG_ENABLE([plugins],
29 AS_HELP_STRING([--enable-plugins], [linker plugins (defaults no)]),
30 [case "${enableval}" in
31 yes | "") plugins=yes ;;
37 AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
39 if test "$plugins" = "yes"; then
40 if test "$enable_dlopen" != "yes" ; then
42 Building BFD with plugin support requires a host that supports -ldl.])
44 enable_targets="$enable_targets plugin"
49 sparc-*-solaris*|i[3-7]86-*-solaris*)
51 # On native 32bit sparc and ia32 solaris, large-file and procfs support
52 # are mutually exclusive; and without procfs support, the elf module
53 # cannot provide certain routines such as elfcore_write_prpsinfo
54 # or elfcore_write_prstatus. So unless the user explicitly requested
55 # large-file support through the --enable-largefile switch, disable
56 # large-file support in favor of procfs support.
57 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
58 if test "$plugins" = "no"; then
67 AC_ARG_ENABLE(64-bit-bfd,
68 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
69 [case "${enableval}" in
72 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
73 esac],[want64=false])dnl
75 AC_ARG_ENABLE(targets,
76 [ --enable-targets alternative target configurations],
77 [case "${enableval}" in
78 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
80 no) enable_targets= ;;
81 *) enable_targets=$enableval ;;
85 [ --with-mmap try using mmap for BFD input files if available],
87 yes) want_mmap=true ;;
88 no) want_mmap=false ;;
89 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
90 esac],[want_mmap=false])dnl
92 AC_ARG_ENABLE(secureplt,
93 [ --enable-secureplt Default to creating read-only plt entries],
94 [case "${enableval}" in
95 yes) use_secureplt=true ;;
96 no) use_secureplt=false ;;
97 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
98 esac],[use_secureplt=false])dnl
99 if test $use_secureplt = true; then
100 AC_DEFINE(USE_SECUREPLT, 1,
101 [Define if we should default to creating read-only plt entries])
104 DEBUGDIR=${libdir}/debug
105 AC_ARG_WITH(separate-debug-dir,
106 AS_HELP_STRING([--with-separate-debug-dir=DIR],
107 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
108 [DEBUGDIR="${withval}"])
111 # Check to see if we should allow the generation of
112 # symbols with the ELF standard's STT_COMMON type.
113 AC_ARG_ENABLE(elf-stt-common,
114 [ --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type],
115 [case "${enableval}" in
116 yes) want_elf_stt_common=true ;;
117 no) want_elf_stt_common=false ;;
118 *) AC_MSG_ERROR(bad value ${enableval} for ELF STT_COMMON option) ;;
120 # We have to choose a default behaviour. For native builds we could
121 # test whether the loader supports the STT_COMMON type, but that would
122 # mean that built binaries could not be exported to older systems where
123 # the loader does not support it. So by default we always choose to
124 # disable this feature.
125 want_elf_stt_common=false)dnl
126 if test $want_elf_stt_common = true; then
127 AC_DEFINE(USE_STT_COMMON, 1,
128 [Define if we may generate symbols with ELF's STT_COMMON type])
131 ACX_PKGVERSION([GNU Binutils])
132 ACX_BUGURL([http://www.sourceware.org/bugzilla/])
136 AC_CONFIG_HEADERS(config.h:config.in)
138 if test -z "$target" ; then
139 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
143 AM_CONDITIONAL(GENINSRC_NEVER, false)
149 bfd_default_target_size=32
153 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
154 ZW_GNU_GETTEXT_SISTER_DIR
157 # Permit host specific settings.
158 . ${srcdir}/configure.host
163 BFD_HOST_64BIT_LONG=0
164 BFD_HOST_64BIT_LONG_LONG=0
165 BFD_HOST_64_BIT_DEFINED=0
168 BFD_HOSTPTR_T="unsigned long"
170 AC_CHECK_SIZEOF(long long)
171 AC_CHECK_SIZEOF(void *)
172 AC_CHECK_SIZEOF(long)
174 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
178 if test "x${ac_cv_sizeof_long}" = "x8"; then
179 BFD_HOST_64BIT_LONG=1
180 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
181 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
182 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
183 BFD_HOST_64BIT_LONG_LONG=1
184 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
185 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
186 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
187 BFD_HOSTPTR_T="unsigned long long"
191 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
192 BFD_HOST_64_BIT_DEFINED=1
193 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
194 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
197 AC_SUBST(BFD_HOST_64BIT_LONG)
198 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
199 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
200 AC_SUBST(BFD_HOST_64_BIT)
201 AC_SUBST(BFD_HOST_U_64_BIT)
202 AC_SUBST(BFD_HOSTPTR_T)
206 AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h)
207 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
208 GCC_HEADER_STDINT(bfd_stdint.h)
212 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
213 AC_CHECK_FUNCS(strtoull)
215 AC_CHECK_DECLS(basename)
216 AC_CHECK_DECLS(ftello)
217 AC_CHECK_DECLS(ftello64)
218 AC_CHECK_DECLS(fseeko)
219 AC_CHECK_DECLS(fseeko64)
225 AC_CHECK_DECLS(getenv)
226 AC_CHECK_DECLS(malloc)
227 AC_CHECK_DECLS(realloc)
228 AC_CHECK_DECLS(stpcpy)
229 AC_CHECK_DECLS(strstr)
230 AC_CHECK_DECLS(snprintf)
231 AC_CHECK_DECLS(vsnprintf)
233 # Link in zlib if we can. This allows us to read compressed debug sections.
234 # This is used only by compress.c.
235 AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
237 # If we are configured native, pick a core file support file.
241 if test "${target}" = "${host}"; then
243 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
247 COREFILE=trad-core.lo
248 TRAD_HEADER='"hosts/alphalinux.h"'
250 alpha*-*-netbsd* | alpha*-*-openbsd*)
251 COREFILE=netbsd-core.lo
253 alpha*-*-*) COREFILE=osf-core.lo ;;
254 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
256 arm-*-netbsd* | arm-*-openbsd*)
257 COREFILE=netbsd-core.lo
259 arm-*-riscix) COREFILE=trad-core.lo ;;
260 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
261 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
262 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
263 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
264 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
265 hppa*-*-netbsd* | hppa*-*-openbsd*)
266 COREFILE=netbsd-core.lo
270 COREFILE=trad-core.lo
271 TRAD_HEADER='"hosts/i370linux.h"'
275 i[3-7]86-sequent-bsd*)
277 COREFILE=trad-core.lo
278 TRAD_HEADER='"hosts/symmetry.h"'
281 i[3-7]86-sequent-sysv4*) ;;
282 i[3-7]86-sequent-sysv*)
284 COREFILE=trad-core.lo
285 TRAD_HEADER='"hosts/symmetry.h"'
293 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
295 COREFILE=trad-core.lo
296 TRAD_HEADER='"hosts/i386bsd.h"'
299 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
302 TRAD_HEADER='"hosts/i386bsd.h"'
305 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
307 COREFILE=netbsd-core.lo
310 i[3-7]86-esix-sysv3*)
312 COREFILE=trad-core.lo
313 TRAD_HEADER='"hosts/esix.h"'
316 i[3-7]86-*-sco3.2v5*)
318 COREFILE=sco5-core.lo
321 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
323 COREFILE=trad-core.lo
324 TRAD_HEADER='"hosts/i386sco.h"'
329 COREFILE=trad-core.lo
330 TRAD_HEADER='"hosts/i386mach3.h"'
335 COREFILE=trad-core.lo
336 TRAD_HEADER='"hosts/i386linux.h"'
339 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
340 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
342 i860-*-mach3* | i860-*-osf1*)
343 COREFILE=trad-core.lo
344 TRAD_HEADER='"hosts/i860mach3.h"'
346 mips-*-netbsd* | mips*-*-openbsd*)
347 COREFILE=netbsd-core.lo
350 COREFILE=trad-core.lo
351 TRAD_HEADER='"hosts/decstation.h"'
353 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
354 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
355 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
357 mips-*-sysv* | mips-*-riscos*)
358 COREFILE=trad-core.lo
359 TRAD_HEADER='"hosts/riscos.h"'
362 COREFILE=trad-core.lo
363 TRAD_HEADER='"hosts/news-mips.h"'
366 COREFILE=trad-core.lo
367 TRAD_HEADER='"hosts/dpx2.h"'
369 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
371 COREFILE=trad-core.lo
372 TRAD_HEADER='"hosts/hp300bsd.h"'
375 COREFILE=trad-core.lo
376 TRAD_HEADER='"hosts/m68klinux.h"'
379 COREFILE=trad-core.lo
380 TRAD_HEADER='"hosts/delta68.h"'
383 COREFILE=trad-core.lo
384 TRAD_HEADER='"hosts/news.h"'
386 m68*-*-netbsd* | m68*-*-openbsd*)
387 COREFILE=netbsd-core.lo
390 COREFILE=trad-core.lo
391 TRAD_HEADER='"hosts/m68kaux.h"'
396 COREFILE=ptrace-core.lo
399 COREFILE=trad-core.lo
400 TRAD_HEADER='"hosts/m88kmach3.h"'
403 COREFILE=netbsd-core.lo
406 COREFILE=trad-core.lo
407 TRAD_HEADER='"hosts/pc532mach.h"'
409 ns32k-*-netbsd* | ns32k-*-openbsd*)
410 COREFILE=netbsd-core.lo
413 COREFILE=lynx-core.lo
416 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
418 COREFILE=rs6000-core.lo
419 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
422 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
424 COREFILE=rs6000-core.lo
425 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
426 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
427 # have c_impl as a member of struct core_dumpx
428 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
429 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
430 [Define if struct core_dumpx has member c_impl])
431 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
433 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
434 rs6000-*-*) COREFILE=rs6000-core.lo ;;
435 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
436 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
438 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
440 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
441 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
442 s390*-*-*) COREFILE=trad-core.lo ;;
443 sh*-*-netbsd* | sh*-*-openbsd*)
444 COREFILE=netbsd-core.lo
446 sparc-*-netbsd* | sparc*-*-openbsd*)
447 COREFILE=netbsd-core.lo
450 COREFILE=trad-core.lo
451 TRAD_HEADER='"hosts/tahoe.h"'
453 vax-*-netbsd* | vax-*-openbsd*)
454 COREFILE=netbsd-core.lo
457 COREFILE=trad-core.lo
458 TRAD_HEADER='"hosts/vaxult2.h"'
461 COREFILE=trad-core.lo
462 TRAD_HEADER='"hosts/vaxult2.h"'
465 COREFILE=trad-core.lo
466 TRAD_HEADER='"hosts/vaxlinux.h"'
469 COREFILE=trad-core.lo
470 TRAD_HEADER='"hosts/vaxbsd.h"'
472 x86_64-*-netbsd* | x86_64-*-openbsd*)
473 COREFILE=netbsd-core.lo
478 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
479 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
480 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
481 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
482 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
483 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
484 osf-core.lo) COREFLAG=-DOSF_CORE ;;
485 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
486 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
487 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
488 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
491 # ELF corefile support has several flavors, but all of
492 # them use something called <sys/procfs.h>
493 AC_CHECK_HEADERS(sys/procfs.h)
494 if test "$ac_cv_header_sys_procfs_h" = yes; then
495 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
496 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
497 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
498 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
499 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
500 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
501 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
502 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
503 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
504 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
505 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
506 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
507 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
508 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
509 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
510 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
515 if test -n "$TRAD_HEADER"; then
516 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
517 [Name of host specific header file to include in trad-core.c.])
520 # Check if linker supports --as-needed and --no-as-needed options
521 AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
522 [bfd_cv_ld_as_needed=no
523 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
524 bfd_cv_ld_as_needed=yes
530 # When building a shared libbfd, link against the pic version of libiberty
531 # so that apps that use libbfd won't need libiberty just to satisfy any
533 # We can't do that if a pic libiberty is unavailable since including non-pic
534 # code would insert text relocations into libbfd.
537 if test "$enable_shared" = "yes"; then
539 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
541 if test -n "$x"; then
542 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
545 # More hacks to build DLLs on Windows.
548 SHARED_LDFLAGS="-no-undefined"
549 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
553 if test -n "$SHARED_LIBADD"; then
554 if test -n "$LIBM"; then
555 if test x"$bfd_cv_ld_as_needed" = xyes; then
556 # Link against libm only when needed. Put -lc, -lm inside -Wl
557 # to stop libtool reordering these options.
558 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
560 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
565 AC_SUBST(SHARED_LDFLAGS)
566 AC_SUBST(SHARED_LIBADD)
570 # Canonicalize the secondary target names.
571 if test -n "$enable_targets" ; then
572 for targ in `echo $enable_targets | sed 's/,/ /g'`
574 result=`$ac_config_sub $targ 2>/dev/null`
575 if test -n "$result" ; then
576 canon_targets="$canon_targets $result"
578 # Allow targets that config.sub doesn't recognize, like "all".
579 canon_targets="$canon_targets $targ"
590 for targ in $target $canon_targets
592 if test "x$targ" = "xall"; then
594 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
597 if test "x$targ" = "x$target"; then
600 selvecs="$selvecs $targ_defvec $targ_selvecs"
601 selarchs="$selarchs $targ_archs"
602 TDEFINES="$TDEFINES $targ_cflags"
607 # This processing still needs to be done if we're to decide properly whether
608 # 64-bit support needs to be compiled in. Currently, it will be included if
609 # the default or any other explicitly requested target requires it; it
610 # will not be included on a 32-bit host if no 64-bit target is requested, and
611 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
614 # uniq the default and selected vectors in all the configured targets.
616 for i in $selvecs ; do
625 # uniq the associated vectors in all the configured targets.
627 for i in $assocvecs ; do
636 # uniq the architectures in all the configured targets.
638 for i in $selarchs ; do
646 # Target backend .o files.
649 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
655 # This list is alphabetized to make it easy to compare
656 # with the two vector lists in targets.c. For the same reason,
657 # use one entry per line, even though this leads to long lines.
658 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
659 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
660 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
661 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
662 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
663 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
664 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
665 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
666 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
667 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
668 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
669 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
670 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
671 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
672 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
673 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
674 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
675 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
676 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
677 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
678 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
679 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
680 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
681 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
682 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
683 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
684 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
685 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
686 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
687 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
688 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
689 bfd_elf32_bigarm_symbian_vec)
690 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
691 bfd_elf32_bigarm_vxworks_vec)
692 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
693 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
694 bfd_elf32_bigmips_vxworks_vec)
695 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
696 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
697 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
698 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
699 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
700 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
701 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
702 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
703 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
704 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
705 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
706 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
707 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
708 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
709 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
710 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
711 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
712 bfd_elf32_i386_dragonfly_vec)
713 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
714 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
715 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
716 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
717 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
718 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
719 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
720 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
721 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
722 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
723 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
724 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
725 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
726 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
727 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
728 bfd_elf32_littlearm_symbian_vec)
729 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
730 bfd_elf32_littlearm_vxworks_vec)
731 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
732 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
733 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
734 bfd_elf32_littlemips_vxworks_vec)
735 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
736 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
737 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
738 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
739 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
740 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
741 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
742 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
743 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
744 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
745 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
746 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
747 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
748 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
749 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
750 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
751 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
752 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
753 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
754 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
755 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
756 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
757 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
758 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
759 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
760 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
761 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
762 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
763 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
764 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
765 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
766 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
767 # FIXME: We include cofflink.lo not because it's needed for
768 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
769 # which needs it but does not list it. Should be fixed in right place.
770 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
771 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
772 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
773 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
774 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
775 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
776 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
777 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
778 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
779 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
780 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
781 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
782 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
783 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
784 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
785 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
786 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
787 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
788 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
789 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
790 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
791 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
792 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
793 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
794 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
795 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
796 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
797 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
798 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
799 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
800 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
801 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
802 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
803 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
804 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
805 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
806 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf vmsutil.lo"; target_size=64 ;;
807 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
808 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
809 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
810 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
811 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
812 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
813 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
814 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
815 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
816 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
817 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
818 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
819 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
820 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
821 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
822 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
823 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
824 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
825 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
826 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
827 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
828 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
829 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
830 cris_aout_vec) tb="$tb aout-cris.lo" ;;
831 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
832 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
833 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
834 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
835 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
836 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
837 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
838 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
839 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
840 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
841 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
842 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
843 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
844 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
845 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
846 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
847 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
848 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
849 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
850 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
851 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
852 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
853 i386msdos_vec) tb="$tb i386msdos.lo" ;;
854 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
855 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
856 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
857 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
858 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
859 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
860 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
861 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
862 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
863 ieee_vec) tb="$tb ieee.lo" ;;
864 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
865 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
866 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
867 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
868 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
869 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
870 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
871 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
872 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
873 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
874 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
875 mach_o_be_vec) tb="$tb mach-o.lo" ;;
876 mach_o_le_vec) tb="$tb mach-o.lo" ;;
877 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
878 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
879 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
880 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
881 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
882 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
883 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
884 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
885 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
886 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
887 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
888 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
889 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
890 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
891 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
892 pef_vec) tb="$tb pef.lo" ;;
893 pef_xlib_vec) tb="$tb pef.lo" ;;
894 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
895 plugin_vec) tb="$tb plugin.lo" ;;
896 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
897 ppcboot_vec) tb="$tb ppcboot.lo" ;;
898 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
899 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
900 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
901 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
902 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
903 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
904 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
905 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
906 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
907 som_vec) tb="$tb som.lo" ;;
908 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
909 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
910 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
911 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
912 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
913 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
914 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
915 sym_vec) tb="$tb xsym.lo" ;;
916 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
917 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
918 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
919 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
920 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
921 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
922 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
923 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
924 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
925 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
926 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
927 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
928 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
929 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
930 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
931 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
932 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
933 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
934 versados_vec) tb="$tb versados.lo" ;;
935 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
936 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
937 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
938 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
939 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
940 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
942 # These appear out of order in targets.c
943 srec_vec) tb="$tb srec.lo" ;;
944 symbolsrec_vec) tb="$tb srec.lo" ;;
945 tekhex_vec) tb="$tb tekhex.lo" ;;
946 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
947 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
950 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
953 if test ${target_size} = 64; then
956 if test x"${vec}" = x"${defvec}"; then
957 bfd_default_target_size=${target_size}
961 # Target architecture .o files.
962 # A couple of CPUs use shorter file names to avoid problems on DOS
964 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
966 # Weed out duplicate .o files.
988 if test x${all_targets} = xtrue ; then
989 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
990 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
994 test -n "$assocvecs" &&
995 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
996 else # all_targets is true
997 # Only set these if they will be nonempty, for the clever echo.
1000 test -n "$selvecs" &&
1001 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
1002 test -n "$selvecs" &&
1003 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1004 test -n "$selarchs" &&
1005 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1006 fi # all_targets is true
1008 case ${host64}-${target64}-${want64} in
1011 bfd64_libs='$(BFD64_LIBS)'
1012 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
1013 if test $BFD_HOST_64_BIT_DEFINED = 0; then
1014 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
1015 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
1017 if test -n "$GCC" ; then
1019 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
1020 # Add more tests for gcc versions with non-working 64-bit support here.
1021 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
1023 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
1025 if test $bad_64bit_gcc = yes ; then
1026 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
1032 all_backends='$(BFD32_BACKENDS)'
1037 AC_SUBST(bfd64_libs)
1038 AC_SUBST(all_backends)
1039 AC_SUBST(bfd_backends)
1040 AC_SUBST(bfd_machines)
1041 AC_SUBST(bfd_default_target_size)
1043 if test "$plugins" = "yes"; then
1048 AC_SUBST(supports_plugins)
1050 # Determine the host dependant file_ptr a.k.a. off_t type. In order
1051 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1052 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1053 # Hopefully a reasonable assumption since fseeko et.al. should be
1054 # upward compatible.
1055 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1056 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
1057 AC_CHECK_SIZEOF(off_t)
1059 AC_MSG_CHECKING([file_ptr type])
1061 bfd_ufile_ptr="unsigned long"
1062 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1063 -o x"${ac_cv_sizeof_off_t}" = x8; then
1064 bfd_file_ptr=BFD_HOST_64_BIT
1065 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1067 AC_MSG_RESULT($bfd_file_ptr)
1068 AC_SUBST(bfd_file_ptr)
1069 AC_SUBST(bfd_ufile_ptr)
1073 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
1074 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
1075 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
1076 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
1077 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
1080 dnl AC_CHECK_HEADERS(sys/mman.h)
1082 AC_CHECK_FUNCS(madvise mprotect)
1083 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1084 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1087 rm -f doc/config.status
1088 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1090 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1091 dnl our two separate POTFILES. Yuck.
1092 AC_CONFIG_COMMANDS([default],
1096 *) srcdirpre='$(srcdir)/' ;;
1100 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1101 if test $lang != dummy; then
1102 POFILES="$POFILES $srcdirpre$lang.po"
1103 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1106 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1107 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1108 -e "s,@POFILES@,$POFILES," \
1109 -e "s,@GMOFILES@,$GMOFILES," \
1110 po/Makefile.in > po/Makefile]],[[]])
1112 dnl Required by html, pdf, install-pdf and install-html
1113 AC_SUBST(datarootdir)