+Mon Oct 14 07:01:34 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * Makefile.in: Only attempt to build programs if Tcl present.
+
+ * configure.in: Test for existance of Tcl libraries.
+
Thu Sep 26 11:31:57 1996 Ezra Peisach (epeisach@kangaroo.mit.edu)
* Makefile.in: Link with -ltcl -lm. Order the Makefile so programs
-# XXX Buzz!
-TCLINC = /mit/gnu/include
-#TCLLIB=-ltcl7.5 -lm
-TCLLIB=-L/mit/gnu/lib -ltcl -lm
+TCLINC=@TCL_INC@
+TCLLIB=@TCL_LIB@ -lm
-CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE) -I$(TCLINC)
+CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE) $(TCLINC)
SRCS = tcl_ovsec_kadm.c tcl_kadm5.c test.c
OBJS = tcl_ovsec_kadm.o tcl_kadm5.o test.o
CLNTPROG= ovsec_kadm_clnt_tcl
SRVPROG = ovsec_kadm_srv_tcl
+DO_ALL=@DO_ALL@
-all:: $(CLNTPROG) $(SRVPROG)
+all:: all-$(DO_ALL)
+
+all-::
+ @echo "Tcl is not installed on this system. The kadm5 test suite cannot be run."
+
+all-tcl:: $(CLNTPROG) $(SRVPROG)
$(SRVPROG): $(OBJS) $(SRVDEPLIBS)
$(CC) $(LDFLAGS) $(LDARGS) -o $(SRVPROG) $(OBJS) $(SRVLIBS) $(TCLLIB)