dbus configure.in,1.148,1.149 ChangeLog,1.985,1.986

Thiago J. Macieira thiago at kemper.freedesktop.org
Tue Mar 28 11:14:58 PST 2006


Update of /cvs/dbus/dbus
In directory kemper:/tmp/cvs-serv25694

Modified Files:
	configure.in ChangeLog 
Log Message:
	* configure.in: Detect QtGui (necessary for one of the
          example programs). Note: this increases the minimum required
          version of Qt to 4.1.3.


Index: configure.in
===================================================================
RCS file: /cvs/dbus/dbus/configure.in,v
retrieving revision 1.148
retrieving revision 1.149
diff -u -d -r1.148 -r1.149
--- configure.in	17 Mar 2006 03:20:14 -0000	1.148
+++ configure.in	28 Mar 2006 19:14:56 -0000	1.149
@@ -999,8 +999,9 @@
 
 QT_CORE=QtCore$qt_suffix
 QT_XML=QtXml$qt_suffix
+QT_GUI=QtGui$qt_suffix
 QT_TESTLIB=QtTest$qt_suffix
-min_qt_version=4.1
+min_qt_version=4.1.3
 
 PKG_CHECK_MODULES([DBUS_QT], 
                   [$QT_CORE >= $min_qt_version $QT_XML >= $min_qt_version], 
@@ -1040,7 +1041,7 @@
 
     dnl QTestLib detection
     PKG_CHECK_MODULES([DBUS_QTESTLIB], 
-    	              [$QT_TESTLIB >= $min_qt_version], 
+    	              [$QT_TESTLIB >= 4.1.0], 
                       have_qtest=yes, 
                       have_qtest=no)
 
@@ -1052,12 +1053,33 @@
         have_qtest=no
     fi
 
-
     AC_SUBST(DBUS_QTESTLIB_CFLAGS)
     AC_SUBST(DBUS_QTESTLIB_LIBS)
+
+    dnl QtGui detection
+    PKG_CHECK_MODULES([DBUS_QT_GUI], [$QT_GUI >= $min_qt_version],
+    		      have_qt_gui=yes,
+		      have_qt_gui=no)
+
+    if test x$have_qt_gui = xyes ; then
+        AC_MSG_CHECKING([for uic])
+	QT_UIC=`$PKG_CONFIG --variable=exec_prefix $QT_GUI`/bin/uic
+
+	if test -x "$QT_UIC" ; then
+	    AC_MSG_RESULT([found, $QT_UIC])
+	else
+	    AC_MSG_RESULT([not found, disabling Qt Gui])
+	    have_qt_gui=no
+	fi
+    fi
+
+    AC_SUBST(DBUS_QT_GUI_CFLAGS)
+    AC_SUBST(DBUS_QT_GUI_LIBS)
+    AC_SUBST(QT_UIC)
 fi
 
 AM_CONDITIONAL(HAVE_QT, test x$have_qt = xyes)
+AM_CONDITIONAL(HAVE_QT_GUI, test x$have_qt_gui = xyes)
 AM_CONDITIONAL(HAVE_QTESTLIB, test x$have_qtest = xyes)
 
 ### X11 detection

Index: ChangeLog
===================================================================
RCS file: /cvs/dbus/dbus/ChangeLog,v
retrieving revision 1.985
retrieving revision 1.986
diff -u -d -r1.985 -r1.986
--- ChangeLog	28 Mar 2006 18:58:58 -0000	1.985
+++ ChangeLog	28 Mar 2006 19:14:56 -0000	1.986
@@ -1,5 +1,11 @@
 2006-03-28  Thiago Macieira  <thiago.macieira at trolltech.com>
 
+	* configure.in: Detect QtGui (necessary for one of the
+          example programs). Note: this increases the minimum required
+          version of Qt to 4.1.3.
+
+2006-03-28  Thiago Macieira  <thiago.macieira at trolltech.com>
+
 	* test/qt/*: Sync with KDE Subversion revision 523647.
         Update the testcases to the new API. Remove testcases for
         classes that are no longer public or have been removed.



More information about the dbus-commit mailing list