+if test "x$did_scheme" = "xlast"; then
+ AC_DEFINE(USE_LASTDID, 1)
+ AC_MSG_RESULT([last])
+elif test "x$did_scheme" = "xhash"; then
+ AC_MSG_RESULT([device/inode-based hashing])
+elif test "x$did_scheme" = "xmtab"; then
+ AC_DEFINE(DID_MTAB, 1)
+ AC_MSG_RESULT([mtab-based DID creation support])
+elif test "x$did_scheme" = "xcnid"; then
+ db3_required="yes"
+ AC_DEFINE(CNID_DB, 1)
+ AC_MSG_RESULT([enabling build with CNID DB support])
+else
+ AC_MSG_ERROR([unknown DID scheme])
+fi
+AM_CONDITIONAL(COMPILE_CNID, test "x$did_scheme" = "xcnid")
+
+dnl Check for Berkeley DB3 library
+if test "x$db3_required" = "xyes"; then
+ AC_PATH_DB3(, [AC_MSG_ERROR([Berkeley DB3 library not found!])])
+fi
+
+dnl Check for quota support
+AC_CHECK_QUOTA
+