1 dnl Process this file with autoconf to produce a configure script.
10 AM_INIT_AUTOMAKE(bfd, 2.10.91)
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 build_warnings="-W -Wall"
54 AC_ARG_ENABLE(build-warnings,
55 [ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
56 [case "${enableval}" in
58 no) build_warnings="-w";;
59 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
60 build_warnings="${build_warnings} ${t}";;
61 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
62 build_warnings="${t} ${build_warnings}";;
63 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
65 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
66 echo "Setting warning flags = $build_warnings" 6>&1
69 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
70 WARN_CFLAGS="${build_warnings}"
74 AM_CONFIG_HEADER(config.h:config.in)
76 if test -z "$target" ; then
77 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
94 # Permit host specific settings.
95 . ${srcdir}/configure.host
100 BFD_HOST_64BIT_LONG=0
101 BFD_HOST_64_BIT_DEFINED=0
104 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
105 BFD_HOST_64BIT_LONG=1
106 elif test "x${HOST_64BIT_TYPE}" != "x"; then
107 BFD_HOST_64_BIT_DEFINED=1
108 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
109 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
111 AC_SUBST(BFD_HOST_64BIT_LONG)
112 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
113 AC_SUBST(BFD_HOST_64_BIT)
114 AC_SUBST(BFD_HOST_U_64_BIT)
118 AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
119 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
122 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
126 BFD_NEED_DECLARATION(strstr)
127 BFD_NEED_DECLARATION(malloc)
128 BFD_NEED_DECLARATION(realloc)
129 BFD_NEED_DECLARATION(free)
130 BFD_NEED_DECLARATION(getenv)
132 # If we are configured native, pick a core file support file.
136 if test "${target}" = "${host}"; then
142 COREFILE=trad-core.lo
143 TRAD_HEADER='"hosts/alphalinux.h"'
145 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
146 alpha*-*-*) COREFILE=osf-core.lo ;;
147 arm-*-riscix) COREFILE=trad-core.lo ;;
148 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
149 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
150 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
151 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
152 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
154 COREFILE=trad-core.lo
155 TRAD_HEADER='"hosts/i370linux.h"'
159 i[3456]86-sequent-bsd*)
161 COREFILE=trad-core.lo
162 TRAD_HEADER='"hosts/symmetry.h"'
165 i[3456]86-sequent-sysv4*) ;;
166 i[3456]86-sequent-sysv*)
168 COREFILE=trad-core.lo
169 TRAD_HEADER='"hosts/symmetry.h"'
172 i[3456]86-*-bsd* | i[3456]86-*-freebsd*)
174 COREFILE=trad-core.lo
175 TRAD_HEADER='"hosts/i386bsd.h"'
178 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
180 COREFILE=netbsd-core.lo
183 i[3456]86-esix-sysv3*)
185 COREFILE=trad-core.lo
186 TRAD_HEADER='"hosts/esix.h"'
189 i[3456]86-*-sco3.2v5*)
191 COREFILE=sco5-core.lo
194 i[3456]86-*-sco* | i[3456]86-*-isc*)
196 COREFILE=trad-core.lo
197 TRAD_HEADER='"hosts/i386sco.h"'
202 COREFILE=trad-core.lo
203 TRAD_HEADER='"hosts/i386mach3.h"'
206 i[3456]86-*-linux-gnu*)
208 COREFILE=trad-core.lo
209 TRAD_HEADER='"hosts/i386linux.h"'
212 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
213 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
215 i860-*-mach3* | i860-*-osf1*)
216 COREFILE=trad-core.lo
217 TRAD_HEADER='"hosts/i860mach3.h"'
220 COREFILE=trad-core.lo
221 TRAD_HEADER='"hosts/mipsbsd.h"'
224 COREFILE=trad-core.lo
225 TRAD_HEADER='"hosts/mipsmach3.h"'
227 mips-*-netbsd* | mips*-*-openbsd*)
228 COREFILE=netbsd-core.lo
231 COREFILE=trad-core.lo
232 TRAD_HEADER='"hosts/decstation.h"'
234 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
235 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
236 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
238 COREFILE=trad-core.lo
239 TRAD_HEADER='"hosts/mipsmach3.h"'
242 mips-*-sysv* | mips-*-riscos*)
243 COREFILE=trad-core.lo
244 TRAD_HEADER='"hosts/riscos.h"'
247 COREFILE=trad-core.lo
248 TRAD_HEADER='"hosts/news-mips.h"'
251 COREFILE=trad-core.lo
252 TRAD_HEADER='"hosts/dpx2.h"'
254 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
256 COREFILE=trad-core.lo
257 TRAD_HEADER='"hosts/hp300bsd.h"'
260 COREFILE=trad-core.lo
261 TRAD_HEADER='"hosts/m68klinux.h"'
264 COREFILE=trad-core.lo
265 TRAD_HEADER='"hosts/delta68.h"'
268 COREFILE=trad-core.lo
269 TRAD_HEADER='"hosts/news.h"'
271 m68*-*-netbsd* | m68*-*-openbsd*)
272 COREFILE=netbsd-core.lo
275 COREFILE=trad-core.lo
276 TRAD_HEADER='"hosts/m68kaux.h"'
279 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
281 COREFILE=trad-core.lo
282 TRAD_HEADER='"hosts/m88kmach3.h"'
285 COREFILE=trad-core.lo
286 TRAD_HEADER='"hosts/pc532mach.h"'
288 ns32k-*-netbsd* | ns32k-*-openbsd*)
289 COREFILE=netbsd-core.lo
291 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
293 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
295 COREFILE=rs6000-core.lo
296 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
298 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
299 rs6000-*-*) COREFILE=rs6000-core.lo ;;
300 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
301 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
302 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
304 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
305 sparc-*-netbsd* | sparc-*-openbsd*)
306 COREFILE=netbsd-core.lo
309 COREFILE=trad-core.lo
310 TRAD_HEADER='"hosts/tahoe.h"'
313 COREFILE=trad-core.lo
314 TRAD_HEADER='"hosts/vaxult2.h"'
317 COREFILE=trad-core.lo
318 TRAD_HEADER='"hosts/vaxult2.h"'
321 COREFILE=trad-core.lo
322 TRAD_HEADER='"hosts/vaxbsd.h"'
327 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
328 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
329 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
330 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
331 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
332 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
333 osf-core.lo) COREFLAG=-DOSF_CORE ;;
334 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
335 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
336 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
337 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
340 # ELF corefile support has several flavors, but all of
341 # them use something called <sys/procfs.h>
342 AC_CHECK_HEADERS(sys/procfs.h)
343 if test "$ac_cv_header_sys_procfs_h" = yes; then
344 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
345 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
346 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
347 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
348 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
349 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
350 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
351 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
352 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
353 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
354 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
355 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
356 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
357 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
358 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
359 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
364 if test -n "$TRAD_HEADER"; then
365 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
366 [Name of host specific header file to include in trad-core.c.])
369 # Horrible hacks to build DLLs on Windows.
374 if test "$enable_shared" = "yes"; then
375 WIN32LDFLAGS="-no-undefined"
376 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
380 AC_SUBST(WIN32LDFLAGS)
381 AC_SUBST(WIN32LIBADD)
385 # Canonicalize the secondary target names.
386 if test -n "$enable_targets" ; then
387 for targ in `echo $enable_targets | sed 's/,/ /g'`
389 result=`$ac_config_sub $targ 2>/dev/null`
390 if test -n "$result" ; then
391 canon_targets="$canon_targets $result"
393 # Allow targets that config.sub doesn't recognize, like "all".
394 canon_targets="$canon_targets $targ"
404 for targ in $target $canon_targets
406 if test "x$targ" = "xall"; then
410 if test "x$targ" = "x$target"; then
413 selvecs="$selvecs $targ_defvec $targ_selvecs"
414 selarchs="$selarchs $targ_archs"
415 TDEFINES="$TDEFINES $targ_cflags"
420 # This processing still needs to be done if we're to decide properly whether
421 # 64-bit support needs to be compiled in. Currently, it will be included if
422 # the default or any other explicitly requested target requires it; it
423 # will not be included on a 32-bit host if no 64-bit target is requested, and
424 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
427 # uniq the default and selected vectors in all the configured targets.
429 for i in $selvecs ; do
438 # uniq the architectures in all the configured targets.
440 for i in $selarchs ; do
448 # Target backend .o files.
451 elf="elf.lo elflink.lo dwarf1.lo"
456 # This list is alphabetized to make it easy to compare
457 # with the two vector lists in targets.c.
458 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
459 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
460 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
461 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
462 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
463 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
464 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
465 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
466 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
467 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
468 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
469 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
470 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
471 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
472 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
473 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
474 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
475 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
476 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
477 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
478 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
479 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
480 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo peigen.lo cofflink.lo"
482 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
484 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"
486 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
488 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
490 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
491 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
492 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
493 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
494 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
495 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
496 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
497 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
498 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
499 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
500 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
502 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
503 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
504 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
505 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
506 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
507 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
508 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
509 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
510 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf" ;;
511 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
512 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
513 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
514 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
515 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
516 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
518 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
519 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
520 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
521 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
522 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
523 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
524 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
525 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
526 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
527 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
528 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
529 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
530 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
531 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
532 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
533 bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
534 bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
535 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
536 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
537 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
538 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
539 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
541 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
543 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
545 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
546 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
547 cris_aout_vec) tb="$tb aout-cris.lo" ;;
548 demo_64_vec) tb="$tb demo64.lo aout64.lo"
550 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
551 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
552 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
553 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
555 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
556 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
557 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
558 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
559 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
560 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
561 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
562 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
563 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
564 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
565 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
566 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
567 i386msdos_vec) tb="$tb i386msdos.lo" ;;
568 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
569 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
570 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
571 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
572 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
573 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
574 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
575 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
576 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
577 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
578 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
579 ieee_vec) tb="$tb ieee.lo" ;;
580 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
581 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
582 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
583 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
584 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
585 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
586 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
587 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
588 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
589 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
590 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
591 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
592 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
593 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
594 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
595 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
596 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
597 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
598 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"
600 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
601 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
603 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
604 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
605 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
606 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
607 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
608 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
609 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
610 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
611 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
612 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
613 ppcboot_vec) tb="$tb ppcboot.lo" ;;
614 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
615 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
616 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
617 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
618 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
619 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
620 som_vec) tb="$tb som.lo" ;;
621 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
622 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
623 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
624 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
625 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
626 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
627 srec_vec) tb="$tb srec.lo" ;;
628 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
629 symbolsrec_vec) tb="$tb srec.lo" ;;
630 tekhex_vec) tb="$tb tekhex.lo" ;;
631 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
632 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
633 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
634 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
635 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
636 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
637 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
638 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
639 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
640 versados_vec) tb="$tb versados.lo" ;;
641 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
643 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
644 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
645 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
646 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
649 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
653 # Target architecture .o files.
654 # A couple of CPUs use shorter file names to avoid problems on DOS
656 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
658 # Weed out duplicate .o files.
680 if test x${all_targets} = xtrue ; then
681 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
682 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
686 else # all_targets is true
687 # Only set these if they will be nonempty, for the clever echo.
689 test -n "$selvecs" &&
690 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
691 test -n "$selvecs" &&
692 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
693 test -n "$selarchs" &&
694 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
695 fi # all_targets is true
697 case ${host64}-${target64}-${want64} in
700 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
701 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
702 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
703 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
708 all_backends='$(BFD32_BACKENDS)'
713 AC_SUBST(all_backends)
714 AC_SUBST(bfd_backends)
715 AC_SUBST(bfd_machines)
718 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
719 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
720 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
721 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
724 dnl AC_CHECK_HEADERS(sys/mman.h)
726 AC_CHECK_FUNCS(madvise mprotect)
727 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
728 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
731 rm -f doc/config.status
732 AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in,
733 [sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])