[master] 06ba9c2 Error when no rst2man is found

Tollef Fog Heen tfheen at err.no
Thu Apr 24 18:28:27 CEST 2014


commit 06ba9c2ae51c5496ae2fc322f4d3543f0894479b
Author: Tollef Fog Heen <tfheen at fastly.com>
Date:   Thu Apr 24 18:27:13 2014 +0200

    Error when no rst2man is found
    
    If one runs configure with --without-rst2man or no rst2man is found,
    the value is "no", not an empty string.  Handle this correctly in
    configure.
    
    Fixes: #1473

diff --git a/configure.ac b/configure.ac
index 4dfb222..82bd906 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,7 +55,7 @@ AC_ARG_WITH([rst2man],
   AS_HELP_STRING([--with-rst2man=PATH], [Location of rst2man (auto)]),
   [RST2MAN="$withval"],
   AC_CHECK_PROGS(RST2MAN, [rst2man rst2man.py], []))
-if test -z "$RST2MAN"; then
+if test "$RST2MAN" = "no"; then
   AC_MSG_ERROR(
     [rst2man is needed to build Varnish, please install python-docutils.])
 fi



More information about the varnish-commit mailing list