1 dnl Process this file with autoconf to produce a configure script.
6 AC_CONFIG_SRCDIR([libbfd.c])
11 AM_INIT_AUTOMAKE(bfd, 2.17.90)
13 dnl These must be called before AM_PROG_LIBTOOL, 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.
27 AC_ARG_ENABLE(64-bit-bfd,
28 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
29 [case "${enableval}" in
32 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
33 esac],[want64=false])dnl
34 AC_ARG_ENABLE(targets,
35 [ --enable-targets alternative target configurations],
36 [case "${enableval}" in
37 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
39 no) enable_targets= ;;
40 *) enable_targets=$enableval ;;
42 AC_ARG_ENABLE(commonbfdlib,
43 [ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
44 [case "${enableval}" in
45 yes) commonbfdlib=true ;;
46 no) commonbfdlib=false ;;
47 *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
50 [ --with-mmap try using mmap for BFD input files if available],
52 yes) want_mmap=true ;;
53 no) want_mmap=false ;;
54 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
55 esac],[want_mmap=false])dnl
57 AC_ARG_ENABLE(secureplt,
58 [ --enable-secureplt Default to creating read-only plt entries],
59 [case "${enableval}" in
60 yes) use_secureplt=true ;;
61 no) use_secureplt=false ;;
62 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
63 esac],[use_secureplt=false])dnl
64 if test $use_secureplt = true; then
65 AC_DEFINE(USE_SECUREPLT, 1,
66 [Define if we should default to creating read-only plt entries])
69 DEBUGDIR=${libdir}/debug
71 AC_ARG_WITH(separate-debug-dir,
72 AS_HELP_STRING([--with-separate-debug-dir=DIR],
73 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
74 [DEBUGDIR="${withval}"])
77 ACX_PKGVERSION([GNU Binutils])
78 ACX_BUGURL([http://www.sourceware.org/bugzilla/])
82 AM_CONFIG_HEADER(config.h:config.in)
84 if test -z "$target" ; then
85 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
89 AM_CONDITIONAL(GENINSRC_NEVER, false)
95 bfd_default_target_size=32
99 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
100 ZW_GNU_GETTEXT_SISTER_DIR
103 # Permit host specific settings.
104 . ${srcdir}/configure.host
109 BFD_HOST_64BIT_LONG=0
110 BFD_HOST_64BIT_LONG_LONG=0
112 BFD_HOST_64_BIT_DEFINED=0
115 BFD_HOSTPTR_T="unsigned long"
117 AC_MSG_CHECKING([for long long])
118 AC_CACHE_VAL(bfd_cv_has_long_long,
119 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[unsigned long long ll = 18446744073709551615ULL;]])],[bfd_cv_has_long_long=yes],[bfd_cv_has_long_long=no])])
120 AC_MSG_RESULT($bfd_cv_has_long_long)
121 if test $bfd_cv_has_long_long = yes; then
123 AC_CHECK_SIZEOF(long long)
126 AC_CHECK_SIZEOF(void *)
127 AC_CHECK_SIZEOF(long)
129 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
131 if test "x${ac_cv_sizeof_long}" = "x8"; then
132 BFD_HOST_64BIT_LONG=1
133 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
134 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
135 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
136 BFD_HOST_64BIT_LONG_LONG=1
137 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
138 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
139 BFD_HOSTPTR_T="unsigned long long"
141 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
142 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
143 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
146 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
147 BFD_HOST_64_BIT_DEFINED=1
148 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
149 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
152 AC_SUBST(BFD_HOST_64BIT_LONG)
153 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
154 AC_SUBST(BFD_HOST_LONG_LONG)
155 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
156 AC_SUBST(BFD_HOST_64_BIT)
157 AC_SUBST(BFD_HOST_U_64_BIT)
158 AC_SUBST(BFD_HOSTPTR_T)
162 AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
163 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
164 GCC_HEADER_STDINT(bfd_stdint.h)
168 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
169 AC_CHECK_FUNCS(strtoull)
171 AC_CHECK_DECLS(basename)
172 AC_CHECK_DECLS(ftello)
173 AC_CHECK_DECLS(ftello64)
174 AC_CHECK_DECLS(fseeko)
175 AC_CHECK_DECLS(fseeko64)
181 AC_CHECK_DECLS(getenv)
182 AC_CHECK_DECLS(malloc)
183 AC_CHECK_DECLS(realloc)
184 AC_CHECK_DECLS(stpcpy)
185 AC_CHECK_DECLS(strstr)
186 AC_CHECK_DECLS(snprintf)
187 AC_CHECK_DECLS(vsnprintf)
189 # If we are configured native, pick a core file support file.
193 if test "${target}" = "${host}"; then
195 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
199 COREFILE=trad-core.lo
200 TRAD_HEADER='"hosts/alphalinux.h"'
202 alpha*-*-netbsd* | alpha*-*-openbsd*)
203 COREFILE=netbsd-core.lo
205 alpha*-*-*) COREFILE=osf-core.lo ;;
206 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
208 arm-*-netbsd* | arm-*-openbsd*)
209 COREFILE=netbsd-core.lo
211 arm-*-riscix) COREFILE=trad-core.lo ;;
212 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
213 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
214 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
215 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
216 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
217 hppa*-*-netbsd* | hppa*-*-openbsd*)
218 COREFILE=netbsd-core.lo
222 COREFILE=trad-core.lo
223 TRAD_HEADER='"hosts/i370linux.h"'
227 i[3-7]86-sequent-bsd*)
229 COREFILE=trad-core.lo
230 TRAD_HEADER='"hosts/symmetry.h"'
233 i[3-7]86-sequent-sysv4*) ;;
234 i[3-7]86-sequent-sysv*)
236 COREFILE=trad-core.lo
237 TRAD_HEADER='"hosts/symmetry.h"'
245 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*)
247 COREFILE=trad-core.lo
248 TRAD_HEADER='"hosts/i386bsd.h"'
251 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
254 TRAD_HEADER='"hosts/i386bsd.h"'
257 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
259 COREFILE=netbsd-core.lo
262 i[3-7]86-esix-sysv3*)
264 COREFILE=trad-core.lo
265 TRAD_HEADER='"hosts/esix.h"'
268 i[3-7]86-*-sco3.2v5*)
270 COREFILE=sco5-core.lo
273 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
275 COREFILE=trad-core.lo
276 TRAD_HEADER='"hosts/i386sco.h"'
281 COREFILE=trad-core.lo
282 TRAD_HEADER='"hosts/i386mach3.h"'
287 COREFILE=trad-core.lo
288 TRAD_HEADER='"hosts/i386linux.h"'
291 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
292 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
294 i860-*-mach3* | i860-*-osf1*)
295 COREFILE=trad-core.lo
296 TRAD_HEADER='"hosts/i860mach3.h"'
298 mips-*-netbsd* | mips*-*-openbsd*)
299 COREFILE=netbsd-core.lo
302 COREFILE=trad-core.lo
303 TRAD_HEADER='"hosts/decstation.h"'
305 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
306 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
307 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
309 mips-*-sysv* | mips-*-riscos*)
310 COREFILE=trad-core.lo
311 TRAD_HEADER='"hosts/riscos.h"'
314 COREFILE=trad-core.lo
315 TRAD_HEADER='"hosts/news-mips.h"'
318 COREFILE=trad-core.lo
319 TRAD_HEADER='"hosts/dpx2.h"'
321 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
323 COREFILE=trad-core.lo
324 TRAD_HEADER='"hosts/hp300bsd.h"'
327 COREFILE=trad-core.lo
328 TRAD_HEADER='"hosts/m68klinux.h"'
331 COREFILE=trad-core.lo
332 TRAD_HEADER='"hosts/delta68.h"'
335 COREFILE=trad-core.lo
336 TRAD_HEADER='"hosts/news.h"'
338 m68*-*-netbsd* | m68*-*-openbsd*)
339 COREFILE=netbsd-core.lo
342 COREFILE=trad-core.lo
343 TRAD_HEADER='"hosts/m68kaux.h"'
348 COREFILE=ptrace-core.lo
351 COREFILE=trad-core.lo
352 TRAD_HEADER='"hosts/m88kmach3.h"'
355 COREFILE=netbsd-core.lo
358 COREFILE=trad-core.lo
359 TRAD_HEADER='"hosts/pc532mach.h"'
361 ns32k-*-netbsd* | ns32k-*-openbsd*)
362 COREFILE=netbsd-core.lo
365 COREFILE=lynx-core.lo
367 rs6000-*-aix5.* | powerpc-*-aix5.*)
368 COREFILE=rs6000-core.lo
369 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
372 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
374 COREFILE=rs6000-core.lo
375 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
376 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
377 # have c_impl as a member of struct core_dumpx
378 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
379 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
380 [Define if struct core_dumpx has member c_impl])
381 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
383 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
384 rs6000-*-*) COREFILE=rs6000-core.lo ;;
385 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
386 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
388 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
390 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
391 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
392 s390*-*-*) COREFILE=trad-core.lo ;;
393 sh*-*-netbsd* | sh*-*-openbsd*)
394 COREFILE=netbsd-core.lo
396 sparc-*-netbsd* | sparc*-*-openbsd*)
397 COREFILE=netbsd-core.lo
400 COREFILE=trad-core.lo
401 TRAD_HEADER='"hosts/tahoe.h"'
403 vax-*-netbsd* | vax-*-openbsd*)
404 COREFILE=netbsd-core.lo
407 COREFILE=trad-core.lo
408 TRAD_HEADER='"hosts/vaxult2.h"'
411 COREFILE=trad-core.lo
412 TRAD_HEADER='"hosts/vaxult2.h"'
415 COREFILE=trad-core.lo
416 TRAD_HEADER='"hosts/vaxlinux.h"'
419 COREFILE=trad-core.lo
420 TRAD_HEADER='"hosts/vaxbsd.h"'
422 x86_64-*-netbsd* | x86_64-*-openbsd*)
423 COREFILE=netbsd-core.lo
428 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
429 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
430 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
431 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
432 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
433 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
434 osf-core.lo) COREFLAG=-DOSF_CORE ;;
435 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
436 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
437 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
438 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
441 # ELF corefile support has several flavors, but all of
442 # them use something called <sys/procfs.h>
443 AC_CHECK_HEADERS(sys/procfs.h)
444 if test "$ac_cv_header_sys_procfs_h" = yes; then
445 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
446 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
447 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
448 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
449 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
450 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
451 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
452 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
453 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
454 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
455 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
456 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
457 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
458 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
459 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
460 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
465 if test -n "$TRAD_HEADER"; then
466 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
467 [Name of host specific header file to include in trad-core.c.])
470 # Horrible hacks to build DLLs on Windows.
475 if test "$enable_shared" = "yes"; then
476 WIN32LDFLAGS="-no-undefined"
477 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
481 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
485 # Linux/MIPS uses PIC by default.
486 if test "$enable_shared" = "yes"; then
487 WIN32LIBADD="-L../libiberty -liberty"
492 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
494 if test -n "$x"; then
495 WIN32LIBADD="-L../libiberty/pic -liberty"
501 AC_SUBST(WIN32LDFLAGS)
502 AC_SUBST(WIN32LIBADD)
506 # Canonicalize the secondary target names.
507 if test -n "$enable_targets" ; then
508 for targ in `echo $enable_targets | sed 's/,/ /g'`
510 result=`$ac_config_sub $targ 2>/dev/null`
511 if test -n "$result" ; then
512 canon_targets="$canon_targets $result"
514 # Allow targets that config.sub doesn't recognize, like "all".
515 canon_targets="$canon_targets $targ"
526 for targ in $target $canon_targets
528 if test "x$targ" = "xall"; then
530 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
533 if test "x$targ" = "x$target"; then
536 selvecs="$selvecs $targ_defvec $targ_selvecs"
537 selarchs="$selarchs $targ_archs"
538 TDEFINES="$TDEFINES $targ_cflags"
543 # This processing still needs to be done if we're to decide properly whether
544 # 64-bit support needs to be compiled in. Currently, it will be included if
545 # the default or any other explicitly requested target requires it; it
546 # will not be included on a 32-bit host if no 64-bit target is requested, and
547 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
550 # uniq the default and selected vectors in all the configured targets.
552 for i in $selvecs ; do
561 # uniq the associated vectors in all the configured targets.
563 for i in $assocvecs ; do
572 # uniq the architectures in all the configured targets.
574 for i in $selarchs ; do
582 # Target backend .o files.
585 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
591 # This list is alphabetized to make it easy to compare
592 # with the two vector lists in targets.c. For the same reason,
593 # use one entry per line, even though this leads to long lines.
594 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
595 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
596 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
597 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
598 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
599 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
600 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
601 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
602 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
603 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
604 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
605 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
606 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
607 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
608 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
609 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
610 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
611 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
612 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
613 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
614 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
615 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
616 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
617 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
618 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
619 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
620 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
621 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
622 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
623 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
624 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
625 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
626 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
627 bfd_elf32_bigarm_symbian_vec)
628 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
629 bfd_elf32_bigarm_vxworks_vec)
630 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
631 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
632 bfd_elf32_bigmips_vxworks_vec)
633 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
634 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
635 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
636 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
637 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
638 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
639 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
640 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
641 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
642 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
643 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
644 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
645 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
646 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
647 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
648 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
649 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
650 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
651 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
652 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
653 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
654 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
655 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
656 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
657 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
658 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
659 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
660 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
661 bfd_elf32_littlearm_symbian_vec)
662 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
663 bfd_elf32_littlearm_vxworks_vec)
664 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
665 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
666 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
667 bfd_elf32_littlemips_vxworks_vec)
668 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
669 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
670 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
671 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
672 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
673 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
674 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
675 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
676 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
677 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
678 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
679 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
680 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
681 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
682 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
683 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
684 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
685 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
686 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
687 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
688 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
689 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
690 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
691 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
692 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
693 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
694 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
695 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
696 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
697 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
698 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
699 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
700 # FIXME: We include cofflink.lo not because it's needed for
701 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
702 # which needs it but does not list it. Should be fixed in right place.
703 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
704 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
705 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
706 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
707 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
708 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
709 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
710 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
711 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
712 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
713 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
714 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
715 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
716 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
717 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
718 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
719 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
720 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
721 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
722 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
723 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
724 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
725 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
726 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
727 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
728 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
729 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
730 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
731 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
732 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
733 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 ;;
734 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
735 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
736 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
737 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
738 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
739 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
740 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 ;;
741 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
742 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
743 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
744 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
745 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
746 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
747 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
748 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
749 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
750 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
751 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
752 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
753 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 ;;
754 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 ;;
755 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
756 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
757 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
758 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
759 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
760 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
761 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
762 cris_aout_vec) tb="$tb aout-cris.lo" ;;
763 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
764 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
765 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
766 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
767 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
768 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
769 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
770 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
771 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
772 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
773 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
774 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
775 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
776 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
777 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
778 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
779 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
780 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
781 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
782 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
783 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
784 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
785 i386msdos_vec) tb="$tb i386msdos.lo" ;;
786 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
787 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
788 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
789 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
790 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
791 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
792 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
793 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
794 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
795 ieee_vec) tb="$tb ieee.lo" ;;
796 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
797 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
798 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
799 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
800 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
801 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
802 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
803 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
804 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
805 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
806 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
807 mach_o_be_vec) tb="$tb mach-o.lo" ;;
808 mach_o_le_vec) tb="$tb mach-o.lo" ;;
809 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
810 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
811 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
812 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
813 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
814 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
815 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
816 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
817 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
818 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
819 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
820 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
821 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
822 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
823 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
824 pef_vec) tb="$tb pef.lo" ;;
825 pef_xlib_vec) tb="$tb pef.lo" ;;
826 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
827 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
828 ppcboot_vec) tb="$tb ppcboot.lo" ;;
829 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
830 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
831 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
832 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
833 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
834 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
835 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
836 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
837 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
838 som_vec) tb="$tb som.lo" ;;
839 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
840 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
841 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
842 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
843 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
844 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
845 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
846 sym_vec) tb="$tb xsym.lo" ;;
847 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
848 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
849 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
850 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
851 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
852 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
853 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
854 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
855 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
856 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
857 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
858 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
859 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
860 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
861 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
862 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
863 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
864 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
865 versados_vec) tb="$tb versados.lo" ;;
866 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
867 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
868 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
869 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
870 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
871 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
873 # These appear out of order in targets.c
874 srec_vec) tb="$tb srec.lo" ;;
875 symbolsrec_vec) tb="$tb srec.lo" ;;
876 tekhex_vec) tb="$tb tekhex.lo" ;;
877 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
878 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
881 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
884 if test ${target_size} = 64; then
887 if test x"${vec}" = x"${defvec}"; then
888 bfd_default_target_size=${target_size}
892 # Target architecture .o files.
893 # A couple of CPUs use shorter file names to avoid problems on DOS
895 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
897 # Weed out duplicate .o files.
919 if test x${all_targets} = xtrue ; then
920 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
921 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
925 test -n "$assocvecs" &&
926 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
927 else # all_targets is true
928 # Only set these if they will be nonempty, for the clever echo.
931 test -n "$selvecs" &&
932 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
933 test -n "$selvecs" &&
934 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
935 test -n "$selarchs" &&
936 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
937 fi # all_targets is true
939 case ${host64}-${target64}-${want64} in
942 bfd64_libs='$(BFD64_LIBS)'
943 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
944 if test $BFD_HOST_64_BIT_DEFINED = 0; then
945 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
946 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
948 if test -n "$GCC" ; then
950 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
951 # Add more tests for gcc versions with non-working 64-bit support here.
952 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
954 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
956 if test $bad_64bit_gcc = yes ; then
957 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
963 all_backends='$(BFD32_BACKENDS)'
969 AC_SUBST(all_backends)
970 AC_SUBST(bfd_backends)
971 AC_SUBST(bfd_machines)
972 AC_SUBST(bfd_default_target_size)
974 # Determine the host dependant file_ptr a.k.a. off_t type. In order
975 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
976 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
977 # Hopefully a reasonable assumption since fseeko et.al. should be
979 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
980 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
981 AC_CHECK_SIZEOF(off_t)
983 AC_MSG_CHECKING([file_ptr type])
985 bfd_ufile_ptr="unsigned long"
986 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
987 -o x"${ac_cv_sizeof_off_t}" = x8; then
988 bfd_file_ptr=BFD_HOST_64_BIT
989 bfd_ufile_ptr=BFD_HOST_U_64_BIT
991 AC_MSG_RESULT($bfd_file_ptr)
992 AC_SUBST(bfd_file_ptr)
993 AC_SUBST(bfd_ufile_ptr)
997 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
998 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
999 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
1000 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
1001 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
1004 dnl AC_CHECK_HEADERS(sys/mman.h)
1006 AC_CHECK_FUNCS(madvise mprotect)
1007 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1008 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1011 rm -f doc/config.status
1012 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1014 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1015 dnl our two separate POTFILES. Yuck.
1016 AC_CONFIG_COMMANDS([default],
1020 *) srcdirpre='$(srcdir)/' ;;
1024 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1025 if test $lang != dummy; then
1026 POFILES="$POFILES $srcdirpre$lang.po"
1027 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1030 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1031 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1032 -e "s,@POFILES@,$POFILES," \
1033 -e "s,@GMOFILES@,$GMOFILES," \
1034 po/Makefile.in > po/Makefile]],[[]])
1036 dnl Required by html and install-html
1037 AC_SUBST(datarootdir)