+# Checks for the m17n database files.
+AC_ARG_WITH(m17ndb,
+ [ --with-m17n-db=DIR directory of m17n-db source files],
+ M17NDB="$withval")
+
+if test "x$M17NDB" = "x"; then
+ if test -d ../m17n-db; then
+ M17NDB=../m17n-db
+ elif test -d /usr/local/src/m17n-db; then
+ M17NDB=/usr/local/src/m17n-db
+ else
+ M17NDB=.
+ fi
+else :
+fi
+AC_SUBST(M17NDB)
+
+PKG_CHECK_MODULES(M17N, m17n-shell)
+AC_SUBST(M17N_CFLAGS)
+AC_SUBST(M17N_LIBS)
+