configure.in: Check if runtest is present on system
authorEzra Peisach <epeisach@mit.edu>
Wed, 26 Apr 1995 22:50:29 +0000 (22:50 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 26 Apr 1995 22:50:29 +0000 (22:50 +0000)
Makefile.in: Only run runtest if present on system. If not, echo message
  to user.

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

src/tests/dejagnu/Makefile.in
src/tests/dejagnu/configure.in

index f62849840ed7b8a12e1e074be96e164119d45d0a..9ca7aa48433a5ad2399143723f80aef3812b2da0 100644 (file)
@@ -1,5 +1,12 @@
-RUNTEST = runtest
+RUNTEST = @RUNTEST@
 RUNTESTFLAGS =
 
-check::
+all install::
+
+check:: check-$(RUNTEST)
+
+check-::
+       @echo "Dejagnu is not installed on this system. No tests run."
+
+check-runtest::
        $(RUNTEST) --tool krb --srcdir $(srcdir) $(RUNTESTFLAGS)
index 041a42dd0de5dc71deaac19ae986605404758cc8..b1175f95dd52fc55939ca21055418cc7b775d231 100644 (file)
@@ -5,6 +5,7 @@ AC_CONFIG_FRAGMENTS(.. ../.. ../../.. ../../../.. ../../../../.. ../../../../../
 AC_SUBST(BUILDTOP)
 BUILDTOP=[$]ac_reltopdir
 AC_PROG_INSTALL
+AC_CHECK_PROG(RUNTEST,runtest,runtest)
 WITH_NETLIB
 KRB_INCLUDE
 WITH_KRB5ROOT