Support SS_LIB=... at configure time
authorKen Raeburn <raeburn@mit.edu>
Tue, 3 Sep 2002 23:18:41 +0000 (23:18 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 3 Sep 2002 23:18:41 +0000 (23:18 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14828 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4
src/config/ChangeLog
src/config/pre.in

index bac1817994953f49df3ee7187fa1328b130258d7..25b579c1a2fcfecf1e291ea7106e61ecba5f6155 100644 (file)
@@ -2,6 +2,8 @@
 
        * aclocal.m4 (KRB_INCLUDE): Put in-tree include dirs before
        previous contents of CPPFLAGS.
+       (KRB5_AC_CHOOSE_SS): Let user specify SS_LIB=..., substitute it
+       into generated makefiles.
 
 2002-09-03  Ezra Peisach  <epeisach@bu.edu>
 
index 51bd0b7e7e6be6a878915a4b8e1e056e0ff4f971..b54b07c4be5cba1fb04f85bf9152840ce5de0a82 100644 (file)
@@ -1435,11 +1435,15 @@ AC_SUBST(COM_ERR_VERSION)
 AC_DEFUN([KRB5_AC_CHOOSE_SS],[
 AC_ARG_WITH(system-ss,
            AC_HELP_STRING(--with-system-ss,use system -lss and mk_cmds @<:@default: use a private version@:>@))
+AC_ARG_VAR(SS_LIB,[system libraries for 'ss' package, if --with-system-ss was specified [-lss]])
 if test "x$with_system_ss" = xyes ; then
   SS_VERSION=sys
-  # check for various libraries we might need
+  # todo: check for various libraries we might need
+  # in the meantime...
+  test "x${SS_LIB+set}" = xset || SS_LIB=-lss
 else
   SS_VERSION=k5
 fi
+AC_SUBST(SS_LIB)
 AC_SUBST(SS_VERSION)
 ])
index 27b611715ab2c16b3c65bd24ffac51b8425a3c2c..1988dca22570e5b9e70e39b3ce6880c8744ee04c 100644 (file)
@@ -3,6 +3,7 @@
        * libobj.in (.c.so, .c.po): Put LOCALINCLUDES before CPPFLAGS.
 
        * pre.in (ALL_CFLAGS): Put LOCALINCLUDES before CPPFLAGS.
+       (SS_LIB-sys): Use @SS_LIB@ substitution.
 
 2002-08-29  Ken Raeburn  <raeburn@mit.edu>
 
index 0379a03bb174b54b4454c8924788e93b8bb8bc90..b9237ffdea119094b23067b1c45bda4e5aade8ef 100644 (file)
@@ -246,7 +246,7 @@ SS_DEPS-k5  = $(BUILDTOP)/include/ss/ss.h $(BUILDTOP)/include/ss/ss_err.h
 GEN_LIB                = @GEN_LIB@
 
 SS_LIB         = $(SS_LIB-@SS_VERSION@)
-SS_LIB-sys     = -lss
+SS_LIB-sys     = @SS_LIB@
 SS_LIB-k5      = $(TOPLIBD)/libss.a
 KDB5_LIB       = -lkdb5
 DB_LIB         = -ldb