aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-28 23:16:18 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-28 23:16:18 +0000
commit2e013bb7663d652d32ca4a6f1ecc0768e4a2e8e5 (patch)
treeb11f2f53afb2dd3a7c898c659d03fddf2179af63 /gas/configure.in
parent7fcf0be5e7d96c5813944e156518c64d2223ebec (diff)
downloadgdb-2e013bb7663d652d32ca4a6f1ecc0768e4a2e8e5.zip
gdb-2e013bb7663d652d32ca4a6f1ecc0768e4a2e8e5.tar.gz
gdb-2e013bb7663d652d32ca4a6f1ecc0768e4a2e8e5.tar.bz2
Fri Mar 28 18:03:19 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
* configure.in: Add AC_ARG_ENABLE for commonbfdlib. If it is set, set OPCODES_LIB to empty. * configure: Rebuild.
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in21
1 files changed, 19 insertions, 2 deletions
diff --git a/gas/configure.in b/gas/configure.in
index d102e31..596fc19 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -34,6 +34,13 @@ AC_ARG_ENABLE(shared,
*opcodes*) shared=true shared_opcodes=true ;;
*) shared=false ;;
esac])dnl
+AC_ARG_ENABLE(commonbfdlib,
+[ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
+[case "${enableval}" in
+ yes) commonbfdlib=true ;;
+ no) commonbfdlib=false ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
+esac])dnl
# Generate a header file -- gets more post-processing by Makefile later.
AC_CONFIG_HEADER(conf)
@@ -288,6 +295,8 @@ changequote([,])dnl
sparc-*-aout | sparc*-*-vxworks*)
fmt=aout em=sparcaout ;;
sparc-*-coff) fmt=coff ;;
+ sparc-*-linux*aout*) fmt=aout em=linux ;;
+ sparc-*-linux*) fmt=elf em=linux ;;
sparc-*-lynxos*) fmt=coff em=lynx ;;
sparc-fujitsu-none) fmt=aout ;;
sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
@@ -614,8 +623,6 @@ yes)
esac
;;
esac
-AC_SUBST(OPCODES_DEP)
-AC_SUBST(OPCODES_LIB)
case "${need_bfd}" in
yes)
@@ -645,10 +652,20 @@ yes)
fi
;;
esac
+
+ if test "${commonbfdlib}" = "true"; then
+ # when a shared libbfd is built with --enable-commonbfdlib,
+ # all of libopcodes is available in libbfd.so
+ OPCODES_LIB=
+ fi
;;
esac
+
AC_SUBST(BFDDEP)
AC_SUBST(BFDLIB)
+AC_SUBST(OPCODES_DEP)
+AC_SUBST(OPCODES_LIB)
+
AC_SUBST(ALL_OBJ_DEPS)
AC_DEFINE_UNQUOTED(TARGET_ALIAS, "${target_alias}")