X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=m4%2Flibesmtp.m4;fp=m4%2Flibesmtp.m4;h=0000000000000000000000000000000000000000;hp=e1f20e33797c1903740f35a824f354a9e2aa09b3;hb=140da0c6d18fe8691ec591cea2f32d05be40f502;hpb=e7a772dca1b86e4036d25038ee67aa34dd217c07 diff --git a/m4/libesmtp.m4 b/m4/libesmtp.m4 deleted file mode 100644 index e1f20e3..0000000 --- a/m4/libesmtp.m4 +++ /dev/null @@ -1,51 +0,0 @@ -dnl vim:ft=config: - -dnl Search for libesmtp, by Steven Engelhardt -dnl -dnl libesmtp often requires linking against -lpthread or -lc_r (BSD). -dnl This macro attempts to centralize this code. - -AC_DEFUN([MUTT_AM_LIBESMTP], -[ - AC_ARG_WITH( - [libesmtp], - [ --with-libesmtp=DIR Compile in support for libesmtp for the MTA], - [ if test "$with_libesmtp" != "no" - then - mutt_libesmtp_check_path="$PATH" - - if test "$with_libesmtp" != "yes" - then - mutt_libesmtp_check_path="$tmp_path:$withval/bin" - fi - - dnl 1. Find libesmtp-config - AC_PATH_PROG([mutt_libesmtp_config_path], - [libesmtp-config], - [no], - [$mutt_libesmtp_check_path]) - - if test "$mutt_libesmtp_config_path" = "no" - then - AC_MSG_ERROR([libesmtp-config binary not found.]) - fi - - dnl 2. Get CFLAGS and LIBS from libesmtp-config - mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags` - mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs` - - dnl 3. Verify libesmtp.h can be found with these settings - temp_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $mutt_libesmtp_cflags" - AC_CHECK_HEADER([libesmtp.h], - [], - AC_MSG_ERROR([Could not find libesmtp.h])) - CFLAGS="$temp_CFLAGS" - - dnl 4. Export use_libesmtp variable so configure.in can - dnl act accordingly. - use_libesmtp=yes - fi - ] - ) -])