X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.ac;h=6a75a38632ebeabccf234eb390d3a402c336bdea;hb=e86388e2505cf502c3470f30b4234d3308c771a3;hp=075615801506c37f2fee3bc3d383560fcf5588ce;hpb=da04deaf832ac32974a5bb9499a0ba8321eaf86b;p=mmh diff --git a/configure.ac b/configure.ac index 0756158..6a75a38 100644 --- a/configure.ac +++ b/configure.ac @@ -43,14 +43,6 @@ AC_ARG_ENABLE(masquerade, fi], [masquerade="draft_from mmailid username_extension"]) AC_SUBST(masquerade)dnl -dnl Do you want client-side support for pop? -AC_ARG_ENABLE([pop], - AS_HELP_STRING([--enable-pop], [enable client-side support for plain POP3])) -dnl The old redundant --enable-nmh-pop is deprecated and undocumented. -if test x"$enable_nmh_pop" = x"yes"; then - enable_pop=yes -fi - dnl Do you want to disable use of locale functions AH_TEMPLATE([LOCALE], [Undefine if you don't want locale features. By default this is defined.]) @@ -106,13 +98,6 @@ fi AC_DEFINE_UNQUOTED([BACKUP_PREFIX], "$backup_prefix", [The prefix that is prepended to the name of message files when they are "removed" by rmm. This should typically be `,' or `#'.])dnl -dnl After we know if we're including apop and kpop support, do pop stuff -if test x"$enable_pop" = x"yes"; then - AC_DEFINE([POP], 1, - [Define this to compile client-side support for pop into inc and msgchk.])dnl -fi -AM_CONDITIONAL([POP_SUPPORT], [test x"$enable_pop" = x"yes"]) - dnl What method of locking to use? AC_ARG_WITH(locking, AS_HELP_STRING([--with-locking=@<:@dot|fcntl|flock|lockf@:>@], @@ -215,11 +200,10 @@ if test "$nmh_cv_has_unusedmacros" = 'yes'; then fi AC_SUBST(DISABLE_UNUSED_MACROS_WARNING)dnl -AC_CACHE_CHECK([whether compiler supports -Wextra], [nmh_cv_wextra], +AC_CACHE_CHECK([whether compiler supports -Wextra], [nmh_cv_has_wextra], [nmh_saved_cflags="$CFLAGS" CFLAGS="$CFLAGS -Wextra -Wno-clobbered" - AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], - [nmh_cv_wextras=' -Wextra -Wno-clobbered'], [echo $ECHO_N "no$ECHO_C"]) + AC_TRY_COMPILE([],[],nmh_cv_has_wextra=yes,nmh_cv_has_wextra=no) CFLAGS="$nmh_saved_cflags"]) AC_CACHE_CHECK([whether compiler supports -Wno-pointer-sign], [nmh_cv_has_noptrsign], @@ -237,9 +221,17 @@ dnl also use -Wno-pointer-sign, because gcc 4 now produces a lot of new dnl warnings which are probably mostly spurious and which in any case we dnl don't want to deal with now. if test "$nmh_cv_has_noptrsign" = "yes"; then - nmh_gcc_warnflags="-Wall$nmh_cv_wextra -Wno-pointer-sign" + if test "$nmh_cv_has_wextra" = "yes"; then + nmh_gcc_warnflags="-Wall -Wextra -Wno-clobbered -Wno-pointer-sign" + else + nmh_gcc_warnflags="-Wall -Wno-pointer-sign" + fi else - nmh_gcc_warnflags="-Wall$nmh_cv_wextra" + if test "$nmh_cv_has_wextra" = "yes"; then + nmh_gcc_warnflags="-Wall -Wextra -Wno-clobbered" + else + nmh_gcc_warnflags="-Wall" + fi fi if test -n "$auto_cflags"; then @@ -716,6 +708,11 @@ dnl ---------------- dnl CHECK STRUCTURES dnl ---------------- +dnl For platforms such as FreeBSD that have tm_gmtoff in struct tm. +dnl (FreeBSD has a timezone() function but not a timezone global +dnl variable that is visible). +AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[#include ]) + AC_STRUCT_DIRENT_D_TYPE dnl Where is located? Needed as input for signames.awk @@ -749,11 +746,6 @@ eval "nmhlib=${libdir}"; eval "nmhlib=${nmhlib}" eval "nmhman=${mandir}"; eval "nmhman=${nmhman}" eval "nmhrpm=${nmhrpm}"; -pop_kinds=no -if test x"$enable_pop" = x"yes"; then - pop_kinds="yes (POP3)" -fi - dnl dnl Sigh, this is required because under the new world order autoconf has dnl nothing to create in a few of the build directories when doing an object @@ -788,7 +780,6 @@ default smtp servers : ${smtpservers} default editor : ${editorpath} default pager : ${pagerpath} email address masquerading : ${masquerade} -pop is enabled : ${pop_kinds} SASL support : ${sasl_support} TLS support : ${tls_support}" echo ""])