1178825Sdfrdnl $Id: otp.m4 14147 2004-08-25 14:14:01Z joda $ 2102644Snectardnl 3102644Snectardnl check requirements for OTP library 4102644Snectardnl 5102644SnectarAC_DEFUN([rk_OTP],[ 6102644SnectarAC_REQUIRE([rk_DB])dnl 7102644SnectarAC_ARG_ENABLE(otp, 8178825Sdfr AS_HELP_STRING([--disable-otp],[if you don't want OTP support])) 9102644Snectarif test "$enable_otp" = yes -a "$db_type" = unknown; then 10102644Snectar AC_MSG_ERROR([OTP requires a NDBM/DB compatible library]) 11102644Snectarfi 12102644Snectarif test "$enable_otp" != no; then 13102644Snectar if test "$db_type" != unknown; then 14102644Snectar enable_otp=yes 15102644Snectar else 16102644Snectar enable_otp=no 17102644Snectar fi 18102644Snectarfi 19102644Snectarif test "$enable_otp" = yes; then 20102644Snectar AC_DEFINE(OTP, 1, [Define if you want OTP support in applications.]) 21102644Snectar LIB_otp='$(top_builddir)/lib/otp/libotp.la' 22102644Snectar AC_SUBST(LIB_otp) 23102644Snectarfi 24102644SnectarAC_MSG_CHECKING([whether to enable OTP library]) 25102644SnectarAC_MSG_RESULT($enable_otp) 26102644SnectarAM_CONDITIONAL(OTP, test "$enable_otp" = yes)dnl 27102644Snectar]) 28