summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-08-01 02:21:26 -0700
committerStefano Karapetsas <[email protected]>2013-08-01 02:21:26 -0700
commit0f9758bfdedfd0c5a67a795f421cfbc2d07f0f6c (patch)
tree535de2c25c9ce09543174644ae8cebf48b6cf032 /configure.ac
parent472e1e834bc1033c1ec8f0f88250460e138fbf35 (diff)
parentac5d3248257e9e1ddbf57ca5828a1de165d445a4 (diff)
downloadengrampa-0f9758bfdedfd0c5a67a795f421cfbc2d07f0f6c.tar.bz2
engrampa-0f9758bfdedfd0c5a67a795f421cfbc2d07f0f6c.tar.xz
Merge pull request #21 from infirit/unarchiver
Add unarchiver support
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 66f70b2..7b13aa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,7 @@ dnl ==========================================================================
GLIB_REQUIRED=2.25.5
GIO_REQUIRED=2.25.5
CAJA_REQUIRED=1.1.0
+JSON_GLIB_REQUIRED=0.14.0
AC_MSG_CHECKING([which gtk+ version to compile against])
AC_ARG_WITH([gtk],
@@ -100,6 +101,23 @@ AC_SUBST(CAJA_CFLAGS)
AC_SUBST(CAJA_LIBS)
+PKG_CHECK_MODULES(JSON_GLIB,
+ [json-glib-1.0 >= $JSON_GLIB_REQUIRED
+ glib-2.0],
+ [enable_json_glib=yes],
+ [enable_json_glib=no])
+
+if test x$enable_json_glib = xyes ; then
+ AC_DEFINE(HAVE_JSON_GLIB, 1, [Define to 1 if json-glib support is included])
+fi
+
+AC_SUBST(JSON_GLIB_CFLAGS)
+AC_SUBST(JSON_GLIB_LIBS)
+
+AM_CONDITIONAL(ENABLE_JSON_GLIB, test x"$enable_json_glib" != x"no")
+
+dnl ******************************
+
dnl Checks for mkdtemp function
mkdtemp_missing=false
@@ -192,4 +210,5 @@ Configuration:
Caja support: ${build_caja_actions}
PackageKit support: ${enable_packagekit}
Run in place ${enable_run_in_place}
+ JSON support: ${enable_json_glib}
"