$NetBSD: patch-aa,v 1.1.1.1 2004/03/30 18:07:18 jlam Exp $ --- aclocal.m4.orig Wed May 28 00:06:24 2003 +++ aclocal.m4 @@ -970,8 +970,10 @@ dnl Pull in the necessary stuff to creat AC_DEFUN(KRB5_BUILD_LIBRARY, [KRB5_BUILD_LIBRARY_WITH_DEPS -# null out SHLIB_EXPFLAGS because we lack any dependencies -SHLIB_EXPFLAGS=]) +# null out SHLIB_EXPFLAGS and LALIB_EXPFLAGS because we lack any dependencies +SHLIB_EXPFLAGS= +LALIB_EXPFLAGS= +]) dnl dnl KRB5_BUILD_LIBRARY_STATIC @@ -1015,6 +1017,9 @@ AC_SUBST(SHLIBVEXT) AC_SUBST(SHLIBSEXT) AC_SUBST(DEPLIBEXT) AC_SUBST(PFLIBEXT) +AC_SUBST(LALIBEXT) +AC_SUBST(LALIB_EXPFLAGS) +AC_SUBST(LIBTOOL_TAIL) AC_SUBST(LIBINSTLIST)]) dnl @@ -1028,6 +1033,7 @@ AC_SUBST(OBJLISTS) AC_SUBST(STOBJEXT) AC_SUBST(SHOBJEXT) AC_SUBST(PFOBJEXT) +AC_SUBST(LAOBJEXT) AC_SUBST(PICFLAGS) AC_SUBST(PROFFLAGS)]) @@ -1077,6 +1083,8 @@ else LIBINSTLIST=install-static DEPLIBEXT=$STLIBEXT fi +DEPSTLIBEXT=$STLIBEXT +AC_SUBST(DEPSTLIBEXT) # Check whether to build shared libraries. AC_ARG_ENABLE([shared], @@ -1138,8 +1146,35 @@ fi], SHLIBSEXT=.so.s-nobuild )dnl +# Check whether to build libtool archives. +AC_ARG_ENABLE([pkgsrc-libtool], +[ --enable-pkgsrc-libtool build libtool archives], +[ + case $enableval in + /*) LIBTOOL=$enableval ;; + *) LIBTOOL=libtool ;; + esac + AC_MSG_RESULT([Enabling libtool archives.]) + LIBLIST='lib$(LIB)$(LALIBEXT)' + LIBLINKS='$(TOPLIBD)/lib$(LIB)$(LALIBEXT)' + OBJLISTS=OBJS.LA + LIBINSTLIST=install-libtool + DEPLIBEXT=$LALIBEXT + DEPSTLIBEXT=$LALIBEXT + CC_LINK="$CC_LINK_LIBTOOL" + INSTALL_LIBTOOL='$(LIBTOOL) --mode=install' + if test "$krb5_force_static" = yes; then + LIBTOOL_TAIL= + fi +], [ + LIBTOOL=: + INSTALL_LIBTOOL= +]) +AC_SUBST(LIBTOOL) +AC_SUBST(INSTALL_LIBTOOL) + if test -z "$LIBLIST"; then - AC_MSG_ERROR([must enable one of shared or static libraries]) + AC_MSG_ERROR([must enable one of shared, libtool or static libraries]) fi # Check whether to build profiled libraries.