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