AC_DEFINE(USE_LUA, 1, [Define if you want support for LUA.])
MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_lua.o"
CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
- MUTTLIBS="$MUTTLIBS $LUA_LIB"
+ LIBS="$LIBS $LUA_LIB"
])
dnl --enable-notmuch
AC_MSG_ERROR([Unable to find Notmuch library]))
AC_DEFINE(USE_NOTMUCH,1,[ Define if you want support for the notmuch. ])
MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_notmuch.o"
- MUTTLIBS="$MUTTLIBS -lnotmuch"
+ LIBS="$LIBS -lnotmuch"
OPS="$OPS \$(srcdir)/OPS.NOTMUCH"
AC_MSG_CHECKING([for notmuch api version 3])
dnl --- now that we've found it, check the link
AC_CHECK_LIB(slang, SLtt_get_terminfo,
- [MUTTLIBS="$MUTTLIBS -lslang -lm"],
+ [LIBS="$LIBS -lslang -lm"],
[AC_MSG_ERROR(unable to compile. check config.log)], -lm)
],
AC_MSG_ERROR([Unable to find ncursesw library])
fi
AC_CHECK_LIB($cf_ncurses, initscr,
- [MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
+ [LIBS="$LIBS -l$cf_ncurses"
AC_CHECK_LIB($cf_ncurses, tgetent, [:], [
- AC_CHECK_LIB(tinfo, tgetent, [MUTTLIBS="$MUTTLIBS -ltinfo"])
+ AC_CHECK_LIB(tinfo, tgetent, [LIBS="$LIBS -ltinfo"])
])
if test "$cf_ncurses" = ncursesw; then
)
])
- old_LIBS="$LIBS"
- 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
MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
fi
AC_CHECK_FUNCS([use_extended_names])
- LIBS="$old_LIBS"
])
AC_HEADER_STDC
AC_DEFINE(HAVE_HEIMDAL,1,[ Define if your GSSAPI implementation is Heimdal ])
fi
CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
- MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
+ LIBS="$LIBS $GSSAPI_LIBS"
AC_DEFINE(USE_GSS,1,[ Define if you have GSSAPI libraries available ])
need_gss="yes"
fi
AC_CHECK_LIB(ssl, SSL_new,,
AC_MSG_ERROR([Unable to find SSL library]), [$crypto_libs])
- LIBS="$LIBS $crypto_libs"
+ LIBS="$saved_LIBS -lssl $crypto_libs"
AC_CHECK_FUNCS(RAND_status RAND_egd)
AC_CHECK_DECLS([SSL_set_mode, SSL_MODE_AUTO_RETRY],,
AC_MSG_ERROR([Unable to find decent SSL header]), [[#include <openssl/ssl.h>]])
AC_DEFINE(USE_SSL,1,[ Define if you want support for SSL. ])
AC_DEFINE(USE_SSL_OPENSSL,1,[ Define if you want support for SSL via OpenSSL. ])
- LIBS="$saved_LIBS"
- MUTTLIBS="$MUTTLIBS -lssl $crypto_libs"
MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
need_ssl=yes
fi
LDFLAGS="$LDFLAGS -L$gnutls_prefix/lib"
CPPFLAGS="$CPPFLAGS -I$gnutls_prefix/include"
fi
- saved_LIBS="$LIBS"
AC_CHECK_LIB(gnutls, gnutls_check_version,
[dnl GNUTLS found
gnutls_transport_ptr_t,
gnutls_x509_crt_t], [], [], [[#include <gnutls/gnutls.h>]])
- LIBS="$saved_LIBS"
- MUTTLIBS="$MUTTLIBS -lgnutls"
-
AC_DEFINE(USE_SSL, 1, [ Define if you want support for SSL. ])
AC_DEFINE(USE_SSL_GNUTLS, 1, [ Define if you want support for SSL via GNUTLS. ])
LDFLAGS="$LDFLAGS -L$with_sasl/lib"
fi
- saved_LIBS="$LIBS"
- LIBS=
-
# OpenSolaris provides a SASL2 interface in libsasl
sasl_libs="sasl2 sasl"
AC_SEARCH_LIBS(sasl_encode64, [$sasl_libs],,
AC_MSG_ERROR([could not find sasl lib]),)
- MUTTLIBS="$MUTTLIBS $LIBS"
MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
- LIBS="$saved_LIBS"
AC_DEFINE(USE_SASL,1,
[ Define if want to use the SASL library for POP/IMAP authentication. ])
MUTT_MD5="mutt_md5$EXEEXT"
AC_SUBST(MUTT_MD5)
-AC_SUBST(MUTTLIBS)
AC_SUBST(MUTT_LIB_OBJECTS)
AC_SUBST(HCACHE_LIBS)
AC_SUBST(HCACHE_DEPS)
have_idna_h=yes
break])
- mutt_save_LIBS="$LIBS"
- LIBS=
-
AC_SEARCH_LIBS([stringprep_check_version], [idn], [
AC_DEFINE([HAVE_LIBIDN], 1, [Define to 1 if you have the GNU idn library])
- MUTTLIBS="$MUTTLIBS -lidn"
LIBS="$LIBS $LIBICONV"
AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z)
AC_CHECK_FUNCS(idna_to_ascii_lz idna_to_ascii_from_locale)
])
- LIBS="$mutt_save_LIBS"
-
if test "$with_idn" != auto; then
if test $have_stringprep_h = no || test $have_idna_h = no || test $ac_cv_search_stringprep_check_version = no; then
AC_MSG_ERROR([IDN was requested, but libidn was not usable on this system])
CFlags: ${CFLAGS} ${CPPFLAGS}
LDFlags: ${LDFLAGS}
Libs: ${LIBS}
- Mutt libs: ${MUTTLIBS} ${HCACHE_LIBS}
+ Header cache libs: ${HCACHE_LIBS}
GPGME: $use_gpgme
PGP: $use_pgp