From 20d52a6696b4c59bb7c5132157d8219818ce6868 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sun, 19 May 2002 20:51:08 +0000 Subject: [PATCH] check db_type instead of precence of dbm_firstkey git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11006 ec53bebd-3082-4978-b11e-865c3cabbd6b --- cf/otp.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cf/otp.m4 b/cf/otp.m4 index ea199367e..581ff88d4 100644 --- a/cf/otp.m4 +++ b/cf/otp.m4 @@ -6,11 +6,11 @@ AC_DEFUN([rk_OTP],[ AC_REQUIRE([rk_DB])dnl AC_ARG_ENABLE(otp, AC_HELP_STRING([--disable-otp],[if you don't want OTP support])) -if test "$enable_otp" = yes -a "$ac_cv_func_dbm_firstkey" != yes; then - AC_MSG_ERROR([OTP requires a NDBM compatible library]) +if test "$enable_otp" = yes -a "$db_type" = unknown; then + AC_MSG_ERROR([OTP requires a NDBM/DB compatible library]) fi if test "$enable_otp" != no; then - if test "$ac_cv_func_dbm_firstkey" = yes; then + if test "$db_type" != unknown; then enable_otp=yes else enable_otp=no