aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in114
1 files changed, 94 insertions, 20 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index fbf0ae4..4f44d9b 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -3,7 +3,7 @@ AC_INIT(libbfd.c)
AC_ARG_ENABLE(64-bit-bfd,
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
-[case "{$enableval}" in
+[case "${enableval}" in
yes) want64=true ;;
no) want64=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
@@ -50,6 +50,76 @@ else
fi
AC_SUBST_FILE(host_makefile_frag)
+# If we are configured native, pick a core file support file.
+COREFILE=
+COREFLAG=
+if test "${target}" = "${host}"; then
+ case "${host}" in
+ alpha-*-*) COREFILE=osf-core.o ;;
+ arm-*-riscix) COREFILE=trad-core.o ;;
+ hppa*-*-hpux*) COREFILE=hpux-core.o ;;
+ hppa*-*-hiux*) COREFILE=hpux-core.o ;;
+ hppa*-*-bsd*) COREFILE="hpux-core.o hppabsd-core.o"
+ COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
+ i[345]86-sequent-bsd*) COREFILE=trad-core.o ;;
+ i[345]86-sequent-sysv4*) ;;
+ i[345]86-sequent-sysv*) COREFILE=trad-core.o ;;
+ i[345]86-*-bsd*) COREFILE=trad-core.o ;;
+ i[345]86-*-freebsd*) COREFILE=trad-core.o ;;
+ i[345]86-*-netbsd*) COREFILE=trad-core.o ;;
+ i[345]86-esix-sysv3*) COREFILE=trad-core.o ;;
+ i[345]86-*-sco*) COREFILE=trad-core.o ;;
+ i[345]86-*-mach3*) COREFILE=trad-core.o ;;
+ i[345]86-*-linux*) COREFILE=trad-core.o ;;
+ i[345]86-*-isc*) COREFILE=trad-core.o ;;
+ i[345]86-*-aix*) COREFILE=aix386-core.o ;;
+ mips-dec-bsd*) COREFILE=trad-core.o ;;
+ mips-dec-mach3*) COREFILE=trad-core.o ;;
+ mips-dec-*) COREFILE=trad-core.o ;;
+ mips-sgi-irix4*) COREFILE=irix-core.o ;;
+ mips-sgi-irix5*) COREFILE=irix-core.o ;;
+ mips-*-mach3*) COREFILE=trad-core.o ;;
+ mips-*-sysv4*) ;;
+ mips-*-sysv*) COREFILE=trad-core.o ;;
+ mips-*-riscos*) COREFILE=trad-core.o ;;
+ mips-sony-bsd*) COREFILE=trad-core.o ;;
+ m68*-bull*-sysv*) COREFILE=trad-core.o ;;
+ m68*-hp-hpux*) COREFILE=hpux-core.o ;;
+ m68*-hp-bsd*) COREFILE=trad-core.o ;;
+ m68*-motorola-sysv*) COREFILE=ptrace-core.o ;;
+ m68*-sony-*) COREFILE=trad-core.o ;;
+ m88*-*-sysv4*) ;;
+ m88*-motorola-sysv*) COREFILE=trad-core.o ;;
+ m88*-*-mach3*) COREFILE=trad-core.o ;;
+ ns32k-pc532-mach) COREFILE=trad-core.o ;;
+ rs6000-*-lynx*) COREFILE=lynx-core.o ;;
+ rs6000-*-aix4*) COREFILE=rs6000-core.o
+ COREFLAG=-DALTERNATE_AIX_CORE_FORMAT ;;
+ rs6000-*-*) COREFILE=rs6000-core.o ;;
+ powerpc-*-aix4*) COREFILE=rs6000-core.o
+ COREFLAG=-DALTERNATE_AIX_CORE_FORMAT ;;
+ powerpc-*-aix*) COREFILE=rs6000-core.o ;;
+ tahoe-*-*) COREFILE=trad-core.o ;;
+ vax-*-ultrix2*) COREFILE=trad-core.o ;;
+ vax-*-ultrix*) COREFILE=trad-core.o ;;
+ vax-*-*) COREFILE=trad-core.o ;;
+ esac
+
+ case "$COREFILE" in
+ aix386-core.o) COREFLAG=-DAIX386_CORE ;;
+ hppabsd-core.o) COREFLAG=-DHPPABSD_CORE ;;
+ hpux-core.o) COREFLAG=-DHPUX_CORE ;;
+ irix-core.o) COREFLAG=-DIRIX_CORE ;;
+ lynx-core.o) COREFLAG=-DLYNX_CORE ;;
+ osf-core.o) COREFLAG=-DOSF_CORE ;;
+ ptrace-core.o) COREFLAG=-DPTRACE_CORE ;;
+ rs6000-core.o) COREFLAG="$COREFLAG -DAIX_CORE" ;;
+ trad-core.o) COREFLAG=-DTRAD_CORE ;;
+ esac
+fi
+AC_SUBST(COREFILE)
+AC_SUBST(COREFLAG)
+
# target stuff:
# Canonicalize the secondary target names.
@@ -145,6 +215,8 @@ changequote([,])dnl
# Target backend .o files.
tb=
+elf="elf.o elflink.o"
+
for vec in $SELECT_VECS
do
case "$vec" in
@@ -152,8 +224,10 @@ do
# with the two vector lists in targets.c.
a29kcoff_big_vec) tb="$tb coff-a29k.o cofflink.o" ;;
a_out_adobe_vec) tb="$tb aout-adobe.o aout32.o stab-syms.o" ;;
- armpe_vec) tb="$tb pe-arm.o cofflink.o " ;;
- armpei_vec) tb="$tb pei-arm.o cofflink.o " ;;
+ armpe_little_vec) tb="$tb pe-arm.o cofflink.o " ;;
+ armpe_big_vec) tb="$tb pe-arm.o cofflink.o " ;;
+ armpei_little_vec) tb="$tb pei-arm.o cofflink.o " ;;
+ armpei_big_vec) tb="$tb pei-arm.o cofflink.o " ;;
aout0_big_vec) tb="$tb aout0.o aout32.o stab-syms.o" ;;
aout_arm_big_vec) tb="$tb aout-arm.o aout32.o stab-syms.o" ;;
aout_arm_little_vec) tb="$tb aout-arm.o aout32.o stab-syms.o" ;;
@@ -163,26 +237,26 @@ do
b_out_vec_big_host) tb="$tb bout.o aout32.o stab-syms.o" ;;
b_out_vec_little_host) tb="$tb bout.o aout32.o stab-syms.o" ;;
# start-sanitize-arc
- bfd_elf32_littlearc_vec) tb="$tb elf32-arc.o elf32.o elf.o" ;;
- bfd_elf32_bigarc_vec) tb="$tb elf32-arc.o elf32.o elf.o" ;;
+ bfd_elf32_littlearc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;;
+ bfd_elf32_bigarc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;;
# end-sanitize-arc
- bfd_elf32_big_generic_vec) tb="$tb elf32-gen.o elf32.o elf.o" ;;
- bfd_elf32_bigmips_vec) tb="$tb elf32-mips.o elf32.o elf.o ecofflink.o" ;;
- bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o elf.o" ;;
- bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o elf.o" ;;
- bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o elf.o" ;;
- bfd_elf32_little_generic_vec) tb="$tb elf32-gen.o elf32.o elf.o" ;;
- bfd_elf32_littlemips_vec) tb="$tb elf32-mips.o elf32.o elf.o ecofflink.o" ;;
- bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o elf.o" ;;
- bfd_elf32_m88k_vec) tb="$tb elf32-m88k.o elf32.o elf.o" ;;
- bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.o elf32.o elf.o" ;;
- bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.o elf32.o elf.o" ;;
- bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o elf.o" ;;
- bfd_elf64_big_generic_vec) tb="$tb elf64-gen.o elf64.o elf.o"
+ bfd_elf32_big_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;;
+ bfd_elf32_bigmips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;;
+ bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o $elf" ;;
+ bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o $elf" ;;
+ bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o $elf" ;;
+ bfd_elf32_little_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;;
+ bfd_elf32_littlemips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;;
+ bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o $elf" ;;
+ bfd_elf32_m88k_vec) tb="$tb elf32-m88k.o elf32.o $elf" ;;
+ bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;;
+ bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;;
+ bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o $elf" ;;
+ bfd_elf64_big_generic_vec) tb="$tb elf64-gen.o elf64.o $elf"
target64=true ;;
- bfd_elf64_little_generic_vec) tb="$tb elf64-gen.o elf64.o elf.o"
+ bfd_elf64_little_generic_vec) tb="$tb elf64-gen.o elf64.o $elf"
target64=true ;;
- bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o elf.o"
+ bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o $elf"
target64=true ;;
cisco_core_vec) tb="$tb cisco-core.o" ;;
demo_64_vec) tb="$tb demo64.o aout64.o stab-syms.o"