X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=configure;h=71981b7c614a58f6b916acd49cf6515253dce396;hp=8cf6f2d703529d70e0cdb10a174e608a17458405;hb=9429141bb1b73a4e05b2f30d59c3c88bb87c2d43;hpb=8bf1842b195e745c127e52e3cefa251ef094dd4d diff --git a/configure b/configure index 8cf6f2d7..71981b7c 100755 --- a/configure +++ b/configure @@ -48,8 +48,13 @@ WITH_EMACS=1 WITH_BASH=1 WITH_ZSH=1 -GMIME_24_VERSION='gmime-2.4' -GMIME_26_VERSION='gmime-2.6 >= 2.6.7' +# Compatible GMime versions (with constraints). +# If using GMime 2.6, we need to have a version >= 2.6.5 to avoid a +# crypto bug. We need 2.6.7 for permissive "From " header handling. +GMIME_24_VERSION_CTR='' +GMIME_24_VERSION="gmime-2.4 $GMIME_24_VERSION_CTR" +GMIME_26_VERSION_CTR='>= 2.6.7' +GMIME_26_VERSION="gmime-2.6 $GMIME_26_VERSION_CTR" WITH_GMIME_VERSIONS="$GMIME_26_VERSION;$GMIME_24_VERSION" @@ -259,8 +264,6 @@ if [ ${have_xapian} = "0" ]; then errors=$((errors + 1)) fi -# If using GMime 2.6, we need to have a version >= 2.6.5 to avoid a -# crypto bug. We need 2.6.7 for permissive "From " header handling. printf "Checking for GMime development files... " have_gmime=0 IFS=';' @@ -402,26 +405,29 @@ EOF echo " http://xapian.org/" fi if [ $have_gmime -eq 0 ]; then - echo " GMime 2.4 library (including development files such as headers)" + echo " Either GMime 2.4 library" $GMIME_24_VERSION_CTR "or GMime 2.6 library" $GMIME_26_VERSION_CTR + echo " (including development files such as headers)" echo " http://spruce.sourceforge.net/gmime/" + echo fi if [ $have_glib -eq 0 ]; then echo " Glib library >= 2.22 (including development files such as headers)" echo " http://ftp.gnome.org/pub/gnome/sources/glib/" + echo fi if [ $have_talloc -eq 0 ]; then echo " The talloc library (including development files such as headers)" echo " http://talloc.samba.org/" + echo fi cat <