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