Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | dnl | |
3 | ||
5464f5a1 NN |
4 | AC_PREREQ(2.59) |
5 | AC_INIT | |
6 | AC_CONFIG_SRCDIR([libbfd.c]) | |
252b5132 | 7 | |
5464f5a1 | 8 | AC_CANONICAL_TARGET |
252b5132 RH |
9 | AC_ISC_POSIX |
10 | ||
b7761f11 | 11 | AM_INIT_AUTOMAKE(bfd, 2.22.52) |
252b5132 | 12 | |
da594c4a | 13 | dnl These must be called before LT_INIT, because it may want |
252b5132 RH |
14 | dnl to call AC_CHECK_PROG. |
15 | AC_CHECK_TOOL(AR, ar) | |
16 | AC_CHECK_TOOL(RANLIB, ranlib, :) | |
17 | ||
18 | dnl Default to a non shared library. This may be overridden by the | |
19 | dnl configure option --enable-shared. | |
da594c4a | 20 | AC_DISABLE_SHARED |
252b5132 | 21 | |
cfbc9945 SE |
22 | AC_PROG_CC |
23 | AC_GNU_SOURCE | |
7357c5b6 | 24 | AC_USE_SYSTEM_EXTENSIONS |
08c13eba | 25 | |
ce3c775b NC |
26 | LT_INIT([dlopen]) |
27 | ||
da2f07f1 JK |
28 | # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. |
29 | ACX_LARGEFILE | |
ce3c775b NC |
30 | |
31 | AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes") | |
32 | ||
33 | if test "$plugins" = "yes"; then | |
34 | if test "$enable_dlopen" != "yes" ; then | |
35 | AC_MSG_ERROR([ | |
36 | Building BFD with plugin support requires a host that supports -ldl.]) | |
37 | fi | |
38 | enable_targets="$enable_targets plugin" | |
39 | fi | |
40 | ||
252b5132 RH |
41 | AC_ARG_ENABLE(64-bit-bfd, |
42 | [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)], | |
43 | [case "${enableval}" in | |
44 | yes) want64=true ;; | |
45 | no) want64=false ;; | |
46 | *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;; | |
47 | esac],[want64=false])dnl | |
504b7d20 | 48 | |
252b5132 RH |
49 | AC_ARG_ENABLE(targets, |
50 | [ --enable-targets alternative target configurations], | |
51 | [case "${enableval}" in | |
5464f5a1 | 52 | yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all']) |
252b5132 RH |
53 | ;; |
54 | no) enable_targets= ;; | |
55 | *) enable_targets=$enableval ;; | |
56 | esac])dnl | |
504b7d20 | 57 | |
252b5132 RH |
58 | AC_ARG_WITH(mmap, |
59 | [ --with-mmap try using mmap for BFD input files if available], | |
60 | [case "${withval}" in | |
61 | yes) want_mmap=true ;; | |
62 | no) want_mmap=false ;; | |
63 | *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;; | |
64 | esac],[want_mmap=false])dnl | |
65 | ||
6ec7057a RH |
66 | AC_ARG_ENABLE(secureplt, |
67 | [ --enable-secureplt Default to creating read-only plt entries], | |
68 | [case "${enableval}" in | |
69 | yes) use_secureplt=true ;; | |
70 | no) use_secureplt=false ;; | |
71 | *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;; | |
72 | esac],[use_secureplt=false])dnl | |
73 | if test $use_secureplt = true; then | |
74 | AC_DEFINE(USE_SECUREPLT, 1, | |
75 | [Define if we should default to creating read-only plt entries]) | |
76 | fi | |
77 | ||
ef72a554 KT |
78 | AC_ARG_ENABLE(leading-mingw64-underscores, |
79 | AS_HELP_STRING([--enable-leading-mingw64-underscores], | |
80 | [Enable leading underscores on 64 bit mingw targets]), | |
81 | [],[]) | |
82 | AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ], | |
83 | [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1, | |
84 | [Define if we should use leading underscore on 64 bit mingw targets])]) | |
85 | ||
0d4a1476 | 86 | DEBUGDIR=${libdir}/debug |
0d4a1476 AS |
87 | AC_ARG_WITH(separate-debug-dir, |
88 | AS_HELP_STRING([--with-separate-debug-dir=DIR], | |
89 | [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]), | |
90 | [DEBUGDIR="${withval}"]) | |
91 | AC_SUBST(DEBUGDIR) | |
92 | ||
504b7d20 NC |
93 | # Check to see if we should allow the generation of |
94 | # symbols with the ELF standard's STT_COMMON type. | |
95 | AC_ARG_ENABLE(elf-stt-common, | |
96 | [ --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type], | |
97 | [case "${enableval}" in | |
98 | yes) want_elf_stt_common=true ;; | |
99 | no) want_elf_stt_common=false ;; | |
100 | *) AC_MSG_ERROR(bad value ${enableval} for ELF STT_COMMON option) ;; | |
101 | esac], | |
102 | # We have to choose a default behaviour. For native builds we could | |
103 | # test whether the loader supports the STT_COMMON type, but that would | |
104 | # mean that built binaries could not be exported to older systems where | |
105 | # the loader does not support it. So by default we always choose to | |
106 | # disable this feature. | |
107 | want_elf_stt_common=false)dnl | |
108 | if test $want_elf_stt_common = true; then | |
109 | AC_DEFINE(USE_STT_COMMON, 1, | |
110 | [Define if we may generate symbols with ELF's STT_COMMON type]) | |
111 | fi | |
8059fb19 | 112 | |
a1ac8190 JM |
113 | ACX_PKGVERSION([GNU Binutils]) |
114 | ACX_BUGURL([http://www.sourceware.org/bugzilla/]) | |
c428fa83 | 115 | |
9e9b66a9 | 116 | AM_BINUTILS_WARNINGS |
a2d91340 | 117 | |
da594c4a | 118 | AC_CONFIG_HEADERS(config.h:config.in) |
252b5132 | 119 | |
df7b86aa NC |
120 | # PR 14072 |
121 | AH_VERBATIM([00_CONFIG_H_CHECK], | |
122 | [/* Check that config.h is #included before system headers | |
123 | (this works only for glibc, but that should be enough). */ | |
124 | #if defined(__GLIBC__) && !defined(__CONFIG_H__) | |
125 | # error config.h must be #included before system headers | |
126 | #endif | |
127 | #define __CONFIG_H__ 1]) | |
128 | ||
252b5132 RH |
129 | if test -z "$target" ; then |
130 | AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) | |
131 | fi | |
252b5132 RH |
132 | |
133 | AM_MAINTAINER_MODE | |
d5fbea21 | 134 | AM_CONDITIONAL(GENINSRC_NEVER, false) |
a703a6ea | 135 | AM_INSTALL_LIBBFD |
252b5132 RH |
136 | AC_EXEEXT |
137 | ||
138 | host64=false | |
139 | target64=false | |
69263e90 | 140 | bfd_default_target_size=32 |
252b5132 RH |
141 | |
142 | # host stuff: | |
143 | ||
4c6a93d3 | 144 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru uk" |
20e95c23 DJ |
145 | ZW_GNU_GETTEXT_SISTER_DIR |
146 | AM_PO_SUBDIRS | |
252b5132 RH |
147 | |
148 | # Permit host specific settings. | |
149 | . ${srcdir}/configure.host | |
150 | ||
151 | AC_SUBST(HDEFINES) | |
152 | AC_PROG_INSTALL | |
153 | ||
154 | BFD_HOST_64BIT_LONG=0 | |
d2df793a | 155 | BFD_HOST_64BIT_LONG_LONG=0 |
252b5132 RH |
156 | BFD_HOST_64_BIT_DEFINED=0 |
157 | BFD_HOST_64_BIT= | |
158 | BFD_HOST_U_64_BIT= | |
d2df793a | 159 | BFD_HOSTPTR_T="unsigned long" |
ec317fb1 | 160 | |
bce5e5c9 | 161 | AC_CHECK_SIZEOF(long long) |
d2df793a | 162 | AC_CHECK_SIZEOF(void *) |
2ba49b59 | 163 | AC_CHECK_SIZEOF(long) |
d2df793a NC |
164 | |
165 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
6726e1ea | 166 | host64=true |
bce5e5c9 AM |
167 | fi |
168 | ||
169 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
ccba357f AM |
170 | BFD_HOST_64BIT_LONG=1 |
171 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
172 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
6726e1ea | 173 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then |
bce5e5c9 | 174 | BFD_HOST_64BIT_LONG_LONG=1 |
ccba357f AM |
175 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" |
176 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
bce5e5c9 AM |
177 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then |
178 | BFD_HOSTPTR_T="unsigned long long" | |
179 | fi | |
6726e1ea L |
180 | fi |
181 | ||
ccba357f | 182 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then |
6726e1ea | 183 | BFD_HOST_64_BIT_DEFINED=1 |
ccba357f AM |
184 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" |
185 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
ec317fb1 ILT |
186 | fi |
187 | ||
252b5132 | 188 | AC_SUBST(BFD_HOST_64BIT_LONG) |
d2df793a | 189 | AC_SUBST(BFD_HOST_64BIT_LONG_LONG) |
252b5132 RH |
190 | AC_SUBST(BFD_HOST_64_BIT_DEFINED) |
191 | AC_SUBST(BFD_HOST_64_BIT) | |
192 | AC_SUBST(BFD_HOST_U_64_BIT) | |
d2df793a | 193 | AC_SUBST(BFD_HOSTPTR_T) |
252b5132 RH |
194 | |
195 | BFD_CC_FOR_BUILD | |
196 | ||
8bc9c892 | 197 | AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h) |
efde2f2c | 198 | AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h) |
d5efd9fc | 199 | GCC_HEADER_STDINT(bfd_stdint.h) |
252b5132 RH |
200 | AC_HEADER_TIME |
201 | AC_HEADER_DIRENT | |
17d5dae2 KT |
202 | |
203 | AC_CHECK_HEADERS(windows.h dlfcn.h) | |
204 | ||
2e0fbf77 | 205 | ACX_HEADER_STRING |
428b207a | 206 | AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno) |
49c97a80 | 207 | AC_CHECK_FUNCS(strtoull) |
252b5132 | 208 | |
ec7b76fe JG |
209 | AC_CHECK_DECLS(basename) |
210 | AC_CHECK_DECLS(ftello) | |
211 | AC_CHECK_DECLS(ftello64) | |
212 | AC_CHECK_DECLS(fseeko) | |
213 | AC_CHECK_DECLS(fseeko64) | |
2e9ebff5 | 214 | |
252b5132 RH |
215 | BFD_BINARY_FOPEN |
216 | ||
d34a2b1d JG |
217 | AC_CHECK_DECLS(ffs) |
218 | AC_CHECK_DECLS(free) | |
219 | AC_CHECK_DECLS(getenv) | |
220 | AC_CHECK_DECLS(malloc) | |
221 | AC_CHECK_DECLS(realloc) | |
be5cacdb | 222 | AC_CHECK_DECLS(stpcpy) |
d34a2b1d | 223 | AC_CHECK_DECLS(strstr) |
36527912 AJ |
224 | AC_CHECK_DECLS(snprintf) |
225 | AC_CHECK_DECLS(vsnprintf) | |
252b5132 | 226 | |
1b315056 CS |
227 | # Link in zlib if we can. This allows us to read compressed debug sections. |
228 | # This is used only by compress.c. | |
bf993e3c | 229 | AM_ZLIB |
1b315056 | 230 | |
252b5132 RH |
231 | # If we are configured native, pick a core file support file. |
232 | COREFILE= | |
233 | COREFLAG= | |
8bc7f138 | 234 | CORE_HEADER= |
252b5132 RH |
235 | TRAD_HEADER= |
236 | if test "${target}" = "${host}"; then | |
237 | case "${host}" in | |
9fcd9da6 | 238 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*) |
46d59bfa DB |
239 | COREFILE='' |
240 | ;; | |
ed84e695 | 241 | alpha*-*-linux-*) |
252b5132 RH |
242 | COREFILE=trad-core.lo |
243 | TRAD_HEADER='"hosts/alphalinux.h"' | |
244 | ;; | |
690cc98b NC |
245 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
246 | COREFILE=netbsd-core.lo | |
247 | ;; | |
9fcd9da6 NC |
248 | alpha*-*-*) |
249 | COREFILE=osf-core.lo | |
250 | ;; | |
13dfd2d0 | 251 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
9fcd9da6 | 252 | COREFILE='' ;; |
e33533a4 MK |
253 | arm-*-netbsd* | arm-*-openbsd*) |
254 | COREFILE=netbsd-core.lo | |
255 | ;; | |
252b5132 RH |
256 | arm-*-riscix) COREFILE=trad-core.lo ;; |
257 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
258 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
259 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
260 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
261 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
262 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
263 | COREFILE=netbsd-core.lo | |
264 | ;; | |
265 | ||
dc810e39 | 266 | i370-*-*) |
5b93d8bb AM |
267 | COREFILE=trad-core.lo |
268 | TRAD_HEADER='"hosts/i370linux.h"' | |
269 | ;; | |
270 | ||
252b5132 | 271 | changequote(,)dnl |
80c7c40a | 272 | i[3-7]86-sequent-bsd*) |
252b5132 | 273 | changequote([,])dnl |
5b93d8bb | 274 | COREFILE=trad-core.lo |
252b5132 RH |
275 | TRAD_HEADER='"hosts/symmetry.h"' |
276 | ;; | |
277 | changequote(,)dnl | |
80c7c40a NC |
278 | i[3-7]86-sequent-sysv4*) ;; |
279 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
280 | changequote([,])dnl |
281 | COREFILE=trad-core.lo | |
282 | TRAD_HEADER='"hosts/symmetry.h"' | |
283 | ;; | |
7e3b3466 | 284 | changequote(,)dnl |
80c7c40a | 285 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
286 | changequote([,])dnl |
287 | COREFILE= | |
288 | ;; | |
252b5132 | 289 | changequote(,)dnl |
d2bef492 | 290 | 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*) |
252b5132 RH |
291 | changequote([,])dnl |
292 | COREFILE=trad-core.lo | |
293 | TRAD_HEADER='"hosts/i386bsd.h"' | |
294 | ;; | |
d4af9775 | 295 | changequote(,)dnl |
0b3e17e9 | 296 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) |
d4af9775 DB |
297 | changequote([,])dnl |
298 | COREFILE='' | |
299 | TRAD_HEADER='"hosts/i386bsd.h"' | |
300 | ;; | |
252b5132 | 301 | changequote(,)dnl |
4615568e | 302 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
303 | changequote([,])dnl |
304 | COREFILE=netbsd-core.lo | |
305 | ;; | |
306 | changequote(,)dnl | |
80c7c40a | 307 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
308 | changequote([,])dnl |
309 | COREFILE=trad-core.lo | |
310 | TRAD_HEADER='"hosts/esix.h"' | |
311 | ;; | |
312 | changequote(,)dnl | |
80c7c40a | 313 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
314 | changequote([,])dnl |
315 | COREFILE=sco5-core.lo | |
316 | ;; | |
317 | changequote(,)dnl | |
80c7c40a | 318 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
319 | changequote([,])dnl |
320 | COREFILE=trad-core.lo | |
321 | TRAD_HEADER='"hosts/i386sco.h"' | |
322 | ;; | |
323 | changequote(,)dnl | |
80c7c40a | 324 | i[3-7]86-*-mach3*) |
252b5132 RH |
325 | changequote([,])dnl |
326 | COREFILE=trad-core.lo | |
327 | TRAD_HEADER='"hosts/i386mach3.h"' | |
328 | ;; | |
329 | changequote(,)dnl | |
ed84e695 | 330 | i[3-7]86-*-linux-*) |
252b5132 RH |
331 | changequote([,])dnl |
332 | COREFILE=trad-core.lo | |
333 | TRAD_HEADER='"hosts/i386linux.h"' | |
334 | ;; | |
335 | changequote(,)dnl | |
80c7c40a NC |
336 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
337 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
338 | changequote([,])dnl |
339 | i860-*-mach3* | i860-*-osf1*) | |
340 | COREFILE=trad-core.lo | |
341 | TRAD_HEADER='"hosts/i860mach3.h"' | |
342 | ;; | |
252b5132 RH |
343 | mips-*-netbsd* | mips*-*-openbsd*) |
344 | COREFILE=netbsd-core.lo | |
345 | ;; | |
346 | mips-dec-*) | |
347 | COREFILE=trad-core.lo | |
348 | TRAD_HEADER='"hosts/decstation.h"' | |
349 | ;; | |
350 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
351 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
352 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
353 | mips-*-sysv4*) ;; |
354 | mips-*-sysv* | mips-*-riscos*) | |
355 | COREFILE=trad-core.lo | |
356 | TRAD_HEADER='"hosts/riscos.h"' | |
357 | ;; | |
358 | mips-sony-bsd*) | |
359 | COREFILE=trad-core.lo | |
360 | TRAD_HEADER='"hosts/news-mips.h"' | |
361 | ;; | |
362 | m68*-bull*-sysv*) | |
363 | COREFILE=trad-core.lo | |
364 | TRAD_HEADER='"hosts/dpx2.h"' | |
365 | ;; | |
366 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
367 | m68*-hp-bsd*) | |
368 | COREFILE=trad-core.lo | |
369 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
370 | ;; | |
ed84e695 | 371 | m68*-*-linux-*) |
252b5132 RH |
372 | COREFILE=trad-core.lo |
373 | TRAD_HEADER='"hosts/m68klinux.h"' | |
374 | ;; | |
375 | m68*-motorola-sysv*) | |
376 | COREFILE=trad-core.lo | |
377 | TRAD_HEADER='"hosts/delta68.h"' | |
378 | ;; | |
379 | m68*-sony-*) | |
380 | COREFILE=trad-core.lo | |
381 | TRAD_HEADER='"hosts/news.h"' | |
382 | ;; | |
383 | m68*-*-netbsd* | m68*-*-openbsd*) | |
384 | COREFILE=netbsd-core.lo | |
385 | ;; | |
386 | m68*-apple-aux*) | |
387 | COREFILE=trad-core.lo | |
388 | TRAD_HEADER='"hosts/m68kaux.h"' | |
389 | ;; | |
eb1e0e80 NC |
390 | m88*-*-sysv4*) |
391 | ;; | |
392 | m88*-motorola-sysv*) | |
393 | COREFILE=ptrace-core.lo | |
394 | ;; | |
252b5132 RH |
395 | m88*-*-mach3*) |
396 | COREFILE=trad-core.lo | |
397 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
398 | ;; | |
c6f8758f NC |
399 | m88*-*-openbsd*) |
400 | COREFILE=netbsd-core.lo | |
401 | ;; | |
252b5132 RH |
402 | ns32k-pc532-mach) |
403 | COREFILE=trad-core.lo | |
404 | TRAD_HEADER='"hosts/pc532mach.h"' | |
405 | ;; | |
406 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
407 | COREFILE=netbsd-core.lo | |
408 | ;; | |
eb1e0e80 NC |
409 | rs6000-*-lynx*) |
410 | COREFILE=lynx-core.lo | |
411 | ;; | |
e5231592 RS |
412 | changequote(,)dnl |
413 | rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*) | |
414 | changequote([,])dnl | |
eb1e0e80 NC |
415 | COREFILE=rs6000-core.lo |
416 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
417 | ;; | |
653f71ca | 418 | changequote(,)dnl |
83954261 | 419 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
420 | changequote([,])dnl |
421 | COREFILE=rs6000-core.lo | |
422 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
423 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
424 | # have c_impl as a member of struct core_dumpx | |
425 | AC_MSG_CHECKING([for c_impl in struct core_dumpx]) | |
5464f5a1 | 426 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1, |
83954261 AM |
427 | [Define if struct core_dumpx has member c_impl]) |
428 | AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) | |
653f71ca | 429 | ;; |
252b5132 RH |
430 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
431 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
432 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
433 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
434 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
435 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
436 | COREFILE='' ;; | |
252b5132 | 437 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 438 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 439 | s390*-*-*) COREFILE=trad-core.lo ;; |
a38b2659 MK |
440 | sh*-*-netbsd* | sh*-*-openbsd*) |
441 | COREFILE=netbsd-core.lo | |
442 | ;; | |
a9bf1154 | 443 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
444 | COREFILE=netbsd-core.lo |
445 | ;; | |
446 | tahoe-*-*) | |
447 | COREFILE=trad-core.lo | |
448 | TRAD_HEADER='"hosts/tahoe.h"' | |
449 | ;; | |
de6e5e1a NC |
450 | vax-*-netbsd* | vax-*-openbsd*) |
451 | COREFILE=netbsd-core.lo | |
452 | ;; | |
252b5132 RH |
453 | vax-*-ultrix2*) |
454 | COREFILE=trad-core.lo | |
455 | TRAD_HEADER='"hosts/vaxult2.h"' | |
456 | ;; | |
457 | vax-*-ultrix*) | |
458 | COREFILE=trad-core.lo | |
459 | TRAD_HEADER='"hosts/vaxult2.h"' | |
460 | ;; | |
ed84e695 | 461 | vax-*-linux-*) |
f8fc3443 NC |
462 | COREFILE=trad-core.lo |
463 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
464 | ;; | |
252b5132 RH |
465 | vax-*-*) |
466 | COREFILE=trad-core.lo | |
467 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
468 | ;; | |
8bc7f138 L |
469 | x86_64-*-linux*) |
470 | CORE_HEADER='"hosts/x86-64linux.h"' | |
471 | ;; | |
85cfd8d3 MK |
472 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
473 | COREFILE=netbsd-core.lo | |
474 | ;; | |
252b5132 RH |
475 | esac |
476 | ||
477 | case "$COREFILE" in | |
478 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
479 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
480 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
481 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
482 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
483 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
484 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
485 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
486 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
487 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
488 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
489 | esac | |
490 | ||
491 | # ELF corefile support has several flavors, but all of | |
492 | # them use something called <sys/procfs.h> | |
493 | AC_CHECK_HEADERS(sys/procfs.h) | |
494 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
495 | BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t) | |
7ee38065 | 496 | BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t) |
252b5132 | 497 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who) |
7ee38065 | 498 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who) |
252b5132 | 499 | BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t) |
f572a39d | 500 | BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t) |
7ee38065 | 501 | BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t) |
252b5132 | 502 | BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t) |
335e41d4 | 503 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid) |
7ee38065 | 504 | BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t) |
335e41d4 | 505 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid) |
252b5132 | 506 | BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t) |
335e41d4 | 507 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid) |
7ee38065 | 508 | BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t) |
335e41d4 | 509 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid) |
252b5132 | 510 | BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t) |
f572a39d | 511 | BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t) |
252b5132 RH |
512 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context) |
513 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg) | |
16231b7b | 514 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg) |
16e9c715 | 515 | BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t) |
252b5132 RH |
516 | fi |
517 | fi | |
518 | AC_SUBST(COREFILE) | |
519 | AC_SUBST(COREFLAG) | |
8bc7f138 L |
520 | if test -n "$CORE_HEADER"; then |
521 | AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER, | |
522 | [Name of host specific core header file to include in elf.c.]) | |
523 | fi | |
3f9b03b5 AM |
524 | if test -n "$TRAD_HEADER"; then |
525 | AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER, | |
526 | [Name of host specific header file to include in trad-core.c.]) | |
527 | fi | |
252b5132 | 528 | |
51dec227 AM |
529 | # Check if linker supports --as-needed and --no-as-needed options |
530 | AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed, | |
531 | [bfd_cv_ld_as_needed=no | |
532 | if $LD --help 2>/dev/null | grep as-needed > /dev/null; then | |
533 | bfd_cv_ld_as_needed=yes | |
534 | fi | |
535 | ]) | |
536 | ||
537 | LT_LIB_M | |
538 | ||
29670fb9 AM |
539 | # When building a shared libbfd, link against the pic version of libiberty |
540 | # so that apps that use libbfd won't need libiberty just to satisfy any | |
541 | # libbfd references. | |
542 | # We can't do that if a pic libiberty is unavailable since including non-pic | |
543 | # code would insert text relocations into libbfd. | |
544 | SHARED_LIBADD= | |
545 | SHARED_LDFLAGS= | |
546 | if test "$enable_shared" = "yes"; then | |
bb2a49f2 | 547 | changequote(,)dnl |
c5cb8442 | 548 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
bb2a49f2 | 549 | changequote([,])dnl |
c5cb8442 | 550 | if test -n "$x"; then |
29670fb9 | 551 | SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" |
c5cb8442 | 552 | fi |
29670fb9 AM |
553 | |
554 | # More hacks to build DLLs on Windows. | |
555 | case "${host}" in | |
556 | *-*-cygwin*) | |
557 | SHARED_LDFLAGS="-no-undefined" | |
558 | SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
39691762 | 559 | ;; |
29670fb9 | 560 | esac |
51dec227 AM |
561 | |
562 | if test -n "$SHARED_LIBADD"; then | |
563 | if test -n "$LIBM"; then | |
564 | if test x"$bfd_cv_ld_as_needed" = xyes; then | |
565 | # Link against libm only when needed. Put -lc, -lm inside -Wl | |
566 | # to stop libtool reordering these options. | |
567 | SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" | |
568 | else | |
569 | SHARED_LIBADD="$SHARED_LIBADD $LIBM" | |
570 | fi | |
571 | fi | |
572 | fi | |
29670fb9 AM |
573 | fi |
574 | AC_SUBST(SHARED_LDFLAGS) | |
575 | AC_SUBST(SHARED_LIBADD) | |
252b5132 RH |
576 | |
577 | # target stuff: | |
578 | ||
579 | # Canonicalize the secondary target names. | |
580 | if test -n "$enable_targets" ; then | |
581 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
582 | do | |
6d83c84b | 583 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
584 | if test -n "$result" ; then |
585 | canon_targets="$canon_targets $result" | |
586 | else | |
587 | # Allow targets that config.sub doesn't recognize, like "all". | |
588 | canon_targets="$canon_targets $targ" | |
589 | fi | |
590 | done | |
591 | fi | |
592 | ||
593 | all_targets=false | |
594 | defvec= | |
595 | selvecs= | |
08f74004 | 596 | assocvecs= |
252b5132 RH |
597 | selarchs= |
598 | TDEFINES= | |
599 | for targ in $target $canon_targets | |
600 | do | |
601 | if test "x$targ" = "xall"; then | |
602 | all_targets=true | |
08f74004 | 603 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
604 | else |
605 | . $srcdir/config.bfd | |
606 | if test "x$targ" = "x$target"; then | |
607 | defvec=$targ_defvec | |
608 | fi | |
609 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
610 | selarchs="$selarchs $targ_archs" | |
611 | TDEFINES="$TDEFINES $targ_cflags" | |
612 | fi | |
613 | done | |
614 | AC_SUBST(TDEFINES) | |
615 | ||
616 | # This processing still needs to be done if we're to decide properly whether | |
617 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
618 | # the default or any other explicitly requested target requires it; it | |
619 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 620 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
621 | # used. |
622 | ||
623 | # uniq the default and selected vectors in all the configured targets. | |
624 | f="" | |
625 | for i in $selvecs ; do | |
626 | case " $f " in | |
627 | *" $i "*) ;; | |
628 | *) f="$f $i" ;; | |
629 | esac | |
630 | done | |
631 | selvecs="$f" | |
632 | ||
633 | ||
08f74004 AM |
634 | # uniq the associated vectors in all the configured targets. |
635 | f="" | |
636 | for i in $assocvecs ; do | |
637 | case " $f " in | |
638 | *" $i "*) ;; | |
639 | *) f="$f $i" ;; | |
640 | esac | |
641 | done | |
642 | assocvecs="$f" | |
643 | ||
644 | ||
252b5132 RH |
645 | # uniq the architectures in all the configured targets. |
646 | f="" | |
647 | for i in $selarchs ; do | |
648 | case " $f " in | |
649 | *" $i "*) ;; | |
650 | *) f="$f $i" ;; | |
651 | esac | |
652 | done | |
653 | selarchs="$f" | |
654 | ||
655 | # Target backend .o files. | |
656 | tb= | |
657 | ||
ea7a63de | 658 | elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo |
6de2ae4a | 659 | elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
660 | |
661 | for vec in $selvecs | |
662 | do | |
69263e90 | 663 | target_size=32 |
252b5132 RH |
664 | case "$vec" in |
665 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
666 | # with the two vector lists in targets.c. For the same reason, |
667 | # use one entry per line, even though this leads to long lines. | |
252b5132 | 668 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; |
341ca622 | 669 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
670 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
671 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
672 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 673 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
674 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
675 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
676 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
677 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
7148cc28 NC |
678 | arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; |
679 | arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; | |
680 | arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
681 | arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
dc810e39 AM |
682 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; |
683 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
684 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
685 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
686 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
687 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
688 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
689 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
690 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
92dd4511 | 691 | bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
73c3cd1c | 692 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 693 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
0f64bb02 | 694 | bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
48d502e1 | 695 | bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
dc810e39 | 696 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 697 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
b38cadfb NC |
698 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
699 | bfd_elf32_bigarm_nacl_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
8059fb19 | 700 | bfd_elf32_bigarm_symbian_vec) |
b38cadfb | 701 | tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
8059fb19 | 702 | bfd_elf32_bigarm_vxworks_vec) |
b38cadfb | 703 | tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
0a44bf69 RS |
704 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
705 | bfd_elf32_bigmips_vxworks_vec) | |
706 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
3d3d428f | 707 | bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; |
0949843d | 708 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 709 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
8059fb19 | 710 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
711 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
712 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 713 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
cfb8c092 | 714 | bfd_elf32_epiphany_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;; |
252b5132 | 715 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 716 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 717 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
20135e4c | 718 | bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; |
e01b0e69 | 719 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 720 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 721 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 722 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 723 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
5a68afcf RM |
724 | bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; |
725 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; | |
726 | bfd_elf32_i386_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; | |
727 | bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; | |
728 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; | |
9d751335 | 729 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 730 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 731 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
cbe79dfe TG |
732 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; |
733 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf";; | |
cf88bb9f | 734 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 735 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
84e94c90 NC |
736 | bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; |
737 | bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; | |
252b5132 | 738 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 739 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 740 | bfd_elf32_littlearm_symbian_vec) |
b38cadfb | 741 | tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
4e7fd91e | 742 | bfd_elf32_littlearm_vxworks_vec) |
b38cadfb NC |
743 | tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
744 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
745 | bfd_elf32_littlearm_nacl_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
0a44bf69 RS |
746 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
747 | bfd_elf32_littlemips_vxworks_vec) | |
748 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
e729279b | 749 | bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; |
252b5132 | 750 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
751 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
752 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
753 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
754 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
755 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
756 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
757 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
758 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
759 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
d9352518 DB |
760 | bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; |
761 | bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; | |
7ba29e2a | 762 | bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; |
252b5132 RH |
763 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; |
764 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
d031aafb | 765 | bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; |
2469cfa2 | 766 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
0a44bf69 RS |
767 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
768 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
aeffff67 RS |
769 | bfd_elf32_ntradbigmips_vec | bfd_elf32_ntradbigmips_freebsd_vec) |
770 | tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
771 | bfd_elf32_ntradlittlemips_vec | bfd_elf32_ntradlittlemips_freebsd_vec) | |
772 | tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
b3baf5d0 | 773 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 774 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
775 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
776 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
9d8504b1 PB |
777 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
778 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
7b8e7dad | 779 | bfd_elf32_powerpc_freebsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
9d8504b1 | 780 | bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
99c513f6 | 781 | bfd_elf32_rl78_vec) tb="$tb elf32-rl78.lo $elf" ;; |
c7927a3c NC |
782 | bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; |
783 | bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; | |
4c422395 | 784 | bfd_elf32_rx_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; |
a85d7ed0 | 785 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
02b1cb40 NC |
786 | bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;; |
787 | bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;; | |
eb1e0e80 NC |
788 | # FIXME: We include cofflink.lo not because it's needed for |
789 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
790 | # which needs it but does not list it. Should be fixed in right place. | |
55e6e397 RS |
791 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
792 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
793 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
794 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
795 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
796 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
797 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
8e45593f | 798 | bfd_elf32_shbfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
55e6e397 | 799 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
8e45593f | 800 | bfd_elf32_shfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
55e6e397 RS |
801 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; |
802 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
803 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
804 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
805 | bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
7b12cedc | 806 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
55e6e397 | 807 | bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; |
910600e9 | 808 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
1360ba76 | 809 | bfd_elf32_sparc_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
910600e9 | 810 | bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
e9f53129 | 811 | bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; |
40b36596 JM |
812 | bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; |
813 | bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
2a616379 BS |
814 | bfd_elf32_tic6x_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; |
815 | bfd_elf32_tic6x_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
816 | bfd_elf32_tic6x_elf_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
817 | bfd_elf32_tic6x_elf_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
fb6cedde WL |
818 | bfd_elf32_tilegx_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; |
819 | bfd_elf32_tilegx_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; | |
aa137e4d | 820 | bfd_elf32_tilepro_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;; |
aeffff67 RS |
821 | bfd_elf32_tradbigmips_vec | bfd_elf32_tradbigmips_freebsd_vec) |
822 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
823 | bfd_elf32_tradlittlemips_vec | bfd_elf32_tradlittlemips_freebsd_vec) | |
824 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 825 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 826 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 827 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 828 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
d70c5fc7 | 829 | bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; |
f6c1a2d5 | 830 | bfd_elf32_xgate_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;; |
e0001a05 NC |
831 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
832 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 833 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
834 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
835 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
0a44bf69 | 836 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
dc810e39 AM |
837 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
838 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
cbe79dfe TG |
839 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; |
840 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
841 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
202e2356 | 842 | bfd_elf64_ia64_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 ;; |
dc810e39 | 843 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
0a44bf69 | 844 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
3c3bdf30 | 845 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
846 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
847 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
7b8e7dad | 848 | bfd_elf64_powerpc_freebsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 | 849 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; |
341ca622 AM |
850 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
851 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
852 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
853 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
854 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
855 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
910600e9 | 856 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
71a75f6f | 857 | bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
1360ba76 | 858 | bfd_elf64_sparc_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
fb6cedde WL |
859 | bfd_elf64_tilegx_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; |
860 | bfd_elf64_tilegx_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; | |
aeffff67 RS |
861 | bfd_elf64_tradbigmips_vec | bfd_elf64_tradbigmips_freebsd_vec) |
862 | tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
863 | bfd_elf64_tradlittlemips_vec | bfd_elf64_tradlittlemips_freebsd_vec) | |
864 | tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
5a68afcf RM |
865 | bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; |
866 | bfd_elf64_x86_64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
867 | bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
868 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
869 | bfd_elf32_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;; | |
870 | bfd_elf32_x86_64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;; | |
871 | bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
872 | bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
873 | bfd_elf64_k1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
874 | bfd_elf64_k1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
3c3bdf30 | 875 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
876 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
877 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
878 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
879 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 880 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 881 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 882 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 883 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
884 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
885 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
886 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
887 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
888 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
889 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
890 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
891 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
892 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
893 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
894 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
895 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
99ad8390 | 896 | x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;; |
252b5132 RH |
897 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; |
898 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
899 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
900 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
901 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
902 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 903 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
904 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
905 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
906 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
907 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
99ad8390 NC |
908 | x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; |
909 | x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; | |
252b5132 RH |
910 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
911 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
912 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
913 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
914 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
915 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
916 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
917 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
918 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
252b5132 | 919 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; |
252b5132 RH |
920 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
921 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 922 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 923 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
93509525 KD |
924 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
925 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
926 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
154a1ee5 | 927 | mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;; |
618b7301 | 928 | mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;; |
277d1b5e ILT |
929 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
930 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
931 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
932 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
933 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
934 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 935 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 936 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 937 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 938 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 939 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 940 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 941 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 942 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
943 | pef_vec) tb="$tb pef.lo" ;; |
944 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 945 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
ce3c775b | 946 | plugin_vec) tb="$tb plugin.lo" ;; |
6768c14a | 947 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 948 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 949 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 950 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 951 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 952 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 953 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 954 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 955 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
956 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
957 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 958 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 959 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
960 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
961 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
962 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
963 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
964 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 965 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 966 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
967 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
968 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
969 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
970 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
971 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
972 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
973 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
974 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 975 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 976 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 977 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 978 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 979 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 980 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 981 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 982 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 983 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 984 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 985 | versados_vec) tb="$tb versados.lo" ;; |
95e34ef7 | 986 | vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; |
4b544b64 | 987 | vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; |
252b5132 RH |
988 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; |
989 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
3c9b82ba | 990 | z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;; |
c0524131 | 991 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;; |
252b5132 | 992 | |
341ca622 AM |
993 | # These appear out of order in targets.c |
994 | srec_vec) tb="$tb srec.lo" ;; | |
995 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
996 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
997 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
998 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
999 | ||
252b5132 RH |
1000 | "") ;; |
1001 | *) AC_MSG_ERROR(*** unknown target vector $vec) ;; | |
1002 | esac | |
69263e90 AM |
1003 | |
1004 | if test ${target_size} = 64; then | |
1005 | target64=true | |
1006 | fi | |
1007 | if test x"${vec}" = x"${defvec}"; then | |
1008 | bfd_default_target_size=${target_size} | |
1009 | fi | |
252b5132 RH |
1010 | done |
1011 | ||
1012 | # Target architecture .o files. | |
1013 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
1014 | # filesystems. | |
d031aafb | 1015 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` |
252b5132 RH |
1016 | |
1017 | # Weed out duplicate .o files. | |
1018 | f="" | |
1019 | for i in $tb ; do | |
1020 | case " $f " in | |
1021 | *" $i "*) ;; | |
1022 | *) f="$f $i" ;; | |
1023 | esac | |
1024 | done | |
1025 | tb="$f" | |
1026 | ||
1027 | f="" | |
1028 | for i in $ta ; do | |
1029 | case " $f " in | |
1030 | *" $i "*) ;; | |
1031 | *) f="$f $i" ;; | |
1032 | esac | |
1033 | done | |
1034 | ta="$f" | |
1035 | ||
1036 | bfd_backends="$tb" | |
1037 | bfd_machines="$ta" | |
1038 | ||
1039 | if test x${all_targets} = xtrue ; then | |
1040 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
1041 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
1042 | selvecs= | |
7256a114 | 1043 | havevecs=-DHAVE_all_vecs |
252b5132 | 1044 | selarchs= |
08f74004 AM |
1045 | test -n "$assocvecs" && |
1046 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
1047 | else # all_targets is true |
1048 | # Only set these if they will be nonempty, for the clever echo. | |
1049 | havevecs= | |
08f74004 | 1050 | assocvecs= |
252b5132 RH |
1051 | test -n "$selvecs" && |
1052 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
1053 | test -n "$selvecs" && | |
1054 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
1055 | test -n "$selarchs" && | |
1056 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
1057 | fi # all_targets is true | |
1058 | ||
1059 | case ${host64}-${target64}-${want64} in | |
1060 | *true*) | |
1061 | wordsize=64 | |
21e40a48 | 1062 | bfd64_libs='$(BFD64_LIBS)' |
252b5132 | 1063 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 1064 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
252b5132 RH |
1065 | AC_MSG_WARN([You have requested a 64 bit BFD configuration, but]) |
1066 | AC_MSG_WARN([your compiler may not have a 64 bit integral type]) | |
1067 | fi | |
966abd70 HPN |
1068 | if test -n "$GCC" ; then |
1069 | bad_64bit_gcc=no; | |
1070 | AC_MSG_CHECKING([for gcc version with buggy 64-bit support]) | |
1071 | # Add more tests for gcc versions with non-working 64-bit support here. | |
1072 | AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:], | |
1073 | bad_64bit_gcc=yes; | |
1074 | AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]), | |
1075 | AC_MSG_RESULT(no)) | |
1076 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 | 1077 | AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration]) |
966abd70 HPN |
1078 | fi |
1079 | fi | |
252b5132 RH |
1080 | ;; |
1081 | false-false-false) | |
1082 | wordsize=32 | |
1083 | all_backends='$(BFD32_BACKENDS)' | |
1084 | ;; | |
1085 | esac | |
1086 | ||
1087 | AC_SUBST(wordsize) | |
21e40a48 | 1088 | AC_SUBST(bfd64_libs) |
252b5132 RH |
1089 | AC_SUBST(all_backends) |
1090 | AC_SUBST(bfd_backends) | |
1091 | AC_SUBST(bfd_machines) | |
69263e90 | 1092 | AC_SUBST(bfd_default_target_size) |
252b5132 | 1093 | |
ce3c775b NC |
1094 | if test "$plugins" = "yes"; then |
1095 | supports_plugins=1 | |
1096 | else | |
1097 | supports_plugins=0 | |
1098 | fi | |
1099 | AC_SUBST(supports_plugins) | |
1100 | ||
1012372a AC |
1101 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
1102 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
1103 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
1104 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
1105 | # upward compatible. | |
2e6f4fae | 1106 | AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64) |
1012372a | 1107 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then |
2ba49b59 | 1108 | AC_CHECK_SIZEOF(off_t) |
1012372a | 1109 | fi |
ccba357f AM |
1110 | AC_MSG_CHECKING([file_ptr type]) |
1111 | bfd_file_ptr="long" | |
1112 | bfd_ufile_ptr="unsigned long" | |
1113 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
1114 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
1115 | bfd_file_ptr=BFD_HOST_64_BIT |
1116 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
1117 | fi | |
1118 | AC_MSG_RESULT($bfd_file_ptr) | |
1119 | AC_SUBST(bfd_file_ptr) | |
1120 | AC_SUBST(bfd_ufile_ptr) | |
1121 | ||
1122 | ||
252b5132 RH |
1123 | tdefaults="" |
1124 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
1125 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 1126 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 | 1127 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
252b5132 | 1128 | AC_SUBST(tdefaults) |
7256a114 | 1129 | AC_SUBST(havevecs) |
252b5132 RH |
1130 | |
1131 | dnl AC_CHECK_HEADERS(sys/mman.h) | |
1132 | AC_FUNC_MMAP | |
1133 | AC_CHECK_FUNCS(madvise mprotect) | |
1134 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
1135 | true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;; | |
1136 | esac | |
1137 | ||
1138 | rm -f doc/config.status | |
5464f5a1 | 1139 | AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in]) |
20e95c23 DJ |
1140 | |
1141 | dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of | |
1142 | dnl our two separate POTFILES. Yuck. | |
1143 | AC_CONFIG_COMMANDS([default], | |
1144 | [[ | |
1145 | case "$srcdir" in | |
1146 | .) srcdirpre= ;; | |
1147 | *) srcdirpre='$(srcdir)/' ;; | |
1148 | esac | |
1149 | POFILES= | |
1150 | GMOFILES= | |
1151 | for lang in dummy $OBSOLETE_ALL_LINGUAS; do | |
1152 | if test $lang != dummy; then | |
1153 | POFILES="$POFILES $srcdirpre$lang.po" | |
1154 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
1155 | fi | |
1156 | done | |
1157 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ | |
1158 | -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ | |
1159 | -e "s,@POFILES@,$POFILES," \ | |
1160 | -e "s,@GMOFILES@,$GMOFILES," \ | |
1161 | po/Makefile.in > po/Makefile]],[[]]) | |
108a6f8e | 1162 | |
31dd3154 | 1163 | dnl Required by html, pdf, install-pdf and install-html |
108a6f8e CD |
1164 | AC_SUBST(datarootdir) |
1165 | AC_SUBST(docdir) | |
1166 | AC_SUBST(htmldir) | |
31dd3154 | 1167 | AC_SUBST(pdfdir) |
108a6f8e | 1168 | |
5464f5a1 | 1169 | AC_OUTPUT |