From 5e07bb3437885eb8eea492893b5102209129419c Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Fri, 17 May 2002 16:04:23 +0000 Subject: [PATCH] add hooks for ndbm_wrap git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10988 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/otp/Makefile.am | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/otp/Makefile.am b/lib/otp/Makefile.am index 77f793591..d4b7d8e71 100644 --- a/lib/otp/Makefile.am +++ b/lib/otp/Makefile.am @@ -16,6 +16,12 @@ lib_LTLIBRARIES = libotp.la libotp_la_LDFLAGS = -version-info 1:3:1 libotp_la_LIBADD = $(LIB_des) $(LIB_roken) $(LIB_NDBM) +if HAVE_DB3 +ndbm_wrap = ndbm_wrap.c ndbm_wrap.h +else +ndbm_wrap = +endif + libotp_la_SOURCES = \ otp.c \ otp_challenge.c \ @@ -26,4 +32,13 @@ libotp_la_SOURCES = \ otp_verify.c \ otp_locl.h \ otp_md.h \ - roken_rename.h + roken_rename.h \ + $(ndbm_wrap) + +$(libotp_la_OBJECTS): $(ndbm_wrap) + +ndbm_wrap.c: + $(LN_S) $(srcdir)/../roken/ndbm_wrap.c . +ndbm_wrap.h: + (echo '#define dbm_rename(X) __otp_ ## X'; cat $(srcdir)/../roken/ndbm_wrap.h) > ndbm_wrap.h +