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
This commit is contained in:
@@ -6,11 +6,11 @@ AC_DEFUN([rk_OTP],[
|
|||||||
AC_REQUIRE([rk_DB])dnl
|
AC_REQUIRE([rk_DB])dnl
|
||||||
AC_ARG_ENABLE(otp,
|
AC_ARG_ENABLE(otp,
|
||||||
AC_HELP_STRING([--disable-otp],[if you don't want OTP support]))
|
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
|
if test "$enable_otp" = yes -a "$db_type" = unknown; then
|
||||||
AC_MSG_ERROR([OTP requires a NDBM compatible library])
|
AC_MSG_ERROR([OTP requires a NDBM/DB compatible library])
|
||||||
fi
|
fi
|
||||||
if test "$enable_otp" != no; then
|
if test "$enable_otp" != no; then
|
||||||
if test "$ac_cv_func_dbm_firstkey" = yes; then
|
if test "$db_type" != unknown; then
|
||||||
enable_otp=yes
|
enable_otp=yes
|
||||||
else
|
else
|
||||||
enable_otp=no
|
enable_otp=no
|
||||||
|
Reference in New Issue
Block a user