1 dnl Process this file with autoconf to produce a configure script.
10 AM_INIT_AUTOMAKE(bfd, 2.9.5)
12 dnl These must be called before AM_PROG_LIBTOOL, because it may want
13 dnl to call AC_CHECK_PROG.
15 AC_CHECK_TOOL(RANLIB, ranlib, :)
17 dnl Default to a non shared library. This may be overridden by the
18 dnl configure option --enable-shared.
23 AC_ARG_ENABLE(64-bit-bfd,
24 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
25 [case "${enableval}" in
28 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
29 esac],[want64=false])dnl
30 AC_ARG_ENABLE(targets,
31 [ --enable-targets alternative target configurations],
32 [case "${enableval}" in
33 yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
35 no) enable_targets= ;;
36 *) enable_targets=$enableval ;;
38 AC_ARG_ENABLE(commonbfdlib,
39 [ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
40 [case "${enableval}" in
41 yes) commonbfdlib=true ;;
42 no) commonbfdlib=false ;;
43 *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
46 [ --with-mmap try using mmap for BFD input files if available],
48 yes) want_mmap=true ;;
49 no) want_mmap=false ;;
50 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
51 esac],[want_mmap=false])dnl
53 AM_CONFIG_HEADER(config.h:config.in)
55 if test -z "$target" ; then
56 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
73 # Permit host specific settings.
74 . ${srcdir}/configure.host
80 BFD_HOST_64_BIT_DEFINED=0
83 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
85 elif test "x${HOST_64BIT_TYPE}" != "x"; then
86 BFD_HOST_64_BIT_DEFINED=1
87 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
88 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
90 AC_SUBST(BFD_HOST_64BIT_LONG)
91 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
92 AC_SUBST(BFD_HOST_64_BIT)
93 AC_SUBST(BFD_HOST_U_64_BIT)
97 AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
98 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
101 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
105 BFD_NEED_DECLARATION(strstr)
106 BFD_NEED_DECLARATION(malloc)
107 BFD_NEED_DECLARATION(realloc)
108 BFD_NEED_DECLARATION(free)
109 BFD_NEED_DECLARATION(getenv)
111 # If we are configured native, pick a core file support file.
115 if test "${target}" = "${host}"; then
118 COREFILE=trad-core.lo
119 TRAD_HEADER='"hosts/alphalinux.h"'
121 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
122 alpha*-*-*) COREFILE=osf-core.lo ;;
123 arm-*-riscix) COREFILE=trad-core.lo ;;
124 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
125 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
126 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
127 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
128 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
130 COREFILE=trad-core.lo
131 TRAD_HEADER='"hosts/i370linux.h"'
135 i[3456]86-sequent-bsd*)
137 COREFILE=trad-core.lo
138 TRAD_HEADER='"hosts/symmetry.h"'
141 i[3456]86-sequent-sysv4*) ;;
142 i[3456]86-sequent-sysv*)
144 COREFILE=trad-core.lo
145 TRAD_HEADER='"hosts/symmetry.h"'
148 i[3456]86-*-bsd* | i[3456]86-*-freebsd*)
150 COREFILE=trad-core.lo
151 TRAD_HEADER='"hosts/i386bsd.h"'
154 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
156 COREFILE=netbsd-core.lo
159 i[3456]86-esix-sysv3*)
161 COREFILE=trad-core.lo
162 TRAD_HEADER='"hosts/esix.h"'
165 i[3456]86-*-sco3.2v5*)
167 COREFILE=sco5-core.lo
170 i[3456]86-*-sco* | i[3456]86-*-isc*)
172 COREFILE=trad-core.lo
173 TRAD_HEADER='"hosts/i386sco.h"'
178 COREFILE=trad-core.lo
179 TRAD_HEADER='"hosts/i386mach3.h"'
182 i[3456]86-*-linux-gnu*)
184 COREFILE=trad-core.lo
185 TRAD_HEADER='"hosts/i386linux.h"'
188 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
189 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
191 i860-*-mach3* | i860-*-osf1*)
192 COREFILE=trad-core.lo
193 TRAD_HEADER='"hosts/i860mach3.h"'
196 COREFILE=trad-core.lo
197 TRAD_HEADER='"hosts/mipsbsd.h"'
200 COREFILE=trad-core.lo
201 TRAD_HEADER='"hosts/mipsmach3.h"'
203 mips-*-netbsd* | mips*-*-openbsd*)
204 COREFILE=netbsd-core.lo
207 COREFILE=trad-core.lo
208 TRAD_HEADER='"hosts/decstation.h"'
210 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
211 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
212 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
214 COREFILE=trad-core.lo
215 TRAD_HEADER='"hosts/mipsmach3.h"'
218 mips-*-sysv* | mips-*-riscos*)
219 COREFILE=trad-core.lo
220 TRAD_HEADER='"hosts/riscos.h"'
223 COREFILE=trad-core.lo
224 TRAD_HEADER='"hosts/news-mips.h"'
227 COREFILE=trad-core.lo
228 TRAD_HEADER='"hosts/dpx2.h"'
230 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
232 COREFILE=trad-core.lo
233 TRAD_HEADER='"hosts/hp300bsd.h"'
236 COREFILE=trad-core.lo
237 TRAD_HEADER='"hosts/m68klinux.h"'
240 COREFILE=trad-core.lo
241 TRAD_HEADER='"hosts/delta68.h"'
244 COREFILE=trad-core.lo
245 TRAD_HEADER='"hosts/news.h"'
247 m68*-*-netbsd* | m68*-*-openbsd*)
248 COREFILE=netbsd-core.lo
251 COREFILE=trad-core.lo
252 TRAD_HEADER='"hosts/m68kaux.h"'
255 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
257 COREFILE=trad-core.lo
258 TRAD_HEADER='"hosts/m88kmach3.h"'
261 COREFILE=trad-core.lo
262 TRAD_HEADER='"hosts/pc532mach.h"'
264 ns32k-*-netbsd* | ns32k-*-openbsd*)
265 COREFILE=netbsd-core.lo
267 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
268 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
269 rs6000-*-*) COREFILE=rs6000-core.lo ;;
270 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
271 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
272 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
274 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
275 sparc-*-netbsd* | sparc-*-openbsd*)
276 COREFILE=netbsd-core.lo
279 COREFILE=trad-core.lo
280 TRAD_HEADER='"hosts/tahoe.h"'
283 COREFILE=trad-core.lo
284 TRAD_HEADER='"hosts/vaxult2.h"'
287 COREFILE=trad-core.lo
288 TRAD_HEADER='"hosts/vaxult2.h"'
291 COREFILE=trad-core.lo
292 TRAD_HEADER='"hosts/vaxbsd.h"'
297 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
298 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
299 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
300 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
301 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
302 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
303 osf-core.lo) COREFLAG=-DOSF_CORE ;;
304 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
305 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
306 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
307 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
310 # ELF corefile support has several flavors, but all of
311 # them use something called <sys/procfs.h>
312 AC_CHECK_HEADERS(sys/procfs.h)
313 if test "$ac_cv_header_sys_procfs_h" = yes; then
314 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
315 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
316 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
317 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
318 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
319 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
320 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
321 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
322 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
327 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
328 [Name of host specific header file to include in trad-core.c.])
330 # Horrible hacks to build DLLs on Windows.
335 if test "$enable_shared" = "yes"; then
336 WIN32LDFLAGS="-no-undefined"
337 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
341 AC_SUBST(WIN32LDFLAGS)
342 AC_SUBST(WIN32LIBADD)
346 # Canonicalize the secondary target names.
347 if test -n "$enable_targets" ; then
348 for targ in `echo $enable_targets | sed 's/,/ /g'`
350 result=`$ac_config_sub $targ 2>/dev/null`
351 if test -n "$result" ; then
352 canon_targets="$canon_targets $result"
354 # Allow targets that config.sub doesn't recognize, like "all".
355 canon_targets="$canon_targets $targ"
365 for targ in $target $canon_targets
367 if test "x$targ" = "xall"; then
371 if test "x$targ" = "x$target"; then
374 selvecs="$selvecs $targ_defvec $targ_selvecs"
375 selarchs="$selarchs $targ_archs"
376 TDEFINES="$TDEFINES $targ_cflags"
381 # This processing still needs to be done if we're to decide properly whether
382 # 64-bit support needs to be compiled in. Currently, it will be included if
383 # the default or any other explicitly requested target requires it; it
384 # will not be included on a 32-bit host if no 64-bit target is requested, and
385 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
388 # uniq the default and selected vectors in all the configured targets.
390 for i in $selvecs ; do
399 # uniq the architectures in all the configured targets.
401 for i in $selarchs ; do
409 # Target backend .o files.
412 elf="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
417 # This list is alphabetized to make it easy to compare
418 # with the two vector lists in targets.c.
419 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
420 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
421 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
422 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
423 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
424 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
425 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
426 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
427 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
428 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
429 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
430 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
431 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
432 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
433 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
434 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
435 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
436 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
437 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
438 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
439 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
440 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
442 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
443 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
444 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
445 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
446 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
447 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
448 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
449 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
450 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
452 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
453 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
454 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
455 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
456 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
457 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
458 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
459 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
460 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
461 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
462 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
464 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
465 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
466 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
467 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
468 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
469 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
470 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
471 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
472 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
473 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
474 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
475 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
476 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
477 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
478 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
479 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
481 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
483 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
485 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
486 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
487 demo_64_vec) tb="$tb demo64.lo aout64.lo"
489 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
490 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
491 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
492 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
494 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
495 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
496 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
497 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
498 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
499 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
500 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
501 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
502 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
503 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
504 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
505 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
506 i386msdos_vec) tb="$tb i386msdos.lo" ;;
507 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
508 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
509 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
510 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
511 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
512 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
513 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
514 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
515 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
516 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
517 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
518 ieee_vec) tb="$tb ieee.lo" ;;
519 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
520 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
521 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
522 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
523 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
524 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
525 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
526 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
527 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
528 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
529 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
530 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
531 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
532 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
533 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
534 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
535 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
536 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
538 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
539 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
540 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
541 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
542 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
543 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
544 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
545 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
546 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
547 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
548 ppcboot_vec) tb="$tb ppcboot.lo" ;;
549 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
550 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
551 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
552 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
553 som_vec) tb="$tb som.lo" ;;
554 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
555 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
556 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
557 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
558 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
559 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
560 srec_vec) tb="$tb srec.lo" ;;
561 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
562 symbolsrec_vec) tb="$tb srec.lo" ;;
563 tekhex_vec) tb="$tb tekhex.lo" ;;
564 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
565 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
566 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
567 versados_vec) tb="$tb versados.lo" ;;
568 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
570 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
571 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
572 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
573 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
576 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
580 # Target architecture .o files.
581 # A couple of CPUs use shorter file names to avoid problems on DOS
583 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
585 # Weed out duplicate .o files.
607 if test x${all_targets} = xtrue ; then
608 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
609 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
613 else # all_targets is true
614 # Only set these if they will be nonempty, for the clever echo.
616 test -n "$selvecs" &&
617 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
618 test -n "$selvecs" &&
619 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
620 test -n "$selarchs" &&
621 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
622 fi # all_targets is true
624 case ${host64}-${target64}-${want64} in
627 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
628 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
629 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
630 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
635 all_backends='$(BFD32_BACKENDS)'
640 AC_SUBST(all_backends)
641 AC_SUBST(bfd_backends)
642 AC_SUBST(bfd_machines)
645 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
646 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
647 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
648 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
651 dnl AC_CHECK_HEADERS(sys/mman.h)
653 AC_CHECK_FUNCS(madvise mprotect)
654 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
655 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
658 rm -f doc/config.status
659 AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in,
660 [sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])