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