Presently, a ./configure in a terminal with no X $DISPLAY will
fail to build grc because import gtk fails with RuntimeError
exception.
This patch fixes this by catching just the ImportError and
AssertionErrors we need for python module dependencies.
try:
import $1
assert $5
-except: exit(1)'
+except ImportError, AssertionError: exit(1)
+except: pass'
dnl ########################################
dnl # import checking only
dnl ########################################
else
python_cmd='
try: import $1
-except: exit(1)'
+except ImportError: exit(1)
+except: pass'
fi
if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
AC_MSG_RESULT([no])