Update bug reporting address
[binutils-gdb.git] / bfd / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
3 dnl Copyright (C) 2012-2021 Free Software Foundation, Inc.
4 dnl
5 dnl This file is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 3 of the License, or
8 dnl (at your option) any later version.
9 dnl
10 dnl This program is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with this program; see the file COPYING3. If not see
17 dnl <http://www.gnu.org/licenses/>.
18 dnl
19
20 m4_include([version.m4])
21 AC_INIT([bfd], BFD_VERSION)
22 AC_CONFIG_SRCDIR([libbfd.c])
23
24 AC_CANONICAL_TARGET
25
26 AM_INIT_AUTOMAKE
27
28 dnl These must be called before LT_INIT, because it may want
29 dnl to call AC_CHECK_PROG.
30 AC_CHECK_TOOL(AR, ar)
31 AC_CHECK_TOOL(RANLIB, ranlib, :)
32
33 dnl Default to a non shared library. This may be overridden by the
34 dnl configure option --enable-shared.
35 AC_DISABLE_SHARED
36
37 AC_PROG_CC
38 AC_GNU_SOURCE
39 AC_USE_SYSTEM_EXTENSIONS
40
41 LT_INIT([dlopen])
42
43 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
44 ACX_LARGEFILE
45
46 changequote(,)dnl
47 case "${target}" in
48 hppa*64*-*-*) ;;
49 *-*-*aout*| i[3-7]86-*-msdos* | ns32k-*-* | pdp11-*-*)
50 changequote([,])dnl
51 if test "$plugins" = "yes"; then
52 if test "${enable_plugins+set}" = set; then
53 AC_MSG_WARN(Enabling plugins for AOUT is experimental)
54 else
55 plugins=no
56 fi
57 fi ;;
58 hppa*-*-hpux* | *-*-*vms* | \
59 powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*)
60 if test "$plugins" = "yes"; then
61 if test "${enable_plugins+set}" = set; then
62 AC_MSG_WARN(Enabling plugins may result in ar creating non-standard archives for ${target})
63 else
64 plugins=no
65 fi
66 fi ;;
67 esac
68
69 AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
70
71 ac_checking=
72 . ${srcdir}/development.sh
73 test "$development" = true && ac_checking=yes
74 AC_ARG_ENABLE(checking,
75 [ --enable-checking enable run-time checks],
76 [case "${enableval}" in
77 no|none) ac_checking= ;;
78 *) ac_checking=yes ;;
79 esac])dnl
80 if test x$ac_checking != x ; then
81 AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
82 fi
83
84 AC_ARG_ENABLE(64-bit-bfd,
85 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
86 [case "${enableval}" in
87 yes) want64=true ;;
88 no) want64=false ;;
89 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
90 esac],[want64=false])dnl
91
92 AC_ARG_ENABLE(targets,
93 [ --enable-targets alternative target configurations],
94 [case "${enableval}" in
95 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
96 ;;
97 no) enable_targets= ;;
98 *) enable_targets=$enableval ;;
99 esac])dnl
100
101 AC_ARG_ENABLE(64_bit_archive,
102 AS_HELP_STRING([--enable-64-bit-archive],
103 [force 64-bit archives]),
104 [case "${enableval}" in
105 yes) want_64_bit_archive=true ;;
106 no) want_64_bit_archive=false ;;
107 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-archive option) ;;
108 esac],[want_64_bit_archive=unset])dnl
109
110 AC_ARG_WITH(mmap,
111 [ --with-mmap try using mmap for BFD input files if available],
112 [case "${withval}" in
113 yes) want_mmap=true ;;
114 no) want_mmap=false ;;
115 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
116 esac],[want_mmap=false])dnl
117
118 AC_ARG_ENABLE(secureplt,
119 [ --enable-secureplt Default to creating read-only plt entries],
120 [case "${enableval}" in
121 yes) use_secureplt=true ;;
122 no) use_secureplt=false ;;
123 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
124 esac],[use_secureplt=true])dnl
125 if test $use_secureplt = true; then
126 AC_DEFINE(USE_SECUREPLT, 1,
127 [Define if we should default to creating read-only plt entries])
128 fi
129
130 # Decide if -z separate-code should be enabled in ELF linker by default.
131 ac_default_ld_z_separate_code=unset
132 AC_ARG_ENABLE(separate-code,
133 AS_HELP_STRING([--enable-separate-code],
134 [enable -z separate-code in ELF linker by default]),
135 [case "${enableval}" in
136 yes) ac_default_ld_z_separate_code=1 ;;
137 no) ac_default_ld_z_separate_code=0 ;;
138 esac])
139 # Enable -z separate-code by default for Linux/x86.
140 changequote(,)dnl
141 case "${target}" in
142 i[3-7]86-*-linux-* | x86_64-*-linux-*)
143 changequote([,])dnl
144 if test ${ac_default_ld_z_separate_code} = unset; then
145 ac_default_ld_z_separate_code=1
146 fi
147 ;;
148 esac
149 if test "${ac_default_ld_z_separate_code}" = unset; then
150 ac_default_ld_z_separate_code=0
151 fi
152 AC_DEFINE_UNQUOTED(DEFAULT_LD_Z_SEPARATE_CODE,
153 $ac_default_ld_z_separate_code,
154 [Define to 1 if you want to enable -z separate-code in ELF linker by default.])
155
156 AC_ARG_ENABLE(leading-mingw64-underscores,
157 AS_HELP_STRING([--enable-leading-mingw64-underscores],
158 [Enable leading underscores on 64 bit mingw targets]),
159 [],[])
160 AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
161 [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
162 [Define if we should use leading underscore on 64 bit mingw targets])])
163
164 DEBUGDIR=${libdir}/debug
165 AC_ARG_WITH(separate-debug-dir,
166 AS_HELP_STRING([--with-separate-debug-dir=DIR],
167 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
168 [DEBUGDIR="${withval}"])
169 AC_SUBST(DEBUGDIR)
170
171 ACX_PKGVERSION([GNU Binutils])
172 ACX_BUGURL([https://sourceware.org/bugzilla/])
173
174 AM_BINUTILS_WARNINGS
175
176 AC_CONFIG_HEADERS(config.h:config.in)
177
178 # PR 14072
179 AH_VERBATIM([00_CONFIG_H_CHECK],
180 [/* Check that config.h is #included before system headers
181 (this works only for glibc, but that should be enough). */
182 #if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
183 # error config.h must be #included before system headers
184 #endif
185 #define __CONFIG_H__ 1])
186
187 if test -z "$target" ; then
188 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
189 fi
190
191 AM_MAINTAINER_MODE
192 AM_CONDITIONAL(GENINSRC_NEVER, false)
193 AM_INSTALL_LIBBFD
194 AC_EXEEXT
195
196 host64=false
197 target64=false
198 bfd_default_target_size=32
199
200 # host stuff:
201
202 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
203 ZW_GNU_GETTEXT_SISTER_DIR
204 AM_PO_SUBDIRS
205
206 # Permit host specific settings.
207 . ${srcdir}/configure.host
208
209 AC_SUBST(HDEFINES)
210 AC_PROG_INSTALL
211
212 BFD_HOST_64BIT_LONG=0
213 BFD_HOST_64BIT_LONG_LONG=0
214 BFD_HOST_64_BIT_DEFINED=0
215 BFD_HOST_64_BIT=
216 BFD_HOST_U_64_BIT=
217 BFD_HOSTPTR_T="unsigned long"
218
219 AC_CHECK_SIZEOF(long long)
220 AC_CHECK_SIZEOF(void *)
221 AC_CHECK_SIZEOF(long)
222 AC_CHECK_SIZEOF(int)
223
224 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
225 host64=true
226 fi
227
228 if test "x${ac_cv_sizeof_long}" = "x8"; then
229 BFD_HOST_64BIT_LONG=1
230 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
231 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
232 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
233 BFD_HOST_64BIT_LONG_LONG=1
234 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
235 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
236 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
237 BFD_HOSTPTR_T="unsigned long long"
238 fi
239 fi
240
241 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
242 BFD_HOST_64_BIT_DEFINED=1
243 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
244 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
245 fi
246
247 AC_SUBST(BFD_HOST_64BIT_LONG)
248 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
249 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
250 AC_SUBST(BFD_HOST_64_BIT)
251 AC_SUBST(BFD_HOST_U_64_BIT)
252 AC_SUBST(BFD_HOSTPTR_T)
253
254 BFD_CC_FOR_BUILD
255
256 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \
257 unistd.h)
258
259 AC_CHECK_FUNCS(fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \
260 sysconf)
261
262 AC_CHECK_DECLS([basename, ffs, stpcpy, asprintf, vasprintf, strnlen])
263
264 BFD_BINARY_FOPEN
265
266 # Link in zlib if we can. This allows us to read compressed debug sections.
267 # This is used only by compress.c.
268 AM_ZLIB
269
270 save_CFLAGS="$CFLAGS"
271 CFLAGS="$CFLAGS -Werror"
272 AC_CACHE_CHECK([compiler support for hidden visibility], bfd_cv_hidden,
273 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
274 const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
275 extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));]],
276 [[print (hw);]])],
277 [bfd_cv_hidden=yes], [bfd_cv_hidden=no])])
278 CFLAGS="$save_CFLAGS"
279 if test $bfd_cv_hidden = yes; then
280 AC_DEFINE(HAVE_HIDDEN, 1,
281 [Define if your compiler supports hidden visibility.])
282 fi
283
284 # Check if linker supports --as-needed and --no-as-needed options
285 AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
286 [bfd_cv_ld_as_needed=no
287 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
288 bfd_cv_ld_as_needed=yes
289 fi
290 ])
291
292 LT_LIB_M
293
294 # When building a shared libbfd, link against the pic version of libiberty
295 # so that apps that use libbfd won't need libiberty just to satisfy any
296 # libbfd references.
297 # We can't do that if a pic libiberty is unavailable since including non-pic
298 # code would insert text relocations into libbfd.
299 SHARED_LIBADD=
300 SHARED_LDFLAGS=
301 if test "$enable_shared" = "yes"; then
302 changequote(,)dnl
303 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
304 changequote([,])dnl
305 if test -n "$x"; then
306 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
307 fi
308 fi
309
310 SHARED_LIBADD="$SHARED_LIBADD $LIBINTL"
311
312 if test "$enable_shared" = "yes"; then
313 case "${host}" in
314 # More hacks to build DLLs on Windows.
315 *-*-cygwin*)
316 SHARED_LDFLAGS="-no-undefined"
317 SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32"
318 ;;
319 esac
320
321 if test -n "$SHARED_LIBADD"; then
322 if test -n "$LIBM"; then
323 if test x"$bfd_cv_ld_as_needed" = xyes; then
324 # Link against libm only when needed. Put -lc, -lm inside -Wl
325 # to stop libtool reordering these options.
326 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
327 else
328 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
329 fi
330 fi
331 fi
332 fi
333 AC_SUBST(SHARED_LDFLAGS)
334 AC_SUBST(SHARED_LIBADD)
335
336 # target stuff:
337
338 # Canonicalize the secondary target names.
339 if test -n "$enable_targets" ; then
340 for targ in `echo $enable_targets | sed 's/,/ /g'`
341 do
342 result=`$ac_config_sub $targ 2>/dev/null`
343 if test -n "$result" ; then
344 canon_targets="$canon_targets $result"
345 else
346 # Allow targets that config.sub doesn't recognize, like "all".
347 canon_targets="$canon_targets $targ"
348 fi
349 done
350 fi
351
352 all_targets=false
353 defvec=
354 selvecs=
355 assocvecs=
356 selarchs=
357 TDEFINES=
358 for targ in $target $canon_targets
359 do
360 if test $targ = all; then
361 all_targets=true
362 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
363 elif test $targ != plugin; then
364 . $srcdir/config.bfd
365 if test $targ = $target; then
366 defvec=$targ_defvec
367 fi
368 selvecs="$selvecs $targ_defvec $targ_selvecs"
369 selarchs="$selarchs $targ_archs"
370 TDEFINES="$TDEFINES $targ_cflags"
371 fi
372 done
373 AC_SUBST(TDEFINES)
374
375 # This processing still needs to be done if we're to decide properly whether
376 # 64-bit support needs to be compiled in. Currently, it will be included if
377 # the default or any other explicitly requested target requires it; it
378 # will not be included on a 32-bit host if no 64-bit target is requested, and
379 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
380 # used.
381
382 # uniq the default and selected vectors in all the configured targets.
383 f=""
384 for i in $selvecs ; do
385 case " $f " in
386 *" $i "*) ;;
387 *) f="$f $i" ;;
388 esac
389 done
390 selvecs="$f"
391
392
393 # uniq the associated vectors in all the configured targets.
394 f=""
395 for i in $assocvecs ; do
396 case " $f " in
397 *" $i "*) ;;
398 *) f="$f $i" ;;
399 esac
400 done
401 assocvecs="$f"
402
403
404 # uniq the architectures in all the configured targets.
405 f=""
406 for i in $selarchs ; do
407 case " $f " in
408 *" $i "*) ;;
409 *) f="$f $i" ;;
410 esac
411 done
412 selarchs="$f"
413
414 # Target backend .o files.
415 tb=
416
417 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
418 dwarf1.lo dwarf2.lo"
419 coffgen="coffgen.lo dwarf2.lo"
420 coff="cofflink.lo $coffgen"
421 ecoff="ecofflink.lo $coffgen"
422 xcoff="xcofflink.lo $coffgen"
423
424 elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo"
425 for vec in $selvecs
426 do
427 target_size=32
428 case "$vec" in
429 # This list is alphabetized to make it easy to compare
430 # with the two vector lists in targets.c. For the same reason,
431 # use one entry per line, even though this leads to long lines.
432 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
433 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
434 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
435 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
436 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
437 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
438 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
439 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
440 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
441 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
442 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
443 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
444 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
445 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
446 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
447 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
448 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
449 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
450 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
451 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
452 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
453 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
454 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
455 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
456 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
457 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
458 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
459 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
460 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
461 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
462 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
463 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
464 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
465 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
466 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
467 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
468 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
469 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
470 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
471 cris_aout_vec) tb="$tb aout-cris.lo" ;;
472 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
473 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
474 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
475 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
476 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
477 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
478 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
479 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
480 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
481 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
482 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
483 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
484 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
485 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
486 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
487 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
488 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
489 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
490 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
491 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
492 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
493 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
494 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
495 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
496 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
497 hppa_som_vec) tb="$tb som.lo" ;;
498 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
499 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
500 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
501 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
502 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
503 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
504 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
505 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
506 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
507 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
508 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
509 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
510 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
511 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
512 i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
513 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
514 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
515 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
516 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
517 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
518 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
519 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
520 ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
521 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
522 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
523 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
524 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
525 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
526 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
527 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
528 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
529 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
530 loongarch_elf32_vec) tb="$tb elf32-loongarch.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf" ;;
531 loongarch_elf64_vec) tb="$tb elf64-loongarch.lo elf64.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf"; target_size=64 ;;
532 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
533 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
534 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
535 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
536 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
537 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
538 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
539 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
540 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
541 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
542 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
543 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
544 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
545 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
546 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
547 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
548 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
549 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
550 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
551 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
552 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
553 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
554 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
555 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
556 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
557 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
558 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
559 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
560 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
561 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
562 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
563 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
564 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
565 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
566 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
567 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
568 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
569 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
570 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
571 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
572 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
573 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
574 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
575 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
576 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
577 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
578 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
579 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
580 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
581 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
582 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
583 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
584 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
585 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
586 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
587 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
588 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
589 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
590 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
591 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
592 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
593 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
594 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
595 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
596 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
597 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
598 pef_vec) tb="$tb pef.lo" ;;
599 pef_xlib_vec) tb="$tb pef.lo" ;;
600 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
601 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
602 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
603 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
604 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
605 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
606 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
607 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
608 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
609 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
610 powerpc_elf64_fbsd_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
611 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
612 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
613 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
614 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
615 riscv_elf32_be_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
616 riscv_elf64_be_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
617 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
618 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
619 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
620 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
621 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
622 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
623 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
624 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
625 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
626 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
627 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
628 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
629 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
630 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
631 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
632 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
633 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
634 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
635 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
636 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
637 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
638 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
639 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
640 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
641 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
642 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
643 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
644 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
645 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
646 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
647 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
648 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
649 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
650 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
651 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
652 sym_vec) tb="$tb xsym.lo" ;;
653 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
654 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
655 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
656 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
657 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
658 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
659 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
660 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
661 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
662 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
663 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
664 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
665 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
666 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
667 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
668 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
669 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
670 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
671 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
672 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
673 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
674 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
675 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
676 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
677 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
678 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
679 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
680 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
681 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
682 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
683 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
684 wasm_vec) tb="$tb wasm-module.lo" ;;
685 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
686 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
687 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
688 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
689 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
690 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
691 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
692 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
693 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
694 x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
695 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
696 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
697 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
698 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
699 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
700 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
701 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
702 z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;;
703 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
704
705 # These appear out of order in targets.c
706 srec_vec) tb="$tb srec.lo" ;;
707 symbolsrec_vec) tb="$tb srec.lo" ;;
708 tekhex_vec) tb="$tb tekhex.lo" ;;
709 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
710 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
711
712 "") ;;
713 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
714 esac
715
716 if test ${target_size} = 64; then
717 target64=true
718 fi
719 if test x"${vec}" = x"${defvec}"; then
720 bfd_default_target_size=${target_size}
721 fi
722 done
723
724 if test "$plugins" = "yes"; then
725 tb="$tb plugin.lo"
726 fi
727
728 # Target architecture .o files.
729 # A couple of CPUs use shorter file names to avoid problems on DOS
730 # filesystems.
731 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
732
733 # Weed out duplicate .o files.
734 f=""
735 for i in $tb ; do
736 case " $f " in
737 *" $i "*) ;;
738 *) f="$f $i" ;;
739 esac
740 done
741 tb="$f"
742
743 f=""
744 for i in $ta ; do
745 case " $f " in
746 *" $i "*) ;;
747 *) f="$f $i" ;;
748 esac
749 done
750 ta="$f"
751
752 bfd_backends="$tb"
753 bfd_machines="$ta"
754
755 if test x${all_targets} = xtrue ; then
756 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
757 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
758 selvecs=
759 havevecs=-DHAVE_all_vecs
760 selarchs=
761 test -n "$assocvecs" &&
762 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
763 else # all_targets is true
764 # Only set these if they will be nonempty, for the clever echo.
765 havevecs=
766 assocvecs=
767 test -n "$selvecs" &&
768 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
769 test -n "$selvecs" &&
770 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
771 test -n "$selarchs" &&
772 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
773 fi # all_targets is true
774
775 # 64-bit archives need a 64-bit bfd_vma.
776 if test "x$want_64_bit_archive" = xtrue; then
777 want64=true
778 AC_DEFINE(USE_64_BIT_ARCHIVE, 1,
779 [Define if 64-bit archives should always be used.])
780 fi
781
782 case ${host64}-${target64}-${want64} in
783 *true*)
784 wordsize=64
785 bfd64_libs='$(BFD64_LIBS)'
786 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
787 if test $BFD_HOST_64_BIT_DEFINED = 0; then
788 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
789 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
790 fi
791 if test -n "$GCC" ; then
792 bad_64bit_gcc=no;
793 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
794 # Add more tests for gcc versions with non-working 64-bit support here.
795 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
796 bad_64bit_gcc=yes;
797 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
798 AC_MSG_RESULT(no))
799 if test $bad_64bit_gcc = yes ; then
800 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
801 fi
802 fi
803 ;;
804 false-false-false)
805 wordsize=32
806 all_backends='$(BFD32_BACKENDS)'
807 ;;
808 esac
809
810 tdefaults=""
811 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
812 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
813 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
814 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
815
816 AC_SUBST(wordsize)
817 AC_SUBST(bfd64_libs)
818 AC_SUBST(all_backends)
819 AC_SUBST(bfd_backends)
820 AC_SUBST(bfd_machines)
821 AC_SUBST(bfd_default_target_size)
822 AC_SUBST(tdefaults)
823 AC_SUBST(havevecs)
824
825 # If we are configured native, pick a core file support file.
826 COREFILE=
827 COREFLAG=
828 CORE_HEADER=
829 TRAD_HEADER=
830 if test "${target}" = "${host}"; then
831 case "${host}" in
832 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
833 COREFILE=''
834 ;;
835 alpha*-*-linux-*)
836 COREFILE=trad-core.lo
837 TRAD_HEADER='"hosts/alphalinux.h"'
838 ;;
839 alpha*-*-netbsd* | alpha*-*-openbsd*)
840 COREFILE=netbsd-core.lo
841 ;;
842 alpha*-*-*)
843 COREFILE=osf-core.lo
844 ;;
845 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
846 COREFILE='' ;;
847 arm*-*-netbsd* | arm-*-openbsd*)
848 COREFILE=netbsd-core.lo
849 ;;
850 arm-*-riscix) COREFILE=trad-core.lo ;;
851 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
852 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
853 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
854 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
855 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
856 hppa*-*-netbsd* | hppa*-*-openbsd*)
857 COREFILE=netbsd-core.lo
858 ;;
859
860 changequote(,)dnl
861 i[3-7]86-sequent-bsd*)
862 changequote([,])dnl
863 COREFILE=trad-core.lo
864 TRAD_HEADER='"hosts/symmetry.h"'
865 ;;
866 changequote(,)dnl
867 i[3-7]86-sequent-sysv4*) ;;
868 i[3-7]86-sequent-sysv*)
869 changequote([,])dnl
870 COREFILE=trad-core.lo
871 TRAD_HEADER='"hosts/symmetry.h"'
872 ;;
873 changequote(,)dnl
874 i[3-7]86-*-bsdi)
875 changequote([,])dnl
876 COREFILE=
877 ;;
878 changequote(,)dnl
879 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*)
880 changequote([,])dnl
881 COREFILE=trad-core.lo
882 TRAD_HEADER='"hosts/i386bsd.h"'
883 ;;
884 changequote(,)dnl
885 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
886 changequote([,])dnl
887 COREFILE=''
888 TRAD_HEADER='"hosts/i386bsd.h"'
889 ;;
890 changequote(,)dnl
891 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
892 changequote([,])dnl
893 COREFILE=netbsd-core.lo
894 ;;
895 changequote(,)dnl
896 i[3-7]86-esix-sysv3*)
897 changequote([,])dnl
898 COREFILE=trad-core.lo
899 TRAD_HEADER='"hosts/esix.h"'
900 ;;
901 changequote(,)dnl
902 i[3-7]86-*-sco3.2v5*)
903 changequote([,])dnl
904 COREFILE=sco5-core.lo
905 ;;
906 changequote(,)dnl
907 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
908 changequote([,])dnl
909 COREFILE=trad-core.lo
910 TRAD_HEADER='"hosts/i386sco.h"'
911 ;;
912 changequote(,)dnl
913 i[3-7]86-*-mach3*)
914 changequote([,])dnl
915 COREFILE=trad-core.lo
916 TRAD_HEADER='"hosts/i386mach3.h"'
917 ;;
918 changequote(,)dnl
919 i[3-7]86-*-linux-*)
920 changequote([,])dnl
921 COREFILE=trad-core.lo
922 TRAD_HEADER='"hosts/i386linux.h"'
923 case "$enable_targets"-"$want64" in
924 *x86_64-*linux*|*-true)
925 CORE_HEADER='"hosts/x86-64linux.h"'
926 esac
927 ;;
928 changequote(,)dnl
929 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
930 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
931 changequote([,])dnl
932 mips*-*-netbsd* | mips*-*-openbsd*)
933 COREFILE=netbsd-core.lo
934 ;;
935 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
936 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
937 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
938 m68*-*-linux-*)
939 COREFILE=trad-core.lo
940 TRAD_HEADER='"hosts/m68klinux.h"'
941 ;;
942 m68*-*-netbsd*)
943 COREFILE=netbsd-core.lo
944 ;;
945 ns32k-pc532-mach)
946 COREFILE=trad-core.lo
947 TRAD_HEADER='"hosts/pc532mach.h"'
948 ;;
949 ns32k-*-netbsd* | ns32k-*-openbsd*)
950 COREFILE=netbsd-core.lo
951 ;;
952 rs6000-*-lynx*)
953 COREFILE=lynx-core.lo
954 ;;
955 changequote(,)dnl
956 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
957 changequote([,])dnl
958 COREFILE=rs6000-core.lo
959 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
960 ;;
961 changequote(,)dnl
962 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
963 changequote([,])dnl
964 COREFILE=rs6000-core.lo
965 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
966 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
967 # have c_impl as a member of struct core_dumpx
968 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
969 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
970 [Define if struct core_dumpx has member c_impl])
971 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
972 ;;
973 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
974 rs6000-*-*) COREFILE=rs6000-core.lo ;;
975 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
976 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
977 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
978 powerpc-*-beos*) ;;
979 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
980 COREFILE='' ;;
981 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
982 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
983 s390*-*-*) COREFILE=trad-core.lo ;;
984 sh*-*-netbsd* | sh*-*-openbsd*)
985 COREFILE=netbsd-core.lo
986 ;;
987 sparc-*-netbsd* | sparc*-*-openbsd*)
988 COREFILE=netbsd-core.lo
989 ;;
990 vax-*-netbsd* | vax-*-openbsd*)
991 COREFILE=netbsd-core.lo
992 ;;
993 vax-*-ultrix2*)
994 COREFILE=trad-core.lo
995 TRAD_HEADER='"hosts/vaxult2.h"'
996 ;;
997 vax-*-ultrix*)
998 COREFILE=trad-core.lo
999 TRAD_HEADER='"hosts/vaxult2.h"'
1000 ;;
1001 vax-*-linux-*)
1002 COREFILE=trad-core.lo
1003 TRAD_HEADER='"hosts/vaxlinux.h"'
1004 ;;
1005 vax-*-*)
1006 COREFILE=trad-core.lo
1007 TRAD_HEADER='"hosts/vaxbsd.h"'
1008 ;;
1009 x86_64-*-linux*)
1010 CORE_HEADER='"hosts/x86-64linux.h"'
1011 ;;
1012 x86_64-*-netbsd* | x86_64-*-openbsd*)
1013 COREFILE=netbsd-core.lo
1014 ;;
1015 esac
1016
1017 case "$COREFILE" in
1018 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
1019 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
1020 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
1021 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
1022 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
1023 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
1024 osf-core.lo) COREFLAG=-DOSF_CORE ;;
1025 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
1026 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
1027 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
1028 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
1029 esac
1030
1031 # ELF corefile support has several flavors, but all of
1032 # them use something called <sys/procfs.h>
1033 BFD_SYS_PROCFS_H
1034 if test "$ac_cv_header_sys_procfs_h" = yes; then
1035 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
1036 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
1037 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
1038 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
1039 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
1040 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
1041 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
1042 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
1043 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid)
1044 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
1045 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid)
1046 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
1047 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid)
1048 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
1049 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid)
1050 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
1051 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
1052 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
1053 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
1054 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
1055 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
1056 fi
1057 fi
1058 AC_SUBST(COREFILE)
1059 AC_SUBST(COREFLAG)
1060 if test -n "$CORE_HEADER"; then
1061 AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
1062 [Name of host specific core header file to include in elf.c.])
1063 fi
1064 if test -n "$TRAD_HEADER"; then
1065 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
1066 [Name of host specific header file to include in trad-core.c.])
1067 fi
1068
1069 if test "$plugins" = "yes"; then
1070 supports_plugins=1
1071 else
1072 supports_plugins=0
1073 fi
1074 AC_SUBST(supports_plugins)
1075 AC_SUBST(lt_cv_dlopen_libs)
1076
1077 # Determine the host dependent file_ptr a.k.a. off_t type. In order
1078 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1079 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1080 # Hopefully a reasonable assumption since fseeko et.al. should be
1081 # upward compatible.
1082 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1083 AC_CHECK_DECLS([ftello, ftello64, fseeko, fseeko64, fopen64])
1084 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
1085 AC_CHECK_SIZEOF(off_t)
1086 fi
1087 AC_MSG_CHECKING([file_ptr type])
1088 bfd_file_ptr="long"
1089 bfd_ufile_ptr="unsigned long"
1090 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1091 -o x"${ac_cv_sizeof_off_t}" = x8; then
1092 bfd_file_ptr=BFD_HOST_64_BIT
1093 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1094 fi
1095 AC_MSG_RESULT($bfd_file_ptr)
1096 AC_SUBST(bfd_file_ptr)
1097 AC_SUBST(bfd_ufile_ptr)
1098
1099 AC_FUNC_MMAP
1100 AC_CHECK_FUNCS(madvise mprotect)
1101 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1102 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1103 esac
1104
1105 rm -f doc/config.status
1106 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1107
1108 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1109 dnl our two separate POTFILES. Yuck.
1110 AC_CONFIG_COMMANDS([default],
1111 [[
1112 case "$srcdir" in
1113 .) srcdirpre= ;;
1114 *) srcdirpre='$(srcdir)/' ;;
1115 esac
1116 POFILES=
1117 GMOFILES=
1118 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1119 if test $lang != dummy; then
1120 POFILES="$POFILES $srcdirpre$lang.po"
1121 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1122 fi
1123 done
1124 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1125 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1126 -e "s,@POFILES@,$POFILES," \
1127 -e "s,@GMOFILES@,$GMOFILES," \
1128 po/Makefile.in > po/Makefile]],[[]])
1129
1130 dnl Required by html, pdf, install-pdf and install-html
1131 AC_SUBST(datarootdir)
1132 AC_SUBST(docdir)
1133 AC_SUBST(htmldir)
1134 AC_SUBST(pdfdir)
1135
1136 AC_OUTPUT
1137
1138 GNU_MAKE_JOBSERVER