aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-10-01 18:05:52 +0000
committerIan Lance Taylor <ian@airs.com>1997-10-01 18:05:52 +0000
commit7810074c29d4a625be746d69e214a9a5d4831352 (patch)
tree94f33ffd1ff92693162249c6864b1698f9f03b73 /bfd/configure.in
parent3869b11f87ee327aec785a148fc4e88f63b08c0d (diff)
downloadgdb-7810074c29d4a625be746d69e214a9a5d4831352.zip
gdb-7810074c29d4a625be746d69e214a9a5d4831352.tar.gz
gdb-7810074c29d4a625be746d69e214a9a5d4831352.tar.bz2
* configure.in: Use a diversion to set enable_shared before the
arguments are parsed. * configure: Rebuild.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in21
1 files changed, 14 insertions, 7 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index 72a075b..b92158f 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -1,5 +1,13 @@
dnl Process this file with autoconf to produce a configure script.
dnl
+
+dnl Default to a non shared library. This may be overridden by the
+dnl configure option --enable-shared. The divert stuff is a hack
+dnl to set the variable before argument parsing is done.
+divert(AC_DIVERSION_INIT)
+enable_shared=no
+divert(-1)
+
AC_PREREQ(2.5)
AC_INIT(libbfd.c)
@@ -8,6 +16,11 @@ AC_ISC_POSIX
AM_INIT_AUTOMAKE(bfd, 2.8.2)
+dnl These must be called before AM_PROG_LIBTOOL, because it may want
+dnl to call AC_CHECK_PROG.
+AC_CHECK_TOOL(AR, ar)
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+
AM_PROG_LIBTOOL
AC_ARG_ENABLE(64-bit-bfd,
@@ -62,8 +75,6 @@ AC_PROG_CC
. ${srcdir}/configure.host
AC_SUBST(HDEFINES)
-AC_CHECK_TOOL(AR, ar)
-AC_CHECK_TOOL(RANLIB, ranlib, :)
AM_PROG_INSTALL
BFD_HOST_64BIT_LONG=0
@@ -389,10 +400,8 @@ do
b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
target64=true ;;
-# start-sanitize-arc
bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
-# end-sanitize-arc
bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
@@ -418,9 +427,7 @@ do
bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
-# start-sanitize-v850
bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
-# end-sanitize-v850
bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
target64=true ;;
bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
@@ -436,7 +443,7 @@ do
ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
target64=true ;;
go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
- go32stubbedcoff_vec) tb="$tb coff-stubgo32.lo cofflink.lo" ;;
+ go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
evax_alpha_vec) tb="$tb evax-alpha.lo evax-emh.lo evax-egsd.lo evax-etir.lo evax-misc.lo"
target64=true ;;
h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;