(check-unix): Set up the environment properly to load shared
libraries when running the test programs.
+ * configure.in: Enable dependency support for shared lib.
+ * Makefile.in (test_et, t_com_err): Depend on, and link against,
+ the new support library.
+ (SHLIB_EXPDEPS, SHLIB_EXPLIBS, SHLIB_RDIRS, SHLIB_DIRS): New
+ variables.
+
2004-04-29 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (LIBINITFUNC, LIBFINIFUNC): New variables.
DEPLIBS=
SHLIB_LIBS=
+SHLIB_EXPDEPS = $(SUPPORT_DEPLIB)
+SHLIB_EXPLIBS=-l$(SUPPORT_LIBNAME)
SHLIB_LDFLAGS= $(LDFLAGS) @SHLIB_RPATH_DIRS@
SHLIB_LIBDIRS= @SHLIB_LIBDIRS@
+SHLIB_RDIRS=$(KRB5_LIBDIR)
+SHLIB_DIRS=-L$(TOPLIBD)
COM_ERR_HDR=$(BUILDTOP)$(S)include$(S)com_err.h
PROG_RPATH=$(KRB5_LIBDIR)
PROG_LIBPATH=-L$(TOPLIBD)
-test_et: test_et.o test1.o test2.o $(COM_ERR_DEPLIB)
- $(CC_LINK) -o test_et test_et.o test1.o test2.o -lcom_err
-t_com_err: t_com_err.o et1.o et2.o $(COM_ERR_DEPLIB)
- $(CC_LINK) -o t_com_err t_com_err.o et1.o et2.o -lcom_err
+test_et: test_et.o test1.o test2.o $(COM_ERR_DEPLIB) $(SUPPORT_DEPLIB)
+ $(CC_LINK) -o test_et test_et.o test1.o test2.o -lcom_err $(SUPPORT_LIB)
+t_com_err: t_com_err.o et1.o et2.o $(COM_ERR_DEPLIB) $(SUPPORT_DEPLIB)
+ $(CC_LINK) -o t_com_err t_com_err.o et1.o et2.o -lcom_err $(SUPPORT_LIB)
all-unix:: compile_et includes
AC_HEADER_STDARG
AC_CHECK_HEADERS(stdlib.h)
KRB5_BUILD_LIBOBJS
-KRB5_BUILD_LIBRARY
+KRB5_BUILD_LIBRARY_WITH_DEPS
KRB5_BUILD_PROGRAM dnl for test programs
KRB5_RUN_FLAGS dnl for test programs
V5_AC_OUTPUT_MAKEFILE