summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-08-15 23:25:03 +0000
committerLennart Poettering <lennart@poettering.net>2005-08-15 23:25:03 +0000
commit766894e74d645e2310f130a5f7790c92871fbd1b (patch)
tree2a7aec95676679c55c19678da73fbf2e92be7572
parentdc2ee52be5b9a0a86beda09dc9db2f7082e19db5 (diff)
fix python autoconf check
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@340 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--configure.ac11
1 files changed, 4 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 1f55b99..fbc0b4f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -209,13 +209,10 @@ AC_ARG_ENABLE(python,
*) AC_MSG_ERROR([bad value ${enableval} for --enable-python]) ;;
esac],[HAVE_PYTHON=yes])
-if test "y$HAVE_PYTHON" = xyes ; then
- AM_PATH_PYTHON(2.4)
-
- if test "x$HAVE_PYTHON" = xyes ; then
- AM_CHECK_PYMOD(gtk,,,[AC_MSG_ERROR(Could not find Python module pygtk)])
- AM_CHECK_PYMOD(dbus,,,[AC_MSG_ERROR(Could not find Python module dbus)])
- fi
+if test "x$HAVE_PYTHON" = "xyes" ; then
+ AM_PATH_PYTHON([2.4])
+ AM_CHECK_PYMOD(gtk,,,[AC_MSG_ERROR(Could not find Python module pygtk)])
+ AM_CHECK_PYMOD(dbus,,,[AC_MSG_ERROR(Could not find Python module dbus)])
fi
AM_CONDITIONAL(HAVE_PYTHON, [test "x$HAVE_PYTHON" = "xyes" ])