]> granicus.if.org Git - yasm/commitdiff
* configure.ac: Don't error-out configure if Python not found; Python is
authorPeter Johnson <peter@tortall.net>
Wed, 3 May 2006 02:47:01 +0000 (02:47 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 3 May 2006 02:47:01 +0000 (02:47 -0000)
completely optional.

Noticed by: Stephen Polkowski <stephen@centtech.com>

svn path=/trunk/yasm/; revision=1518

configure.ac

index 80a7a30391d3be344a2e98e901bd84c0e1d24e8f..1e1e04518ec80f889bc582d3c84c9bb5d2d2ad0d 100644 (file)
@@ -264,10 +264,10 @@ if test x$enable_python = xno; then
 else
     AC_MSG_NOTICE([Checking to see if we can build Python bindings])
     have_python=no
-    AM_PATH_PYTHON(2.4)
+    AM_PATH_PYTHON(2.4,[],[AC_MSG_WARN([Python not found])])
 
-    if test -z "$PYTHON" ; then
-        AC_MSG_WARN([Python not found])
+    if test -z "$PYTHON" || test "$PYTHON" = : ; then
+        have_python=no
     else
         AC_MSG_CHECKING([for Pyrex >= 0.9.3])
         PYREX_CHECK_VERSION(0.9.3, [AC_MSG_RESULT(yes)