X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=configure.ac;h=c22908029cd17f44c9c092ef9a46dffe38ce6042;hp=47624b577f7a17059496c3ef67d221f29e186c2c;hb=201fd8633cc86ccda413c919ae6e2ae04e89b4a9;hpb=dbb9a1e16d03a2d4664d6dc6a30c721b889d4982 diff --git a/configure.ac b/configure.ac index 47624b5..c229080 100644 --- a/configure.ac +++ b/configure.ac @@ -87,8 +87,10 @@ AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--enable-gpgme], [Enable GPGME support]),[ if test x$enableval = xyes; then AM_PATH_GPGME(,,[AC_MSG_ERROR(GPGME not found)]) MUTTLIBS="$MUTTLIBS $GPGME_LIBS" - MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o" AC_DEFINE(CRYPT_BACKEND_GPGME, 1, [Defined, if GPGME support is enabled]) + AM_CONDITIONAL(BUILD_GPGME, true) + else + AM_CONDITIONAL(BUILD_GPGME, false) fi ]) @@ -257,30 +259,11 @@ if test $ac_cv_func_getopt = yes; then AC_CHECK_HEADERS(getopt.h) fi -AC_ARG_WITH(regex, AC_HELP_STRING([--with-regex], [Use the GNU regex library]), - [mutt_cv_regex=yes], - [AC_CHECK_FUNCS(regcomp, mutt_cv_regex=no, mutt_cv_regex=yes)]) - -if test $mutt_cv_regex = no ; then - AC_CACHE_CHECK([whether your system's regexp library is completely broken], - [mutt_cv_regex_broken], - AC_TRY_RUN([ -#include -#include -main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }], - mutt_cv_regex_broken=no, mutt_cv_regex_broken=yes, mutt_cv_regex_broken=yes)) - if test $mutt_cv_regex_broken = yes ; then - echo "Using the included GNU regex instead." >&AC_FD_MSG - mutt_cv_regex=yes - fi +AC_CHECK_FUNC(regcomp) +if test $ac_cv_func_regcomp = yes; then + AC_CHECK_HEADERS(regex.h) fi -if test $mutt_cv_regex = yes; then - AC_DEFINE(USE_GNU_REGEX,1,[ Define if you want to use the included regex.c. ]) - LIBOBJS="$LIBOBJS regex.o" -fi - - AC_ARG_WITH(homespool, AC_HELP_STRING([--with-homespool[=FILE]], [File in user's directory where new mail is spooled]),