+Mon Aug 11 21:16:50 1997 Tom Yu <tlyu@mit.edu>
+
+ * aclocal.m4 (KRB5_BUILD_LIBRARY_STATIC): Fix up some things so
+ that this macro actually works; it's still necessary to precede a
+ call to KRB5_BUILD_LIBOBJS with a call to
+ KRB5_BUILD_LIBRARY_STATIC, though. Basically if you AC_DEFUN
+ something that produces shell code and then calls a macro that
+ AC_REQUIREs something else, then all the AC_REQUIREd stuff ends up
+ coming *before* the shell code in the first macro. I'm not sure
+ there's a reasonable workaround, or whether this can even be
+ considered to be a bug.
+
Wed Aug 6 20:25:49 1997 Tom Yu <tlyu@mit.edu>
* aclocal.m4: Add support for --with-hesiod (and add it to
dnl
dnl Force static library build.
-AC_DEFUN(KRB5_BUILD_LIBRARY_STATIC,
+define(KRB5_BUILD_LIBRARY_STATIC,
+dnl Use define rather than AC_DEFUN to avoid ordering problems.
[krb5_force_static=yes
KRB5_BUILD_LIBRARY])
# Check whether to build shared libraries.
AC_ARG_ENABLE([shared],
[ --enable-shared build shared libraries],
-[if test "$enableval" = yes && test "$krb5_force_static" != yes; then
+[if test "$enableval" = yes; then
case "$SHLIBEXT" in
.so-nobuild)
AC_MSG_WARN([shared libraries not supported on this architecture])
CC_LINK="$CC_LINK_STATIC"
;;
*)
- AC_MSG_RESULT([Enabling shared libraries.])
- LIBLIST="$LIBLIST "'lib$(LIB)$(SHLIBEXT)'
- LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIB)$(SHLIBEXT) $(TOPLIBD)/lib$(LIB)$(SHLIBVEXT)'
- case "$SHLIBSEXT" in
- .so.s-nobuild)
- LIBINSTLIST="$LIBINSTLIST install-shared"
- ;;
- *)
- LIBLIST="$LIBLIST "'lib$(LIB)$(SHLIBSEXT)'
- LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIB)$(SHLIBSEXT)'
- LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
- ;;
- esac
- OBJLISTS="$OBJLISTS OBJS.SH"
+ if test "$krb5_force_static" = "yes"; then
+ AC_MSG_RESULT([Forcing static libraries.])
+ else
+ AC_MSG_RESULT([Enabling shared libraries.])
+ LIBLIST="$LIBLIST "'lib$(LIB)$(SHLIBEXT)'
+ LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIB)$(SHLIBEXT) $(TOPLIBD)/lib$(LIB)$(SHLIBVEXT)'
+ case "$SHLIBSEXT" in
+ .so.s-nobuild)
+ LIBINSTLIST="$LIBINSTLIST install-shared"
+ ;;
+ *)
+ LIBLIST="$LIBLIST "'lib$(LIB)$(SHLIBSEXT)'
+ LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIB)$(SHLIBSEXT)'
+ LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
+ ;;
+ esac
+ OBJLISTS="$OBJLISTS OBJS.SH"
+ fi
DEPLIBEXT=$SHLIBEXT
CC_LINK="$CC_LINK_SHARED"
if test "$STLIBEXT" = "$SHLIBEXT" ; then