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 sparc-*-solaris*|i[3-7]86-*-solaris*)
30 # On native 32bit sparc and ia32 solaris, large-file and procfs support
31 # are mutually exclusive; and without procfs support, the elf module
32 # cannot provide certain routines such as elfcore_write_prpsinfo
33 # or elfcore_write_prstatus. So unless the user explicitly requested
34 # large-file support through the --enable-largefile switch, disable
35 # large-file support in favor of procfs support.
36 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
46 AC_ARG_ENABLE(64-bit-bfd,
47 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
48 [case "${enableval}" in
51 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
52 esac],[want64=false])dnl
54 AC_ARG_ENABLE(targets,
55 [ --enable-targets alternative target configurations],
56 [case "${enableval}" in
57 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
59 no) enable_targets= ;;
60 *) enable_targets=$enableval ;;
63 AC_ARG_ENABLE(commonbfdlib,
64 [ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
65 [case "${enableval}" in
66 yes) commonbfdlib=true ;;
67 no) commonbfdlib=false ;;
68 *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
72 [ --with-mmap try using mmap for BFD input files if available],
74 yes) want_mmap=true ;;
75 no) want_mmap=false ;;
76 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
77 esac],[want_mmap=false])dnl
79 AC_ARG_ENABLE(secureplt,
80 [ --enable-secureplt Default to creating read-only plt entries],
81 [case "${enableval}" in
82 yes) use_secureplt=true ;;
83 no) use_secureplt=false ;;
84 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
85 esac],[use_secureplt=false])dnl
86 if test $use_secureplt = true; then
87 AC_DEFINE(USE_SECUREPLT, 1,
88 [Define if we should default to creating read-only plt entries])
91 DEBUGDIR=${libdir}/debug
92 AC_ARG_WITH(separate-debug-dir,
93 AS_HELP_STRING([--with-separate-debug-dir=DIR],
94 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
95 [DEBUGDIR="${withval}"])
98 # Check to see if we should allow the generation of
99 # symbols with the ELF standard's STT_COMMON type.
100 AC_ARG_ENABLE(elf-stt-common,
101 [ --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type],
102 [case "${enableval}" in
103 yes) want_elf_stt_common=true ;;
104 no) want_elf_stt_common=false ;;
105 *) AC_MSG_ERROR(bad value ${enableval} for ELF STT_COMMON option) ;;
107 # We have to choose a default behaviour. For native builds we could
108 # test whether the loader supports the STT_COMMON type, but that would
109 # mean that built binaries could not be exported to older systems where
110 # the loader does not support it. So by default we always choose to
111 # disable this feature.
112 want_elf_stt_common=false)dnl
113 if test $want_elf_stt_common = true; then
114 AC_DEFINE(USE_STT_COMMON, 1,
115 [Define if we may generate symbols with ELF's STT_COMMON type])
118 ACX_PKGVERSION([GNU Binutils])
119 ACX_BUGURL([http://www.sourceware.org/bugzilla/])
123 AC_CONFIG_HEADERS(config.h:config.in)
125 if test -z "$target" ; then
126 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
130 AM_CONDITIONAL(GENINSRC_NEVER, false)
136 bfd_default_target_size=32
140 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
141 ZW_GNU_GETTEXT_SISTER_DIR
144 # Permit host specific settings.
145 . ${srcdir}/configure.host
150 BFD_HOST_64BIT_LONG=0
151 BFD_HOST_64BIT_LONG_LONG=0
152 BFD_HOST_64_BIT_DEFINED=0
155 BFD_HOSTPTR_T="unsigned long"
157 AC_CHECK_SIZEOF(long long)
158 AC_CHECK_SIZEOF(void *)
159 AC_CHECK_SIZEOF(long)
161 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
165 if test "x${ac_cv_sizeof_long}" = "x8"; then
166 BFD_HOST_64BIT_LONG=1
167 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
168 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
169 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
170 BFD_HOST_64BIT_LONG_LONG=1
171 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
172 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
173 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
174 BFD_HOSTPTR_T="unsigned long long"
178 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
179 BFD_HOST_64_BIT_DEFINED=1
180 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
181 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
184 AC_SUBST(BFD_HOST_64BIT_LONG)
185 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
186 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
187 AC_SUBST(BFD_HOST_64_BIT)
188 AC_SUBST(BFD_HOST_U_64_BIT)
189 AC_SUBST(BFD_HOSTPTR_T)
193 AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h)
194 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
195 GCC_HEADER_STDINT(bfd_stdint.h)
199 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
200 AC_CHECK_FUNCS(strtoull)
202 AC_CHECK_DECLS(basename)
203 AC_CHECK_DECLS(ftello)
204 AC_CHECK_DECLS(ftello64)
205 AC_CHECK_DECLS(fseeko)
206 AC_CHECK_DECLS(fseeko64)
212 AC_CHECK_DECLS(getenv)
213 AC_CHECK_DECLS(malloc)
214 AC_CHECK_DECLS(realloc)
215 AC_CHECK_DECLS(stpcpy)
216 AC_CHECK_DECLS(strstr)
217 AC_CHECK_DECLS(snprintf)
218 AC_CHECK_DECLS(vsnprintf)
220 # Link in zlib if we can. This allows us to read compressed debug sections.
221 # This is used only by compress.c.
222 AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
224 # If we are configured native, pick a core file support file.
228 if test "${target}" = "${host}"; then
230 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
234 COREFILE=trad-core.lo
235 TRAD_HEADER='"hosts/alphalinux.h"'
237 alpha*-*-netbsd* | alpha*-*-openbsd*)
238 COREFILE=netbsd-core.lo
240 alpha*-*-*) COREFILE=osf-core.lo ;;
241 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
243 arm-*-netbsd* | arm-*-openbsd*)
244 COREFILE=netbsd-core.lo
246 arm-*-riscix) COREFILE=trad-core.lo ;;
247 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
248 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
249 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
250 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
251 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
252 hppa*-*-netbsd* | hppa*-*-openbsd*)
253 COREFILE=netbsd-core.lo
257 COREFILE=trad-core.lo
258 TRAD_HEADER='"hosts/i370linux.h"'
262 i[3-7]86-sequent-bsd*)
264 COREFILE=trad-core.lo
265 TRAD_HEADER='"hosts/symmetry.h"'
268 i[3-7]86-sequent-sysv4*) ;;
269 i[3-7]86-sequent-sysv*)
271 COREFILE=trad-core.lo
272 TRAD_HEADER='"hosts/symmetry.h"'
280 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*)
282 COREFILE=trad-core.lo
283 TRAD_HEADER='"hosts/i386bsd.h"'
286 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
289 TRAD_HEADER='"hosts/i386bsd.h"'
292 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
294 COREFILE=netbsd-core.lo
297 i[3-7]86-esix-sysv3*)
299 COREFILE=trad-core.lo
300 TRAD_HEADER='"hosts/esix.h"'
303 i[3-7]86-*-sco3.2v5*)
305 COREFILE=sco5-core.lo
308 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
310 COREFILE=trad-core.lo
311 TRAD_HEADER='"hosts/i386sco.h"'
316 COREFILE=trad-core.lo
317 TRAD_HEADER='"hosts/i386mach3.h"'
322 COREFILE=trad-core.lo
323 TRAD_HEADER='"hosts/i386linux.h"'
326 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
327 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
329 i860-*-mach3* | i860-*-osf1*)
330 COREFILE=trad-core.lo
331 TRAD_HEADER='"hosts/i860mach3.h"'
333 mips-*-netbsd* | mips*-*-openbsd*)
334 COREFILE=netbsd-core.lo
337 COREFILE=trad-core.lo
338 TRAD_HEADER='"hosts/decstation.h"'
340 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
341 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
342 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
344 mips-*-sysv* | mips-*-riscos*)
345 COREFILE=trad-core.lo
346 TRAD_HEADER='"hosts/riscos.h"'
349 COREFILE=trad-core.lo
350 TRAD_HEADER='"hosts/news-mips.h"'
353 COREFILE=trad-core.lo
354 TRAD_HEADER='"hosts/dpx2.h"'
356 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
358 COREFILE=trad-core.lo
359 TRAD_HEADER='"hosts/hp300bsd.h"'
362 COREFILE=trad-core.lo
363 TRAD_HEADER='"hosts/m68klinux.h"'
366 COREFILE=trad-core.lo
367 TRAD_HEADER='"hosts/delta68.h"'
370 COREFILE=trad-core.lo
371 TRAD_HEADER='"hosts/news.h"'
373 m68*-*-netbsd* | m68*-*-openbsd*)
374 COREFILE=netbsd-core.lo
377 COREFILE=trad-core.lo
378 TRAD_HEADER='"hosts/m68kaux.h"'
383 COREFILE=ptrace-core.lo
386 COREFILE=trad-core.lo
387 TRAD_HEADER='"hosts/m88kmach3.h"'
390 COREFILE=netbsd-core.lo
393 COREFILE=trad-core.lo
394 TRAD_HEADER='"hosts/pc532mach.h"'
396 ns32k-*-netbsd* | ns32k-*-openbsd*)
397 COREFILE=netbsd-core.lo
400 COREFILE=lynx-core.lo
402 rs6000-*-aix5.* | powerpc-*-aix5.*)
403 COREFILE=rs6000-core.lo
404 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
407 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
409 COREFILE=rs6000-core.lo
410 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
411 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
412 # have c_impl as a member of struct core_dumpx
413 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
414 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
415 [Define if struct core_dumpx has member c_impl])
416 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
418 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
419 rs6000-*-*) COREFILE=rs6000-core.lo ;;
420 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
421 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
423 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
425 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
426 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
427 s390*-*-*) COREFILE=trad-core.lo ;;
428 sh*-*-netbsd* | sh*-*-openbsd*)
429 COREFILE=netbsd-core.lo
431 sparc-*-netbsd* | sparc*-*-openbsd*)
432 COREFILE=netbsd-core.lo
435 COREFILE=trad-core.lo
436 TRAD_HEADER='"hosts/tahoe.h"'
438 vax-*-netbsd* | vax-*-openbsd*)
439 COREFILE=netbsd-core.lo
442 COREFILE=trad-core.lo
443 TRAD_HEADER='"hosts/vaxult2.h"'
446 COREFILE=trad-core.lo
447 TRAD_HEADER='"hosts/vaxult2.h"'
450 COREFILE=trad-core.lo
451 TRAD_HEADER='"hosts/vaxlinux.h"'
454 COREFILE=trad-core.lo
455 TRAD_HEADER='"hosts/vaxbsd.h"'
457 x86_64-*-netbsd* | x86_64-*-openbsd*)
458 COREFILE=netbsd-core.lo
463 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
464 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
465 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
466 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
467 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
468 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
469 osf-core.lo) COREFLAG=-DOSF_CORE ;;
470 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
471 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
472 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
473 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
476 # ELF corefile support has several flavors, but all of
477 # them use something called <sys/procfs.h>
478 AC_CHECK_HEADERS(sys/procfs.h)
479 if test "$ac_cv_header_sys_procfs_h" = yes; then
480 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
481 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
482 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
483 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
484 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
485 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
486 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
487 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
488 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
489 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
490 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
491 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
492 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
493 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
494 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
495 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
500 if test -n "$TRAD_HEADER"; then
501 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
502 [Name of host specific header file to include in trad-core.c.])
505 # Horrible hacks to build DLLs on Windows.
510 if test "$enable_shared" = "yes"; then
511 WIN32LDFLAGS="-no-undefined"
512 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
516 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
519 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
521 if test -n "$x"; then
522 WIN32LIBADD="-L../libiberty/pic -liberty"
526 AC_SUBST(WIN32LDFLAGS)
527 AC_SUBST(WIN32LIBADD)
531 # Canonicalize the secondary target names.
532 if test -n "$enable_targets" ; then
533 for targ in `echo $enable_targets | sed 's/,/ /g'`
535 result=`$ac_config_sub $targ 2>/dev/null`
536 if test -n "$result" ; then
537 canon_targets="$canon_targets $result"
539 # Allow targets that config.sub doesn't recognize, like "all".
540 canon_targets="$canon_targets $targ"
551 for targ in $target $canon_targets
553 if test "x$targ" = "xall"; then
555 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
558 if test "x$targ" = "x$target"; then
561 selvecs="$selvecs $targ_defvec $targ_selvecs"
562 selarchs="$selarchs $targ_archs"
563 TDEFINES="$TDEFINES $targ_cflags"
568 # This processing still needs to be done if we're to decide properly whether
569 # 64-bit support needs to be compiled in. Currently, it will be included if
570 # the default or any other explicitly requested target requires it; it
571 # will not be included on a 32-bit host if no 64-bit target is requested, and
572 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
575 # uniq the default and selected vectors in all the configured targets.
577 for i in $selvecs ; do
586 # uniq the associated vectors in all the configured targets.
588 for i in $assocvecs ; do
597 # uniq the architectures in all the configured targets.
599 for i in $selarchs ; do
607 # Target backend .o files.
610 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
616 # This list is alphabetized to make it easy to compare
617 # with the two vector lists in targets.c. For the same reason,
618 # use one entry per line, even though this leads to long lines.
619 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
620 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
621 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
622 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
623 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
624 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
625 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
626 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
627 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
628 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
629 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
630 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
631 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
632 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
633 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
634 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
635 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
636 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
637 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
638 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
639 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
640 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
641 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
642 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
643 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
644 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
645 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
646 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
647 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
648 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
649 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
650 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
651 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
652 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
653 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
654 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
655 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
656 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
657 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
658 bfd_elf32_bigarm_symbian_vec)
659 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
660 bfd_elf32_bigarm_vxworks_vec)
661 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
662 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
663 bfd_elf32_bigmips_vxworks_vec)
664 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
665 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
666 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
667 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
668 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
669 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
670 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
671 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
672 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
673 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
674 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
675 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
676 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
677 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
678 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
679 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
680 bfd_elf32_i386_dragonfly_vec)
681 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
682 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
683 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
684 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
685 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
686 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
687 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
688 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
689 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
690 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
691 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
692 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
693 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
694 bfd_elf32_littlearm_symbian_vec)
695 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
696 bfd_elf32_littlearm_vxworks_vec)
697 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
698 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
699 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
700 bfd_elf32_littlemips_vxworks_vec)
701 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
702 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
703 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
704 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
705 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
706 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
707 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
708 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
709 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
710 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
711 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
712 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
713 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
714 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
715 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
716 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
717 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
718 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
719 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
720 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
721 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
722 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
723 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
724 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
725 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
726 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
727 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
728 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
729 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
730 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
731 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
732 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
733 # FIXME: We include cofflink.lo not because it's needed for
734 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
735 # which needs it but does not list it. Should be fixed in right place.
736 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
737 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
738 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
739 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
740 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
741 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
742 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
743 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
744 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
745 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
746 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
747 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
748 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
749 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
750 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
751 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
752 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
753 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
754 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
755 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
756 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
757 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
758 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
759 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
760 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
761 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
762 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
763 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
764 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
765 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
766 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 ;;
767 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
768 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
769 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
770 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
771 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
772 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
773 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 ;;
774 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
775 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
776 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
777 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
778 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
779 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
780 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
781 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
782 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
783 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
784 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
785 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
786 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 ;;
787 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 ;;
788 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
789 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
790 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
791 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
792 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
793 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
794 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
795 cris_aout_vec) tb="$tb aout-cris.lo" ;;
796 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
797 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
798 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
799 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
800 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
801 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
802 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
803 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
804 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
805 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
806 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
807 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
808 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
809 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
810 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
811 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
812 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
813 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
814 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
815 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
816 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
817 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
818 i386msdos_vec) tb="$tb i386msdos.lo" ;;
819 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
820 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
821 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
822 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
823 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
824 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
825 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
826 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
827 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
828 ieee_vec) tb="$tb ieee.lo" ;;
829 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
830 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
831 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
832 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
833 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
834 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
835 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
836 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
837 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
838 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
839 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
840 mach_o_be_vec) tb="$tb mach-o.lo" ;;
841 mach_o_le_vec) tb="$tb mach-o.lo" ;;
842 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
843 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
844 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
845 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
846 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
847 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
848 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
849 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
850 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
851 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
852 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
853 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
854 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
855 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
856 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
857 pef_vec) tb="$tb pef.lo" ;;
858 pef_xlib_vec) tb="$tb pef.lo" ;;
859 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
860 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
861 ppcboot_vec) tb="$tb ppcboot.lo" ;;
862 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
863 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
864 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
865 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
866 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
867 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
868 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
869 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
870 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
871 som_vec) tb="$tb som.lo" ;;
872 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
873 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
874 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
875 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
876 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
877 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
878 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
879 sym_vec) tb="$tb xsym.lo" ;;
880 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
881 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
882 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
883 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
884 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
885 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
886 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
887 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
888 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
889 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
890 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
891 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
892 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
893 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
894 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
895 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
896 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
897 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
898 versados_vec) tb="$tb versados.lo" ;;
899 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
900 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
901 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
902 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
903 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
904 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
906 # These appear out of order in targets.c
907 srec_vec) tb="$tb srec.lo" ;;
908 symbolsrec_vec) tb="$tb srec.lo" ;;
909 tekhex_vec) tb="$tb tekhex.lo" ;;
910 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
911 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
914 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
917 if test ${target_size} = 64; then
920 if test x"${vec}" = x"${defvec}"; then
921 bfd_default_target_size=${target_size}
925 # Target architecture .o files.
926 # A couple of CPUs use shorter file names to avoid problems on DOS
928 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
930 # Weed out duplicate .o files.
952 if test x${all_targets} = xtrue ; then
953 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
954 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
958 test -n "$assocvecs" &&
959 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
960 else # all_targets is true
961 # Only set these if they will be nonempty, for the clever echo.
964 test -n "$selvecs" &&
965 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
966 test -n "$selvecs" &&
967 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
968 test -n "$selarchs" &&
969 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
970 fi # all_targets is true
972 case ${host64}-${target64}-${want64} in
975 bfd64_libs='$(BFD64_LIBS)'
976 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
977 if test $BFD_HOST_64_BIT_DEFINED = 0; then
978 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
979 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
981 if test -n "$GCC" ; then
983 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
984 # Add more tests for gcc versions with non-working 64-bit support here.
985 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
987 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
989 if test $bad_64bit_gcc = yes ; then
990 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
996 all_backends='$(BFD32_BACKENDS)'
1001 AC_SUBST(bfd64_libs)
1002 AC_SUBST(all_backends)
1003 AC_SUBST(bfd_backends)
1004 AC_SUBST(bfd_machines)
1005 AC_SUBST(bfd_default_target_size)
1007 # Determine the host dependant file_ptr a.k.a. off_t type. In order
1008 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1009 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1010 # Hopefully a reasonable assumption since fseeko et.al. should be
1011 # upward compatible.
1012 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1013 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
1014 AC_CHECK_SIZEOF(off_t)
1016 AC_MSG_CHECKING([file_ptr type])
1018 bfd_ufile_ptr="unsigned long"
1019 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1020 -o x"${ac_cv_sizeof_off_t}" = x8; then
1021 bfd_file_ptr=BFD_HOST_64_BIT
1022 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1024 AC_MSG_RESULT($bfd_file_ptr)
1025 AC_SUBST(bfd_file_ptr)
1026 AC_SUBST(bfd_ufile_ptr)
1030 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
1031 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
1032 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
1033 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
1034 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
1037 dnl AC_CHECK_HEADERS(sys/mman.h)
1039 AC_CHECK_FUNCS(madvise mprotect)
1040 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1041 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1044 rm -f doc/config.status
1045 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1047 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1048 dnl our two separate POTFILES. Yuck.
1049 AC_CONFIG_COMMANDS([default],
1053 *) srcdirpre='$(srcdir)/' ;;
1057 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1058 if test $lang != dummy; then
1059 POFILES="$POFILES $srcdirpre$lang.po"
1060 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1063 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1064 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1065 -e "s,@POFILES@,$POFILES," \
1066 -e "s,@GMOFILES@,$GMOFILES," \
1067 po/Makefile.in > po/Makefile]],[[]])
1069 dnl Required by html and install-html
1070 AC_SUBST(datarootdir)