From 766894e74d645e2310f130a5f7790c92871fbd1b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 15 Aug 2005 23:25:03 +0000 Subject: fix python autoconf check git-svn-id: file:///home/lennart/svn/public/avahi/trunk@340 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- configure.ac | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'configure.ac') 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" ]) -- cgit