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