X-Git-Url: https://git.distorted.org.uk/~mdw/anag/blobdiff_plain/dc553c0afbd256198d1fde65acf42ba3e10ddcce..cdb480951031f64f4785da1787b16fe235b76f13:/configure.in diff --git a/configure.in b/configure.in index f302f3c..4be7667 100644 --- a/configure.in +++ b/configure.in @@ -51,13 +51,22 @@ AC_SUBST([TKPROGS]) 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([