variables that require Makefile substitutions.
* krb5-config.in: Remore $(PURE) from output. Handle variables
$(RPATH_FLAG) and $(LDFLAGS).
If config/shlib.conf is changed again, we will detect brokeness in
krb5-config before the release.
ticket: 1311
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15120
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-01-13 Ezra Peisach <epeisach@bu.edu>
+
+ * Makefile.in (check-unix): Test to see if krb5-config outputs
+ variables that require Makefile substitutions.
+
+ * krb5-config.in: Remore $(PURE) from output. Handle variables
+ $(RPATH_FLAG) and $(LDFLAGS).
+
2003-01-10 Ken Raeburn <raeburn@mit.edu>
* aclocal.m4 (KRB5_BUILD_LIBRARY_WITH_DEPS): Require
krb5-config: $(srcdir)/krb5-config.in $(thisconfigdir)/config.status
cd $(thisconfigdir) && $(SHELL) config.status krb5-config
+# Test to ensure that krb5-config does not spit out things like
+# $(PURE) or $(LDFLAGS) in case someone changes config/shlib.conf
+check-unix:: krb5-config
+ @echo "Testing if krb5-config outputs shell variables"
+ @if `./krb5-config --libs kdb | egrep -s '\\$$'`; then \
+ echo "Error './krb5-config --libs kdb' contains shell variables"; \
+ exit 1; \
+ fi
+ @if `./krb5-config --cflags | egrep -s '\\$$'`; then \
+ echo "Error './krb5-config --cflags' contains shell variables"; \
+ exit 1; \
+ fi
+ @echo "krb5-config appears ok"
#!/bin/sh
-# Copyright 2001 by the Massachusetts Institute of Technology.
+# Copyright 2001, 2002, 2003 by the Massachusetts Institute of Technology.
# All Rights Reserved.
#
# Export of this software from the United States of America may
CC_LINK='@CC_LINK@'
KRB4_LIB=@KRB4_LIB@
DES425_LIB=@DES425_LIB@
-
+LDFLAGS='@LDFLAGS@'
+RPATH_FLAG='@RPATH_FLAG@'
LIBS='@LIBS@'
GEN_LIB=@GEN_LIB@
if test -n "$do_libs"; then
# Ugly gross hack for our build tree
lib_flags=`echo $CC_LINK | sed -e 's/\$(CC)//' \
+ -e 's/\$(PURE)//' \
-e 's#\$(PROG_RPATH)#'$libdir'#' \
- -e 's#\$(PROG_LIBPATH)#-L'$libdir'#'`
+ -e 's#\$(PROG_LIBPATH)#-L'$libdir'#' \
+ -e 's#\$(RPATH_FLAG)#'"$RPATH_FLAG"'#' \
+ -e 's#\$(LDFLAGS)#'"$LDFLAGS"'#'`
if test $library = 'kdb'; then
lib_flags="$lib_flags -lkdb5 -ldb"
fi
if test $library = 'krb5'; then
- lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err $GEN_LIB"
+ lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err $LIBS $GEN_LIB"
fi
echo $lib_flags