diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2010-11-02 21:21:32 +0200 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2010-11-02 21:21:32 +0200 |
| commit | 70648b8bd5259e8edc4741988ddf45ffcc740c8d (patch) | |
| tree | c244d5f0cbe1439745db9723b3248fc01f1621c9 /configure.ac | |
| parent | 1d08c8df01c46dddebd8c74a9802dc534a6eb6c2 (diff) | |
* merge start of simple gtk+ ui for mu: 'mug'
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index e2af3eb..ffef702 100644 --- a/configure.ac +++ b/configure.ac @@ -116,6 +116,29 @@ AS_IF([test "x$have_gmime" = "xno"],[ ]) ]) +# do we have gtk+ installed? if not, don't build 'mug' +PKG_CHECK_MODULES(GTK,gtk+-2.0,[have_gtk=yes],[have_gtk=no]) +AC_SUBST(GTK_CFLAGS) +AC_SUBST(GTK_LIBS) +AS_IF([test "x$have_gtk" = "xno"],[ + AC_MSG_WARN([ + *** gtk+-2.0 not found, mug will not be built + ]) +]) +AM_CONDITIONAL(HAVE_GTK,test "x$have_gtk" = "xyes") + +# do we have webkit/gtk installed? if not, don't try to use it for 'mug' +PKG_CHECK_MODULES(WEBKIT,webkit-1.0,[have_webkit=yes],[have_webkit=no]) +AC_SUBST(WEBKIT_CFLAGS) +AC_SUBST(WEBKIT_LIBS) +AS_IF([test "x$have_webkit" = "xno"],[ + AC_MSG_WARN([ + *** webkit-1.0 not found, mug will not use webkit + ]) +]) +AC_DEFINE(HAVE_WEBKIT,[1],[Whether we have Webkit/Gtk]) + + # xapian? AC_CHECK_PROG(XAPIAN,xapian-config,xapian-config,no) AM_CONDITIONAL(HAVE_XAPIAN,test "x$XAPIAN" != "xno") @@ -130,9 +153,7 @@ AS_IF([test "x$XAPIAN" = "xno"],[ XAPIAN_CXXFLAGS=`$XAPIAN --cxxflags` XAPIAN_LIBS=`$XAPIAN --libs` have_xapian="yes" - AC_DEFINE(HAVE_XAPIAN,[1],[Whether we have Xapian]) -]) - +]) AC_SUBST(XAPIAN_CXXFLAGS) AC_SUBST(XAPIAN_LIBS) @@ -140,6 +161,7 @@ AC_CONFIG_FILES([ Makefile src/Makefile src/tests/Makefile +mug/Makefile man/Makefile contrib/Makefile ]) |
