aboutsummaryrefslogtreecommitdiff
path: root/configure.ac.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-10-25 06:25:30 +0000
committerdos-reis <gdr@axiomatics.org>2009-10-25 06:25:30 +0000
commita87a6785b80957b04b841bbb0b99c8cc4c58f031 (patch)
tree475665781c5ec42babbefd48eb362414b8db48bf /configure.ac.pamphlet
parenta6dc2413d2c01f5b375e63aa6a313e541a2df2cd (diff)
downloadopen-axiom-a87a6785b80957b04b841bbb0b99c8cc4c58f031.tar.gz
Check for Qt utilities moc and qmake.
Diffstat (limited to 'configure.ac.pamphlet')
-rw-r--r--configure.ac.pamphlet15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac.pamphlet b/configure.ac.pamphlet
index 1f6e5a8e..ac87dac8 100644
--- a/configure.ac.pamphlet
+++ b/configure.ac.pamphlet
@@ -420,6 +420,21 @@ X_PRE_LIBS="-lXpm $X_PRE_LIBS"
AC_SUBST(X_PRE_LIBS)
## If the system supports X11, then build graphics
+
+# Check for Qt utilities.
+AC_CHECK_PROGS([OA_QT_MOC], [moc])
+AC_CHECK_PROGS([OA_QT_QMAKE], [qmake])
+if test -n $OA_QT_MOC; then
+ AC_MSG_CHECKING([Qt version])
+ oa_qt_version=`"$OA_QT_MOC" -v 2>&1 | sed -e 's/^.*(\(.*\))$/\1/'`
+ AC_MSG_RESULT([$oa_qt_version])
+ case $oa_qt_version in
+ *[1-3]\.[0-9]+\.[0-9]+)
+ AC_MSG_WARN([This version of Qt is too old for OpenAxiom.])
+ ;;
+ esac
+fi
+
axiom_use_x=no
if test -z $no_x; then
axiom_use_x=yes