diff options
author | Sam Hartman <hartmans@mit.edu> | 1995-06-23 00:59:54 +0000 |
---|---|---|
committer | Sam Hartman <hartmans@mit.edu> | 1995-06-23 00:59:54 +0000 |
commit | 6cd88aa348286b0535b95b84f54beb95abd29a92 (patch) | |
tree | d631441a2fd3127093ba06aff89f4cd7acb60d49 /src/util/et/configure.in | |
parent | d84d59a45a9203ba179a213f5d2281be4da07b00 (diff) | |
download | krb5-6cd88aa348286b0535b95b84f54beb95abd29a92.tar.gz krb5-6cd88aa348286b0535b95b84f54beb95abd29a92.tar.xz krb5-6cd88aa348286b0535b95b84f54beb95abd29a92.zip |
Changes to support AIX shared libraries. The interactions
between configure.in and Makefile.in change significantly for shared
libraries: the static library target is no longer specified in the
Makefile, although a rule to make the static library is specified.
Also, none of the libraries have any more unresolved symbols. As
discussed, libcom_err.a is made shared and symlinks are created in
lib.
These changes sort of work, although I suspect cleanup is
necessary. I don't think it breaks too much on other platforms.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6126 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/et/configure.in')
-rw-r--r-- | src/util/et/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/et/configure.in b/src/util/et/configure.in index 0263436ca0..717dfc0924 100644 --- a/src/util/et/configure.in +++ b/src/util/et/configure.in @@ -24,4 +24,19 @@ AC_FUNC_CHECK(strerror,AC_DEFINE(HAS_STRERROR)) AC_CHECK_HEADERS(stdarg.h) AC_HAVE_HEADERS(stdlib.h) CopySrcHeader(com_err.h,$(BUILDTOP)/include) +V5_MAKE_SHARED_LIB(libcom_err) +AC_ARG_ENABLE([shared], +[ --enable-shared build shared libraries],[ +LinkFileDir([$](TOPLIBD)/libcom_err.[$](SHEXT), libcom_err.[$](SHEXT), ../util/et) +AppendRule([all -unix:: [$](TOPLIBD)/libcom_err.$(SHEXT)]) +AppendRule([install:: libcom_err.[$](SHEXT) + [$](INSTALL_DATA) libcom_err.[$](SHEXT) \ + [$](DESTDIR)[$](KRB5_SHLIBDIR)[$](S)libcom_err.[$](SHEXT)]) +])dnl +if test -n "$krb5_cv_enable_staticlibs" ; then + AppendRule([install:: libcom_err.[$](STEXT) + [$](INSTALL_DATA) libcom_err.[$](STEXT) [$](DESTDIR)[$](KRB5_LIBDIR)[$](S)libcom_err.[$](STEXT)]) + LinkFileDir([$](TOPLIBD)/libcom_err.[$](STEXT),libcom_err.[$](STEXT),../util/et) + AppendRule([all: [$](TOPLIBD)/libcom_err.[$](STEXT)]) +fi V5_AC_OUTPUT_MAKEFILE |