* elf64-ppc.c (ppc_get_stub_entry): Change third param to a
[binutils.git] / bfd / configure.in
blobada27177c8d0aa0ed5955ef3863e90bb3e5e8342
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
4 AC_PREREQ(2.13)
5 AC_INIT(libbfd.c)
7 AC_CANONICAL_SYSTEM
8 AC_ISC_POSIX
10 AM_INIT_AUTOMAKE(bfd, 2.15.91)
12 dnl These must be called before AM_PROG_LIBTOOL, because it may want
13 dnl to call AC_CHECK_PROG.
14 AC_CHECK_TOOL(AR, ar)
15 AC_CHECK_TOOL(RANLIB, ranlib, :)
17 dnl Default to a non shared library.  This may be overridden by the
18 dnl configure option --enable-shared.
19 AM_DISABLE_SHARED
21 AM_PROG_LIBTOOL
23 AC_ARG_ENABLE(64-bit-bfd,
24 [  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)],
25 [case "${enableval}" in
26   yes)  want64=true  ;;
27   no)   want64=false ;;
28   *)    AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
29 esac],[want64=false])dnl
30 AC_ARG_ENABLE(targets,
31 [  --enable-targets        alternative target configurations],
32 [case "${enableval}" in
33   yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
34             ;;
35   no)       enable_targets= ;;
36   *)        enable_targets=$enableval ;;
37 esac])dnl
38 AC_ARG_ENABLE(commonbfdlib,
39 [  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library],
40 [case "${enableval}" in
41   yes) commonbfdlib=true ;;
42   no)  commonbfdlib=false ;;
43   *)   AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
44 esac])dnl
45 AC_ARG_WITH(mmap,
46 [  --with-mmap             try using mmap for BFD input files if available],
47 [case "${withval}" in
48   yes)  want_mmap=true ;;
49   no)   want_mmap=false ;;
50   *)    AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
51 esac],[want_mmap=false])dnl
53 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
54 AC_ARG_ENABLE(build-warnings,
55 [  --enable-build-warnings Enable build-time compiler warnings if gcc is used],
56 [case "${enableval}" in
57   yes)  ;;
58   no)   build_warnings="-w";;
59   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
60         build_warnings="${build_warnings} ${t}";;
61   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
62         build_warnings="${t} ${build_warnings}";;
63   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
64 esac
65 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
66   echo "Setting warning flags = $build_warnings" 6>&1
67 fi])dnl
68 WARN_CFLAGS=""
69 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
70     WARN_CFLAGS="${build_warnings}"
72 AC_SUBST(WARN_CFLAGS)
74 AM_CONFIG_HEADER(config.h:config.in)
76 if test -z "$target" ; then
77     AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
80 AM_MAINTAINER_MODE
81 AM_INSTALL_LIBBFD
82 AC_EXEEXT
84 host64=false
85 target64=false
86 bfd_default_target_size=32
88 # host stuff:
90 AC_PROG_CC
92 ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
93 CY_GNU_GETTEXT
95 # Permit host specific settings.
96 . ${srcdir}/configure.host
98 AC_SUBST(HDEFINES)
99 AC_PROG_INSTALL
101 BFD_HOST_64BIT_LONG=0
102 BFD_HOST_LONG_LONG=0
103 BFD_HOST_64_BIT_DEFINED=0
104 BFD_HOST_64_BIT=
105 BFD_HOST_U_64_BIT=
107 AC_MSG_CHECKING([for long long])
108 AC_CACHE_VAL(bfd_cv_has_long_long,
109 [AC_TRY_COMPILE(,
110 [unsigned long long ll = 18446744073709551615ULL;],
111 bfd_cv_has_long_long=yes, bfd_cv_has_long_long=no)])
112 AC_MSG_RESULT($bfd_cv_has_long_long)
113 if test $bfd_cv_has_long_long = yes; then
114   BFD_HOST_LONG_LONG=1
115   AC_COMPILE_CHECK_SIZEOF(long long)
118 AC_COMPILE_CHECK_SIZEOF(long)
119 if test "x${ac_cv_sizeof_long}" = "x8"; then
120   host64=true
121   BFD_HOST_64BIT_LONG=1
122   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
123   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
124 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
125   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
126   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
129 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
130   BFD_HOST_64_BIT_DEFINED=1
131   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
132   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
135 AC_SUBST(BFD_HOST_64BIT_LONG)
136 AC_SUBST(BFD_HOST_LONG_LONG)
137 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
138 AC_SUBST(BFD_HOST_64_BIT)
139 AC_SUBST(BFD_HOST_U_64_BIT)
141 BFD_CC_FOR_BUILD
143 AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
144 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
145 AC_HEADER_TIME
146 AC_HEADER_DIRENT
147 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
148 AC_CHECK_FUNCS(strtoull)
150 BFD_BINARY_FOPEN
152 BFD_NEED_DECLARATION(strstr)
153 BFD_NEED_DECLARATION(malloc)
154 BFD_NEED_DECLARATION(realloc)
155 BFD_NEED_DECLARATION(free)
156 BFD_NEED_DECLARATION(getenv)
158 # If we are configured native, pick a core file support file.
159 COREFILE=
160 COREFLAG=
161 TRAD_HEADER=
162 if test "${target}" = "${host}"; then
163   case "${host}" in
164   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
165         COREFILE=''
166         ;;
167   alpha*-*-linux-gnu*)
168         COREFILE=trad-core.lo
169         TRAD_HEADER='"hosts/alphalinux.h"'
170         ;;
171   alpha*-*-netbsd* | alpha*-*-openbsd*)
172         COREFILE=netbsd-core.lo
173         ;;
174   alpha*-*-*)           COREFILE=osf-core.lo ;;
175   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
176                         COREFILE='' ;;
177   arm-*-netbsd*)        COREFILE=netbsd-core.lo ;;
178   arm-*-riscix)         COREFILE=trad-core.lo ;;
179   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
180   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
181   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
182   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
183                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
184   hppa*-*-netbsd* | hppa*-*-openbsd*)
185         COREFILE=netbsd-core.lo
186         ;;
188   i370-*-*)
189         COREFILE=trad-core.lo
190         TRAD_HEADER='"hosts/i370linux.h"'
191         ;;
193 changequote(,)dnl
194   i[3-7]86-sequent-bsd*)
195 changequote([,])dnl
196         COREFILE=trad-core.lo
197         TRAD_HEADER='"hosts/symmetry.h"'
198         ;;
199 changequote(,)dnl
200   i[3-7]86-sequent-sysv4*) ;;
201   i[3-7]86-sequent-sysv*)
202 changequote([,])dnl
203         COREFILE=trad-core.lo
204         TRAD_HEADER='"hosts/symmetry.h"'
205         ;;
206 changequote(,)dnl
207   i[3-7]86-*-bsdi)
208 changequote([,])dnl
209         COREFILE=
210         ;;
211 changequote(,)dnl
212   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*)
213 changequote([,])dnl
214         COREFILE=trad-core.lo
215         TRAD_HEADER='"hosts/i386bsd.h"'
216         ;;
217 changequote(,)dnl
218   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
219 changequote([,])dnl
220         COREFILE=''
221         TRAD_HEADER='"hosts/i386bsd.h"'
222         ;;
223 changequote(,)dnl
224   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
225 changequote([,])dnl
226         COREFILE=netbsd-core.lo
227         ;;
228 changequote(,)dnl
229   i[3-7]86-esix-sysv3*)
230 changequote([,])dnl
231         COREFILE=trad-core.lo
232         TRAD_HEADER='"hosts/esix.h"'
233         ;;
234 changequote(,)dnl
235   i[3-7]86-*-sco3.2v5*)
236 changequote([,])dnl
237         COREFILE=sco5-core.lo
238         ;;
239 changequote(,)dnl
240   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
241 changequote([,])dnl
242         COREFILE=trad-core.lo
243         TRAD_HEADER='"hosts/i386sco.h"'
244         ;;
245 changequote(,)dnl
246   i[3-7]86-*-mach3*)
247 changequote([,])dnl
248         COREFILE=trad-core.lo
249         TRAD_HEADER='"hosts/i386mach3.h"'
250         ;;
251 changequote(,)dnl
252   i[3-7]86-*-linux-gnu*)
253 changequote([,])dnl
254         COREFILE=trad-core.lo
255         TRAD_HEADER='"hosts/i386linux.h"'
256         ;;
257 changequote(,)dnl
258   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
259   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
260 changequote([,])dnl
261   i860-*-mach3* | i860-*-osf1*)
262         COREFILE=trad-core.lo
263         TRAD_HEADER='"hosts/i860mach3.h"'
264         ;;
265   mips-*-netbsd* | mips*-*-openbsd*)
266         COREFILE=netbsd-core.lo
267         ;;
268   mips-dec-*)
269         COREFILE=trad-core.lo
270         TRAD_HEADER='"hosts/decstation.h"'
271         ;;
272   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
273   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
274   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
275   mips-*-sysv4*)        ;;
276   mips-*-sysv* | mips-*-riscos*)
277         COREFILE=trad-core.lo
278         TRAD_HEADER='"hosts/riscos.h"'
279         ;;
280   mips-sony-bsd*)
281         COREFILE=trad-core.lo
282         TRAD_HEADER='"hosts/news-mips.h"'
283         ;;
284   m68*-bull*-sysv*)
285         COREFILE=trad-core.lo
286         TRAD_HEADER='"hosts/dpx2.h"'
287         ;;
288   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
289   m68*-hp-bsd*)
290         COREFILE=trad-core.lo
291         TRAD_HEADER='"hosts/hp300bsd.h"'
292         ;;
293   m68*-*-linux-gnu*)
294         COREFILE=trad-core.lo
295         TRAD_HEADER='"hosts/m68klinux.h"'
296         ;;
297   m68*-motorola-sysv*)
298         COREFILE=trad-core.lo
299         TRAD_HEADER='"hosts/delta68.h"'
300         ;;
301   m68*-sony-*)
302         COREFILE=trad-core.lo
303         TRAD_HEADER='"hosts/news.h"'
304         ;;
305   m68*-*-netbsd* | m68*-*-openbsd*)
306         COREFILE=netbsd-core.lo
307         ;;
308   m68*-apple-aux*)
309         COREFILE=trad-core.lo
310         TRAD_HEADER='"hosts/m68kaux.h"'
311         ;;
312   m88*-*-sysv4*)
313         ;;
314   m88*-motorola-sysv*)
315         COREFILE=ptrace-core.lo
316         ;;
317   m88*-*-mach3*)
318         COREFILE=trad-core.lo
319         TRAD_HEADER='"hosts/m88kmach3.h"'
320         ;;
321   m88*-*-openbsd*)
322         COREFILE=netbsd-core.lo
323         ;;
324   ns32k-pc532-mach)
325         COREFILE=trad-core.lo
326         TRAD_HEADER='"hosts/pc532mach.h"'
327         ;;
328   ns32k-*-netbsd* | ns32k-*-openbsd*)
329         COREFILE=netbsd-core.lo
330         ;;
331   rs6000-*-lynx*)
332         COREFILE=lynx-core.lo
333         ;;
334   rs6000-*-aix5.* | powerpc-*-aix5.*)
335         COREFILE=rs6000-core.lo
336         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
337         ;;
338 changequote(,)dnl
339   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
340 changequote([,])dnl
341         COREFILE=rs6000-core.lo
342         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
343         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
344         # have c_impl as a member of struct core_dumpx
345         AC_MSG_CHECKING([for c_impl in struct core_dumpx])
346         AC_TRY_COMPILE([#include <core.h>],
347           [struct core_dumpx c; c.c_impl = 0;],
348           [AC_DEFINE(HAVE_ST_C_IMPL, 1,
349             [Define if struct core_dumpx has member c_impl])
350           AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
351         ;;
352   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
353   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
354   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
355   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
356   powerpc-*-beos*)      ;;
357   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
358                         COREFILE='' ;;
359   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
360   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
361   s390*-*-*)            COREFILE=trad-core.lo ;;
362   sh*-*-netbsd*)        COREFILE=netbsd-core.lo ;;
363   sparc-*-netbsd* | sparc*-*-openbsd*)
364         COREFILE=netbsd-core.lo
365         ;;
366   tahoe-*-*)
367         COREFILE=trad-core.lo
368         TRAD_HEADER='"hosts/tahoe.h"'
369         ;;
370   vax-*-netbsd* | vax-*-openbsd*)
371         COREFILE=netbsd-core.lo
372         ;;
373   vax-*-ultrix2*)
374         COREFILE=trad-core.lo
375         TRAD_HEADER='"hosts/vaxult2.h"'
376         ;;
377   vax-*-ultrix*)
378         COREFILE=trad-core.lo
379         TRAD_HEADER='"hosts/vaxult2.h"'
380         ;;
381   vax-*-linux-gnu*)
382         COREFILE=trad-core.lo
383         TRAD_HEADER='"hosts/vaxlinux.h"'
384         ;;
385   vax-*-*)
386         COREFILE=trad-core.lo
387         TRAD_HEADER='"hosts/vaxbsd.h"'
388         ;;
389   x86_64-*-netbsd* | x86_64-*-openbsd*)
390         COREFILE=netbsd-core.lo
391         ;;
392   esac
394   case "$COREFILE" in
395   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
396   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
397   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
398   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
399   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
400   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
401   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
402   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
403   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
404   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
405   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
406   esac
408   # ELF corefile support has several flavors, but all of
409   # them use something called <sys/procfs.h>
410   AC_CHECK_HEADERS(sys/procfs.h)
411   if test "$ac_cv_header_sys_procfs_h" = yes; then
412     BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
413     BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
414     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
415     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
416     BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
417     BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
418     BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
419     BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
420     BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
421     BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
422     BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
423     BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
424     BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
425     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
426     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
427     BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
428   fi
430 AC_SUBST(COREFILE)
431 AC_SUBST(COREFLAG)
432 if test -n "$TRAD_HEADER"; then
433   AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
434     [Name of host specific header file to include in trad-core.c.])
437 # Horrible hacks to build DLLs on Windows.
438 WIN32LDFLAGS=
439 WIN32LIBADD=
440 case "${host}" in
441 *-*-cygwin*)
442   if test "$enable_shared" = "yes"; then
443     WIN32LDFLAGS="-no-undefined"
444     WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
445   fi
446   ;;
447 *-*-linux*)
448   # We borrow WIN32LIBADD so that the shared libbfd won't depend on
449   # libiberty.a.
450   case "${host}" in
451   mips*-*-linux*)
452     # Linux/MIPS uses PIC by default.
453     if test "$enable_shared" = "yes"; then
454       WIN32LIBADD="-L../libiberty -liberty"
455     fi
456     ;;
457   *)
458 changequote(,)dnl
459     x=`sed -n -e 's/^[  ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
460 changequote([,])dnl
461     if test -n "$x"; then
462       WIN32LIBADD="-L../libiberty/pic -liberty"
463     fi
464   ;;
465   esac
466   ;;
467 esac
468 AC_SUBST(WIN32LDFLAGS)
469 AC_SUBST(WIN32LIBADD)
471 # target stuff:
473 # Canonicalize the secondary target names.
474 if test -n "$enable_targets" ; then
475     for targ in `echo $enable_targets | sed 's/,/ /g'`
476     do
477         result=`$ac_config_sub $targ 2>/dev/null`
478         if test -n "$result" ; then
479             canon_targets="$canon_targets $result"
480         else
481             # Allow targets that config.sub doesn't recognize, like "all".
482             canon_targets="$canon_targets $targ"
483         fi
484     done
487 all_targets=false
488 defvec=
489 selvecs=
490 assocvecs=
491 selarchs=
492 TDEFINES=
493 for targ in $target $canon_targets
495     if test "x$targ" = "xall"; then
496         all_targets=true
497         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
498     else
499         . $srcdir/config.bfd
500         if test "x$targ" = "x$target"; then
501             defvec=$targ_defvec
502         fi
503         selvecs="$selvecs $targ_defvec $targ_selvecs"
504         selarchs="$selarchs $targ_archs"
505         TDEFINES="$TDEFINES $targ_cflags"
506     fi
507 done
508 AC_SUBST(TDEFINES)
510 # This processing still needs to be done if we're to decide properly whether
511 # 64-bit support needs to be compiled in.  Currently, it will be included if
512 # the default or any other explicitly requested target requires it; it
513 # will not be included on a 32-bit host if no 64-bit target is requested, and
514 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
515 # used.
517 # uniq the default and selected vectors in all the configured targets.
518 f=""
519 for i in $selvecs ; do
520     case " $f " in
521     *" $i "*) ;;
522     *) f="$f $i" ;;
523     esac
524 done
525 selvecs="$f"
528 # uniq the associated vectors in all the configured targets.
529 f=""
530 for i in $assocvecs ; do
531     case " $f " in
532     *" $i "*) ;;
533     *) f="$f $i" ;;
534     esac
535 done
536 assocvecs="$f"
539 # uniq the architectures in all the configured targets.
540 f=""
541 for i in $selarchs ; do
542     case " $f " in
543     *" $i "*) ;;
544     *) f="$f $i" ;;
545     esac
546 done
547 selarchs="$f"
549 # Target backend .o files.
552 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
554 for vec in $selvecs
556     target_size=32
557     case "$vec" in
558     # This list is alphabetized to make it easy to compare
559     # with the two vector lists in targets.c.  For the same reason,
560     # use one entry per line, even though this leads to long lines.
561     a29kcoff_big_vec)           tb="$tb coff-a29k.lo cofflink.lo" ;;
562     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
563     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
564     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
565     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
566     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
567     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
568     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
569     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
570     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
571     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
572     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
573     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
574     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
575     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
576     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
577     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
578     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
579     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
580     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
581     bfd_efi_app_ia32_vec)       tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
582     bfd_efi_app_ia64_vec)       tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
583     bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
584     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
585     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
586     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
587     bfd_elf32_bigarm_oabi_vec)  tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
588     bfd_elf32_bigarm_vec)       tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
589     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
590     bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
591     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
592     bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;    
593     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
594     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
595     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
596     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
597     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
598     bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
599     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
600     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
601     bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
602     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
603     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
604     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
605     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf32.lo $elf" ;;
606     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
607     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
608     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
609     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
610     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
611     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
612     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
613     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
614     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
615     bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
616     bfd_elf32_littlearm_vec)    tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
617     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
618     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
619     bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
620     bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
621     bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
622     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
623     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
624     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
625     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
626     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
627     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
628     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
629     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
630     bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
631     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
632     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
633     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
634     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
635     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
636     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
637     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
638     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
639     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
640     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
641     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
642     # FIXME: We include cofflink.lo not because it's needed for
643     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
644     # which needs it but does not list it.  Should be fixed in right place.
645     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
646     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
647     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
648     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
649     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
650     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
651     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
652     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
653     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
654     bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
655     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
656     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
657     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
658     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
659     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
660     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
661     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
662     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
663     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
664     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
665     bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
666     bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
667     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
668     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
669     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
670     bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
671     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
672     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
673     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
674     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
675     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
676     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
677     bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
678     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
679     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
680     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
681     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
682     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
683     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
684     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
685     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
686     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
687     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
688     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
689     bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
690     bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
691     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
692     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
693     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
694     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
695     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
696     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
697     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
698     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
699     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
700     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
701     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
702     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
703     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
704     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
705     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
706     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
707     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
708     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
709     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
710     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
711     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
712     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
713     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
714     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
715     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
716     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
717     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
718     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
719     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
720     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
721     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
722     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
723     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
724     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
725     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
726     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
727     ieee_vec)                   tb="$tb ieee.lo" ;;
728     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
729     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
730     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
731     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
732     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
733     m68klynx_aout_vec)          tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
734     m68klynx_coff_vec)          tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
735     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
736     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
737     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
738     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
739     m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
740     mach_o_be_vec)              tb="$tb mach-o.lo" ;;
741     mach_o_le_vec)              tb="$tb mach-o.lo" ;;
742     mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
743     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
744     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
745     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
746     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
747     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
748     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
749     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
750     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
751     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
752     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
753     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
754     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
755     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
756     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
757     pef_vec)                    tb="$tb pef.lo" ;;
758     pef_xlib_vec)               tb="$tb pef.lo" ;;
759     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
760     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
761     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
762     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
763     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
764     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
765     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
766     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
767     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
768     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
769     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
770     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
771     som_vec)                    tb="$tb som.lo" ;;
772     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
773     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
774     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
775     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
776     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
777     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
778     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
779     sym_vec)                    tb="$tb xsym.lo" ;;
780     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
781     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
782     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
783     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
784     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
785     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
786     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
787     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
788     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
789     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
790     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
791     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
792     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
793     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
794     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
795     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
796     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
797     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
798     versados_vec)               tb="$tb versados.lo" ;;
799     vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
800     vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
801     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
802     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
803     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo" ;;
805     # These appear out of order in targets.c
806     srec_vec)                   tb="$tb srec.lo" ;;
807     symbolsrec_vec)             tb="$tb srec.lo" ;;
808     tekhex_vec)                 tb="$tb tekhex.lo" ;;
809     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
810     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
812     "")                 ;;
813     *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
814     esac
816     if test ${target_size} = 64; then
817         target64=true
818     fi
819     if test x"${vec}" = x"${defvec}"; then
820         bfd_default_target_size=${target_size}
821     fi
822 done
824 # Target architecture .o files.
825 # A couple of CPUs use shorter file names to avoid problems on DOS
826 # filesystems.
827 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
829 # Weed out duplicate .o files.
830 f=""
831 for i in $tb ; do
832     case " $f " in
833     *" $i "*) ;;
834     *) f="$f $i" ;;
835     esac
836 done
837 tb="$f"
839 f=""
840 for i in $ta ; do
841     case " $f " in
842     *" $i "*) ;;
843     *) f="$f $i" ;;
844     esac
845 done
846 ta="$f"
848 bfd_backends="$tb"
849 bfd_machines="$ta"
851 if test x${all_targets} = xtrue ; then
852   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
853   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
854   selvecs=
855   havevecs=
856   selarchs=
857   test -n "$assocvecs" &&
858     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
859 else    # all_targets is true
860   # Only set these if they will be nonempty, for the clever echo.
861   havevecs=
862   assocvecs=
863   test -n "$selvecs" &&
864     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
865   test -n "$selvecs" &&
866     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
867   test -n "$selarchs" &&
868     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
869 fi      # all_targets is true
871 case ${host64}-${target64}-${want64} in
872   *true*)
873     wordsize=64
874     bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
875     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
876     if test $BFD_HOST_64_BIT_DEFINED = 0; then
877       AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
878       AC_MSG_WARN([your compiler may not have a 64 bit integral type])
879     fi
880     if test -n "$GCC" ; then
881        bad_64bit_gcc=no;
882        AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
883        # Add more tests for gcc versions with non-working 64-bit support here.
884        AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
885                     bad_64bit_gcc=yes;
886                     AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
887                     AC_MSG_RESULT(no))
888        if test $bad_64bit_gcc = yes ; then
889          AC_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
890        fi
891     fi
892     ;;
893   false-false-false)
894     wordsize=32
895     bfd_libs='$(BFD32_LIBS)'
896     all_backends='$(BFD32_BACKENDS)'
897     ;;
898 esac
900 AC_SUBST(wordsize)
901 AC_SUBST(bfd_libs)
902 AC_SUBST(all_backends)
903 AC_SUBST(bfd_backends)
904 AC_SUBST(bfd_machines)
905 AC_SUBST(bfd_default_target_size)
907 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
908 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
909 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
910 # Hopefully a reasonable assumption since fseeko et.al. should be
911 # upward compatible.
912 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64)
913 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
914     AC_COMPILE_CHECK_SIZEOF(off_t)
916 AC_MSG_CHECKING([file_ptr type])
917 bfd_file_ptr="long"
918 bfd_ufile_ptr="unsigned long"
919 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
920         -o x"${ac_cv_sizeof_off_t}" = x8; then
921     bfd_file_ptr=BFD_HOST_64_BIT
922     bfd_ufile_ptr=BFD_HOST_U_64_BIT
924 AC_MSG_RESULT($bfd_file_ptr)
925 AC_SUBST(bfd_file_ptr)
926 AC_SUBST(bfd_ufile_ptr)
929 tdefaults=""
930 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
931 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
932 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
933 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
934 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
935 AC_SUBST(tdefaults)
937 dnl AC_CHECK_HEADERS(sys/mman.h)
938 AC_FUNC_MMAP
939 AC_CHECK_FUNCS(madvise mprotect)
940 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
941   true+yes )  AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
942 esac
944 rm -f doc/config.status
945 AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in,
946 [sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile])