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