EXTNODE=""
AC_CHECK_FUNCS([regcomp])
-mdw_CHECK_MANYLIBS([pcre_fullinfo], [pcre], [AC_DEFINE([HAVE_PCRE])])
+mdw_CHECK_MANYLIBS([pcre_fullinfo], [pcre],
+ [AC_DEFINE([HAVE_PCRE], [1],
+ [Define if you have libpcre lying around somewhere.])])
AC_ARG_WITH(dictionary,
[ --with-dictionary=DICT set default word list to be DICT],
[DICTIONARY=$withval],
-[DICTIONARY="/usr/dict/words"])
-AC_DEFINE_UNQUOTED([DICTIONARY], ["$DICTIONARY"])
+[AC_CACHE_CHECK([dictionary], [mdw_cv_dictionary],
+ [for mdw_cv_dictionary in \
+ /usr/share/dict/words \
+ /usr/dict/words; do
+ test -r "$i" && break
+ done])
+ DICTIONARY=$mdw_cv_dictionary])
+AC_DEFINE_UNQUOTED([DICTIONARY], ["$DICTIONARY"],
+ [Define this to be your default wordlist location.])
AC_SUBST([DICTIONARY])
mdw_DEFINE_PATHS([