]> git.meshlink.io Git - catta/commitdiff
fix python autoconf check
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Aug 2005 23:25:03 +0000 (23:25 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Aug 2005 23:25:03 +0000 (23:25 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@340 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

configure.ac

index 1f55b99a0b203766ea7de9d05e1b1cbabc9fa795..fbc0b4f436680ad691c3c10acdd1107e27beef4c 100644 (file)
@@ -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" ])