configure.in checks for pygtk

svn: r1428
This commit is contained in:
Don Allingham 2003-04-06 14:44:30 +00:00
parent 7b8aa74a1d
commit f3cf5512b7
2 changed files with 6 additions and 2 deletions

4
configure vendored
View File

@ -3940,7 +3940,8 @@ fi
GNOMEINC=`pkg-config --cflags gnome-vfs-module-2.0`
GNOMELIB=`pkg-config --libs gnome-vfs-module-2.0`
pygtk_require="try:
pygtk_require="
try:
import pygtk
pygtk.require('2.0')
except ImportError:
@ -3981,6 +3982,7 @@ echo "${ECHO_T}ok" >&6
echo "$as_me:$LINENO: checking Python bindings for GNOME" >&5
echo $ECHO_N "checking Python bindings for GNOME... $ECHO_C" >&6
cat > conftest.py <<EOF
$pygtk_require
try:
import gnome, gnome.ui
f = open("conftest.out", "w")

View File

@ -72,7 +72,8 @@ AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, "YES", "NO")
GNOMEINC=`pkg-config --cflags gnome-vfs-module-2.0`
GNOMELIB=`pkg-config --libs gnome-vfs-module-2.0`
pygtk_require="try:
pygtk_require="
try:
import pygtk
pygtk.require('2.0')
except ImportError:
@ -107,6 +108,7 @@ AC_MSG_RESULT(ok)
AC_MSG_CHECKING(Python bindings for GNOME)
cat > conftest.py <<EOF
$pygtk_require
try:
import gnome, gnome.ui
f = open("conftest.out", "w")