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