soc.2008.masterpassword: 76975938: Use pkg-config to find Qt4.
qulogic at pidgin.im
qulogic at pidgin.im
Sun Nov 20 04:35:51 EST 2011
----------------------------------------------------------------------
Revision: 76975938e503f0d6b8cdbf6da2867e768925ffac
Parent: 7ac05f9c1ef23595a177ced9d9161c53d6c341e6
Author: qulogic at pidgin.im
Date: 11/19/11 20:18:45
Branch: im.pidgin.soc.2008.masterpassword
URL: http://d.pidgin.im/viewmtn/revision/info/76975938e503f0d6b8cdbf6da2867e768925ffac
Changelog:
Use pkg-config to find Qt4.
Changes against parent 7ac05f9c1ef23595a177ced9d9161c53d6c341e6
patched configure.ac
patched libpurple/plugins/keyrings/Makefile.am
-------------- next part --------------
============================================================
--- configure.ac ea61bd285c7c4a413640cccad49a527ac47cf9ec
+++ configure.ac 4671540e4ab5da8755e686cb923d20b18fb799e8
@@ -1368,7 +1368,6 @@ AC_ARG_WITH(kwallet-libs, [AC_HELP_STRIN
AC_ARG_ENABLE(kwallet, [AC_HELP_STRING([--enable-kwallet], [enable KWallet support])], enable_kwallet=$enableval, enable_kwallet=no)
AC_ARG_WITH(kwallet-includes, [AC_HELP_STRING([--with-kwallet-includes=DIR], [compile the KWallet plugin against includes in DIR])], [ac_kwallet_includes="$withval"], [ac_kwallet_includes="no"])
AC_ARG_WITH(kwallet-libs, [AC_HELP_STRING([--with-kwallet-libs=DIR], [compile the KWallet plugin against the KWallet libs in DIR])], [ac_kwallet_libs="$withval"], [ac_kwallet_libs="no"])
-AC_ARG_WITH(qt4-libs, [AC_HELP_STRING([--with-qt4-libs=DIR], [compile the KWallet plugin against the Qt4 libs in DIR])], [ac_qt4_libs="$withval"], [ac_qt4_libs="no"])
if test "x$enable_kwallet" = "xyes"; then
KWALLET_CXXFLAGS=""
@@ -1389,6 +1388,18 @@ Use --disable-kwallet if you do not need
CPPFLAGS_save="$CPPFLAGS"
LDFLAGS_save="$LDFLAGS"
+ PKG_CHECK_MODULES(QT4, [QtCore], [
+ AC_MSG_RESULT(yes)
+ AC_SUBST(QT4_CFLAGS)
+ AC_SUBST(QT4_LIBS)
+ ], [
+ AC_MSG_RESULT(no)
+ AC_MSG_ERROR([
+Qt4 development headers not found.
+Use --disable-kwallet if you do not need KWallet support.
+])
+ ])
+
dnl Check for kwallet.h; if we don't have it, oh well
if test "$ac_kwallet_includes" != "no"; then
KWALLET_CXXFLAGS="-I$ac_kwallet_includes"
@@ -1412,14 +1423,8 @@ fi
else
KWALLET_LIBS="-lkdeui"
fi
- if test "$ac_qt4_libs" != "no"; then
- KWALLET_LIBS="$KWALLET_LIBS -L$ac_qt4_libs -lQtCore"
- elif test "x$KDE_CONFIG" != "xno"; then
- KWALLET_LIBS="$KWALLET_LIBS -L`$KDE4_CONFIG --qt-libraries` -lQtCore"
- else
- KWALLET_LIBS="$KWALLET_LIBS -lQtCore"
- fi
- LDFLAGS="$LDFLAGS $KWALLET_LIBS"
+ KWALLET_LIBS="$KWALLET_LIBS"
+ LDFLAGS="$LDFLAGS $KWALLET_LIBS $QT4_LIBS"
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <kwallet.h>],
[KWallet::Wallet::LocalWallet();])], [AC_MSG_RESULT([yes])],
[if test "x$force_deps" = "xyes"; then
@@ -1435,8 +1440,8 @@ fi
AC_LANG_POP
fi
-AC_SUBST(KWALLET_LIBS)
AC_SUBST(KWALLET_CXXFLAGS)
+AC_SUBST(KWALLET_LIBS)
AM_CONDITIONAL(ENABLE_KWALLET, test "x$enable_kwallet" = "xyes")
============================================================
--- libpurple/plugins/keyrings/Makefile.am f829c2ca193b59cf63f7512ab42c134cc4830a54
+++ libpurple/plugins/keyrings/Makefile.am ecabd4868ebbe5e03e27eb25d644bad8fa33cf73
@@ -22,7 +22,7 @@ kwallet_la_SOURCES = kwallet.cpp
kwallet_la_CXXFLAGS = $(KWALLET_CXXFLAGS)
kwallet_la_LDFLAGS = -module -avoid-version
kwallet_la_SOURCES = kwallet.cpp
-kwallet_la_LIBADD = $(GLIB_LIBS) $(KWALLET_LIBS)
+kwallet_la_LIBADD = $(GLIB_LIBS) $(KWALLET_LIBS) $(QT4_LIBS)
endif
More information about the Commits
mailing list