Define S_TOP to contain an absolute pathname to the top of the source
authorTheodore Tso <tytso@mit.edu>
Mon, 2 Mar 1998 03:19:12 +0000 (03:19 +0000)
committerTheodore Tso <tytso@mit.edu>
Mon, 2 Mar 1998 03:19:12 +0000 (03:19 +0000)
tree.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10487 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/ChangeLog
src/kadmin/configure.in

index 506f2162f0ada99c3eceec74e21944fae1220b53..d212a965582dcdced79ff16bc6f169571c5b803c 100644 (file)
@@ -1,7 +1,7 @@
-Sat Feb 28 19:37:23 1998  Tom Yu  <tlyu@mit.edu>
+Sun Mar  1 21:12:08 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
-       * configure.in: Fix up somewhat (SRCTOP -> SRCTOPDIR) and also get
-       directory correct.  (`pwd`/..)
+       * configure.in: Define S_TOP to contain an absolute pathname
+               to the top of the source tree.
 
 Fri Feb 27 23:32:38 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
index 597b8cdc2151701746a5af2c45d5648623d9f53b..55bc58588c354cc7655befc79740196fad67bfe7 100644 (file)
@@ -24,10 +24,17 @@ if test "$have_PERL" = perl -a "$have_RUNTEST" = runtest -a "$TCL_LIBS" != ""; t
 fi
 AC_SUBST(DO_TEST) 
 dnl The following are substituted into testing/scripts/env-setup.sh
-SRCTOPDIR=`pwd`/$srcdir/..
-AC_SUBST(SRCTOPDIR)
 RBUILD=`pwd`/..
 AC_SUBST(RBUILD)
+case "$srcdir" in
+/*)
+       S_TOP=$srcdir/..
+       ;;
+*)
+       S_TOP=`pwd`/$srcdir/..
+       ;;
+esac
+AC_SUBST(S_TOP)
 AC_PATH_PROG(PERL,perl)
 AC_PATH_PROG(EXPECT,expect)
 dnl