summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-08 20:26:32 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-08 20:26:32 (GMT)
commit5d2d0285a9819c3b1276e005299c86279419a0f0 (patch)
tree386c6cb1b58402d3acc0c7e29cf71272a543d03a /autoconf
parentcf9b391b40a9c59a620c8093d438370381949c60 (diff)
downloadswift-contrib-5d2d0285a9819c3b1276e005299c86279419a0f0.zip
swift-contrib-5d2d0285a9819c3b1276e005299c86279419a0f0.tar.bz2
Detect qmake in configure.
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/ax_qt.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/autoconf/ax_qt.m4 b/autoconf/ax_qt.m4
new file mode 100644
index 0000000..6b55c13
--- /dev/null
+++ b/autoconf/ax_qt.m4
@@ -0,0 +1,27 @@
+# Author: Remko Tronçon
+
+AC_DEFUN([AX_QT],
+[
+ AC_ARG_WITH(
+ [qt],
+ AC_HELP_STRING([--with-qt=@<:@ARG@:>@],[Path to Qt installation]),
+ [
+ WITH_QT="$withval"
+ if test "$withval" != "no" -a "$withval" != "yes"; then
+ QT_PATH="$withval/bin"
+ else
+ QT_PATH="$PATH"
+ fi
+ ],
+ [
+ WITH_QT="yes"
+ QT_PATH="$PATH"
+ ])
+
+ if test "$WITH_QT" != "no"; then
+ AC_PATH_PROG(QMAKE, qmake, [], $QT_PATH)
+ if test "$QMAKE"; then
+ HAVE_QT=yes
+ fi
+ fi
+])