+else
+ AC_CHECK_LIB(wordcut, wordcut_init, HAVE_WORDCUT_OLD=yes)
+ if test "x$HAVE_WORDCUT_OLD" = "xyes"; then
+ if test -f "/usr/share/wordcut/tdict.wcd"; then
+ tdict="/usr/share/wordcut/tdict.wcd"
+ elif test -f "/usr/local/share/wordcut/tdict.wcd"; then
+ tdict="/usr/local/share/wordcut/tdict.wcd"
+ fi
+ echo "TDICT=$tdict"
+ if test "x$tdict" != "x"; then
+ AC_DEFINE_UNQUOTED(WORDCUT_TDICT, "$tdict", [Define to tdict file name])
+ AC_DEFINE(HAVE_WORDCUT_OLD, 1,
+ [Define if you have the old version of wordcut library])
+ WORDCUT_LD_FLAGS=-lwordcut
+ M17N_EXT_LIBS="$M17N_EXT_LIBS wordcut-old"
+ else
+ HAVE_WORDCUT=no
+ fi
+ fi
+fi
+