diff options
author | Alan Modra <amodra@gmail.com> | 2002-05-17 10:34:03 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-05-17 10:34:03 +0000 |
commit | a703a6ea4e3f045d27dd30a8011e8e00e740c6a8 (patch) | |
tree | af6da9bb5cefc69fa9393bb58d2bc2ba16c617b1 /bfd/acinclude.m4 | |
parent | 2250ee0c644b35616236bd3a5f9ba842542e72d9 (diff) | |
download | gdb-a703a6ea4e3f045d27dd30a8011e8e00e740c6a8.zip gdb-a703a6ea4e3f045d27dd30a8011e8e00e740c6a8.tar.gz gdb-a703a6ea4e3f045d27dd30a8011e8e00e740c6a8.tar.bz2 |
* acinclude.m4 (AM_INSTALL_LIBBFD): New.
* configure.in: Invoke AM_INSTALL_LIBBFD.
* Makefile.am (install-data-local): Revert 2002-05-13. Move to..
(install_libbfd): .. New target.
(uninstall_libbfd): Likewise.
(install-bfdlibLTLIBRARIES): Likewise.
(uninstall-bfdlibLTLIBRARIES): Likewise.
(bfdlibdir): New.
(bfdincludedir): New.
(lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
Diffstat (limited to 'bfd/acinclude.m4')
-rw-r--r-- | bfd/acinclude.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bfd/acinclude.m4 b/bfd/acinclude.m4 index 5391294..b3c6ccf 100644 --- a/bfd/acinclude.m4 +++ b/bfd/acinclude.m4 @@ -123,3 +123,27 @@ ifelse(yes,no,[ AC_DEFUN([CY_WITH_NLS],) AC_SUBST(INTLLIBS) ]) + +AC_DEFUN([AM_INSTALL_LIBBFD], +[AC_MSG_CHECKING([whether to install libbfd]) + AC_ARG_ENABLE(install-libbfd, +[ --install-libbfd controls installation of libbfd and related headers], + install_libbfd_p=$enableval, + if test "${host}" = "${target}" -o "$enable_shared" = "yes"; then + install_libbfd_p=yes + else + install_libbfd_p=no + fi) + AC_MSG_RESULT($install_libbfd_p) + AM_CONDITIONAL(INSTALL_LIBBFD, test $install_libbfd_p = yes) + # libbfd.a is a host library containing target dependent code + bfdlibdir='$(libdir)' + bfdincludedir='$(includedir)' + if test "${host}" != "${target}"; then + bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib' + bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include' + fi + AC_SUBST(bfdlibdir) + AC_SUBST(bfdincludedir) +] +) |