From 08da9430ab586bb20058d3ecced36587fb1634f6 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Mon, 19 Jun 1995 21:15:33 +0000 Subject: [PATCH] Must protect $(FOO) with a backslash, since $(FOO) is specially interpreted by bash (and Korn shells). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6095 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ChangeLog | 5 +++++ src/aclocal.m4 | 23 +++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f33473f86..a58df94b6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,11 @@ Mon Jun 19 11:23:47 1995 Tom Yu (tlyu@dragons-lair) * BADSYMS: list of bad symbols found in various source files; generated by util/getsyms +Sun Jun 18 20:57:35 1995 Theodore Y. Ts'o + + * aclocal.m4: Must protect $(FOO) with a backslash, since $(FOO) + is specially interpreted by bash (and Korn shells). + Fri Jun 16 00:45:03 1995 Tom Yu (tlyu@dragons-lair) * aclocal.m4: ARCHIVE gets a "cqv" to shut it up about the warning diff --git a/src/aclocal.m4 b/src/aclocal.m4 index f0d650f77..851b23b6f 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -353,11 +353,11 @@ else if test $withval = yes; then AC_MSG_RESULT(built in krb4 support) KRB4_LIB='-lkrb4' - DEPKRB4_LIB='$(TOPLIBD)/libkrb4.a' + DEPKRB4_LIB='\$(TOPLIBD)/libkrb4.a' KRB4_CRYPTO_LIB='-ldes425' - DEPKRB4_CRYPTO_LIB='$(TOPLIBD)/libdes425.a' + DEPKRB4_CRYPTO_LIB='\$(TOPLIBD)/libdes425.a' KDB4_LIB='-lkdb4' - DEPKDB4_LIB='$(TOPLIBD)/libkdb4.a' + DEPKDB4_LIB='\$(TOPLIBD)/libkdb4.a' LDARGS= krb5_cv_build_krb4_libs=yes krb5_cv_krb4_libdir= @@ -366,7 +366,7 @@ else KRB4_LIB="-lkrb" DEPKRB4_LIB="$withval/lib/libkrb.a" KRB4_CRYPTO_LIB='-ldes425' - DEPKRB4_CRYPTO_LIB='$(TOPLIBD)/libdes425.a' + DEPKRB4_CRYPTO_LIB='\$(TOPLIBD)/libdes425.a' KDB4_LIB="-lkdb" DEPKDB4_LIB="$withval/lib/libkdb.a" LDARGS="-L$withval/lib" @@ -742,10 +742,10 @@ LD_SHLIBDIR_PREFIX=$krb5_cv_shlibs_dirhead AC_SUBST(LD_SHLIBDIR_PREFIX) SHLIB_RPATH_DIRS= if test $krb5_cv_shlibs_use_dirs = yes ; then - SHLIB_RPATH_DIRS="$krb5_cv_shlibs_dirhead [$](KRB5_SHLIBDIR) $krb5_cv_shlibs_dirhead `pwd`[$](S)[$](TOPLIBD)" + SHLIB_RPATH_DIRS="$krb5_cv_shlibs_dirhead \$(KRB5_SHLIBDIR) $krb5_cv_shlibs_dirhead `pwd`/\$(TOPLIBD)" fi AC_SUBST(SHLIB_RPATH_DIRS) -SHLIB_LIBDIRS="-L[$](TOPLIBD)" +SHLIB_LIBDIRS="-L\$(TOPLIBD)" if test X$krb5_cv_krb4_libdir != X ; then SHLIB_LIBDIRS="$SHLIB_LIBDIRS -L$krb5_cv_krb4_libdir" fi @@ -775,8 +775,7 @@ AC_SUBST(DO_MAKE_SHLIB) ])dnl dnl -dnl This rule adds the additional Makefile fragment necessary to actually -dnl link with the shared library +dnl Defines LDARGS correctly so that we actually link with the shared library dnl define(V5_USE_SHARED_LIB,[ AC_ARG_WITH([shared], @@ -788,18 +787,18 @@ withval=yes if test "$krb5_cv_shlibs_enabled" = yes ; then if test "$withval" = yes; then AC_MSG_RESULT(Using shared libraries) - LDARGS="$krb5_cv_shlibs_ldflag -L[$](TOPLIBD) $LDARGS" + LDARGS="$krb5_cv_shlibs_ldflag -L\$(TOPLIBD) $LDARGS" if test "$krb5_cv_exe_need_dirs" = yes; then - LDARGS="$LDARGS $krb5_cv_shlibs_dirhead [$](KRB5_SHLIBDIR) $krb5_cv_shlibs_dirhead `pwd`[$](S)[$](TOPLIBD)" + LDARGS="$LDARGS $krb5_cv_shlibs_dirhead \$(KRB5_SHLIBDIR) $krb5_cv_shlibs_dirhead `pwd`/\$(TOPLIBD)" fi SHLIB_TAIL_COMP=$krb5_cv_shlibs_tail_comp AC_SUBST(SHLIB_TAIL_COMP) else AC_MSG_RESULT(Using archive libraries) - LDARGS="$krb5_cv_noshlibs_ldflag -L[$](TOPLIBD) $LDARGS" + LDARGS="$krb5_cv_noshlibs_ldflag -L\$(TOPLIBD) $LDARGS" fi else - LDARGS="-L[$](TOPLIBD) $LDARGS" + LDARGS="-L\$(TOPLIBD) $LDARGS" fi AC_SUBST(LDARGS) ])dnl -- 2.26.2