From 45b9139cc4637fcbef4c64687fe62679d86f45c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 19 Jun 2011 11:20:48 -0700 Subject: [PATCH] if we are using db1 or db3 (really 3,4,5), when we will need LIB_db_create, otherwise use LIB_NDBM --- lib/otp/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/otp/Makefile.am b/lib/otp/Makefile.am index e0d4c700d..ee275d9d3 100644 --- a/lib/otp/Makefile.am +++ b/lib/otp/Makefile.am @@ -14,15 +14,18 @@ include_HEADERS = otp.h lib_LTLIBRARIES = libotp.la libotp_la_LDFLAGS = -version-info 1:5:1 -libotp_la_LIBADD = $(LIB_hcrypto) $(LIB_roken) $(LIB_NDBM) +libotp_la_LIBADD = $(LIB_hcrypto) $(LIB_roken) if HAVE_DB1 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h +libotp_la_LIBADD += $(LIB_db_create) else if HAVE_DB3 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h +libotp_la_LIBADD += $(LIB_db_create) else ndbm_wrap = +libotp_la_LIBADD += $(LIB_NDBM) endif endif