Rewrite graphical tools in Python.
[xtoys] / configure.ac
index 8e580c9..e338570 100644 (file)
@@ -44,6 +44,17 @@ CFLAGS="$CFLAGS $mLib_CFLAGS"
 LIBS="$LIBS $mLib_LIBS"
 
 dnl--------------------------------------------------------------------------
+dnl Python programming environment.
+
+AM_PATH_PYTHON([2.4], [python=yes], [python=no])
+AM_CONDITIONAL([HAVE_PYTHON], [test $python = yes])
+
+if test $python = yes; then
+  AC_PYTHON_MODULE([pygtk])
+fi
+AM_CONDITIONAL([HAVE_PYGTK], [test ${HAVE_PYMOD_PYGTK-no} = yes])
+
+dnl--------------------------------------------------------------------------
 dnl Output.
 
 AC_CONFIG_FILES(