[3.0] a18deaf Correct AC_CHECK_PROGS usage

Federico G. Schwindt fgsch at lodoss.net
Tue Jul 8 12:16:11 CEST 2014


commit a18deafe61fd6964474de705c5a240edaf7074c4
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Tue Jul 8 10:59:20 2014 +0100

    Correct AC_CHECK_PROGS usage

diff --git a/configure.ac b/configure.ac
index 427b230..04c0096 100644
--- a/configure.ac
+++ b/configure.ac
@@ -369,7 +369,10 @@ else
 fi
 
 AM_MISSING_HAS_RUN
-AC_CHECK_PROGS(PYTHON, [python3 python3.1 python3.2 python2.7 python2.6 python2.5 python2 python], [AC_MSG_ERROR([Python is needed to build Varnish, please install python.])])
+AC_CHECK_PROGS(PYTHON, [python3 python3.1 python3.2 python2.7 python2.6 python2.5 python2 python], "no")
+if test "x$PYTHON" = "xno"; then
+  AC_MSG_ERROR([Python is needed to build Varnish, please install python.])
+fi
 
 # Older Solaris versions define SO_{RCV,SND}TIMEO, but do not
 # implement them.



More information about the varnish-commit mailing list