diff options
author | Mark Sapiro <mark@msapiro.net> | 2014-04-25 00:34:08 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2014-04-25 00:34:08 -0700 |
commit | d2f3fd4357520fce37fcc3edc5b6d8de7f5af879 (patch) | |
tree | d490f0c8bb887599d9da557af9e202a122d4deed /configure.in | |
parent | 5c6b9208dd8c654fa564785d09173680926bd3ed (diff) | |
download | mailman2-d2f3fd4357520fce37fcc3edc5b6d8de7f5af879.tar.gz mailman2-d2f3fd4357520fce37fcc3edc5b6d8de7f5af879.tar.xz mailman2-d2f3fd4357520fce37fcc3edc5b6d8de7f5af879.zip |
Made configure check for dnspython.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1ee55b96..f7bb7919 100644 --- a/configure.in +++ b/configure.in @@ -82,6 +82,34 @@ then fi AC_MSG_RESULT($version) +# See if dnspython is installed. +AC_MSG_CHECKING(dnspython) +changequote(,) +cat > conftest.py <<EOF +try: + import dns.resolver + res = 'ok' +except ImportError: + res = 'no' +fp = open("conftest.out", "w") +fp.write("%s\n" % res) +fp.close() +EOF +changequote([, ]) +$PYTHON conftest.py +havednspython=`cat conftest.out` +rm -f conftest.out conftest.py +if test "$havednspython" = "no" +then + AC_MSG_ERROR([ + +***** dnspython not found. It is required for the new +***** dmarc_moderation_action featurer. Get it from +***** <http://www.dnspython.org/> or +***** <https://pypi.python.org/pypi/dnspython/>]) +fi +AC_MSG_RESULT($havednspython) + # Check the email package version. AC_MSG_CHECKING(Python's email package) changequote(,) |