+
+ ac_prefer_qdbm=yes
+ AC_ARG_WITH(qdbm, AC_HELP_STRING([--without-qdbm], [Don't use qdbm even if it is available]),
+ ac_prefer_qdbm=$withval)
+ if test x$ac_prefer_qdbm != xno; then
+ ac_cv_vlopen=no
+ QDBM_DIRS="$mutt_cv_prefix /usr/local /usr"
+ AC_MSG_CHECKING([for vlopen])
+ for d in $QDBM_DIRS; do
+ if test x$ac_cv_vlopen = xno && test -d "$d/include" && test -d "$d/lib"; then
+ QDBM_INC="-I$d/include"
+ QDBM_LIB="-L$d/lib"
+ CPPFLAGS="$OLDCPPFLAGS $QDBM_INC"
+ LIBS="$OLDLIBS $QDBM_LIB -lqdbm"
+ AC_TRY_LINK([#include <villa.h>],[vlopen(0,0,0);],[ac_cv_vlopen=yes])
+ fi
+ done
+ if test x$ac_cv_vlopen = xyes; then
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ fi
+ fi
+