~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/python/app_templates/pyqt/app-configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
AC_INIT
 
3
AM_INIT_AUTOMAKE(testprog,[0.1])
 
4
 
 
5
AC_PROG_MAKE_SET
 
6
 
 
7
# python interpreter check
 
8
AC_PATH_PROG([PYTHON],[python])
 
9
if test -z "${PYTHON}"  ; then
 
10
   AC_MSG_ERROR([you need Python to use this program])
 
11
fi
 
12
 
 
13
# PyQT check
 
14
AC_MSG_CHECKING([whether PyQT can be used by Python])
 
15
pyqt_present=no
 
16
cat >pyqttest.py <<END
 
17
import qt
 
18
END
 
19
${PYTHON} pyqttest.py >/dev/null 2>&1 && pyqt_present=yes
 
20
AC_MSG_RESULT([$pyqt_present])
 
21
 
 
22
# pyuic check
 
23
AC_PATH_PROG([PYUIC],[pyuic])
 
24
if test -z "${PYUIC}" ; then
 
25
   AC_MSG_ERROR([cannot find pyuic (part of the PyQT package)])
 
26
fi
 
27
AC_SUBST([PYUIC])
 
28
AC_SUBST([PYTHON])
 
29
 
 
30
AC_CONFIG_FILES([Makefile])
 
31
 
 
32
AC_OUTPUT