From: Lennart Poettering Date: Mon, 15 Aug 2005 23:25:03 +0000 (+0000) Subject: fix python autoconf check X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=766894e74d645e2310f130a5f7790c92871fbd1b;p=catta fix python autoconf check git-svn-id: file:///home/lennart/svn/public/avahi/trunk@340 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- 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" ])