Thrift-1661:Add --with-qt4 configure option
Client: cpp
Patch: Blair Zajac
Adds ability to enable/disable qt4 support.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1366428 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configure.ac b/configure.ac
index 208bc78..43904ef 100755
--- a/configure.ac
+++ b/configure.ac
@@ -126,7 +126,11 @@
AX_LIB_ZLIB([1.2.3])
have_zlib=$success
- PKG_CHECK_MODULES([QT], [QtCore >= 4.3, QtNetwork >= 4.3], have_qt=yes, have_qt=no)
+ AX_THRIFT_LIB(qt4, [Qt], yes)
+ have_qt=no
+ if test "$with_qt4" = "yes"; then
+ PKG_CHECK_MODULES([QT], [QtCore >= 4.3, QtNetwork >= 4.3], have_qt=yes, have_qt=no)
+ fi
if test "$have_qt" = "yes"; then
AC_PATH_PROGS([QT_MOC], [moc-qt4 moc])
have_qt=$success