X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=configure.ac;h=bbc3dd530e70e222b5774d99bb611a0770cae0fc;hp=42d180601911a38b1a421fb1e2886189792d1db2;hb=b6980caf7b13994c57957872876cdecc21e54a82;hpb=4679714d372c301752dd4b26f4e3fa45641be4b9 diff --git a/configure.ac b/configure.ac index 42d1806..bbc3dd5 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,12 @@ ac_aux_path_sendmail=/usr/sbin:/usr/lib AC_PATH_PROG(SENDMAIL, sendmail, /usr/sbin/sendmail, $PATH:$ac_aux_path_sendmail) AC_DEFINE_UNQUOTED(SENDMAIL,"$ac_cv_path_SENDMAIL",[ Where to find sendmail on your system. ]) +dnl ---------------- gpgme ---------------- +PKG_CHECK_MODULES(LUA,lua5.1,[ + CPPFLAGS="$CPPFLAGS $LUA_CFLAGS" + LDFLAGS="$LDFLAGS $LUA_LIBS" +],[AC_MSG_ERROR([could not find lua5.1])]) + dnl ---------------- gpgme ---------------- AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--enable-gpgme], [Enable GPGME support]),[ @@ -135,7 +141,6 @@ main () AC_CHECK_LIB(termlib, main) fi AC_DEFINE(USE_SLANG_CURSES,1, [ Define if you compile with SLang instead of curses/ncurses. ]) - AC_DEFINE(HAVE_COLOR,1,[ Define if your curses library supports color. ]) dnl --- now that we've found it, check the link @@ -179,8 +184,8 @@ main () LIBS="$LIBS $MUTTLIBS" CF_CHECK_FUNCDECLS([#include <${cf_cv_ncurses_header-curses.h}>], [start_color typeahead bkgdset curs_set meta use_default_colors resizeterm]) - if test "$ac_cv_func_decl_start_color" = yes; then - AC_DEFINE(HAVE_COLOR,1,[ Define if your curses library supports color. ]) + if test "$ac_cv_func_decl_start_color" != yes; then + AC_MSG_ERROR([Your curses library does not supports color.]) fi LIBS="$old_LIBS" ]) @@ -743,6 +748,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/instdoc.sh contrib/Makefile lib-lib/Makefile + lib-lua/Makefile lib-mime/Makefile lib-crypt/Makefile lib-hash/Makefile