diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-01-18 16:44:22 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-01-18 16:44:22 +0100 |
commit | 2a59016f13316d1e7992fca4d3d8aab20c2ce512 (patch) | |
tree | 3363011cd6212520609e5039002bf02aef956b19 /m4/gst-glib2.m4 | |
parent | 08071872d3d2aaf10a13170809b04e86fa5e87be (diff) |
gst-glib2.m4: Add a check for GIO too
We depend on it unconditionally now in core and elsewhere.
Diffstat (limited to 'm4/gst-glib2.m4')
-rw-r--r-- | m4/gst-glib2.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/m4/gst-glib2.m4 b/m4/gst-glib2.m4 index b01f02f..b141bee 100644 --- a/m4/gst-glib2.m4 +++ b/m4/gst-glib2.m4 @@ -72,4 +72,20 @@ AC_DEFUN([AG_GST_GLIB_CHECK], AS_SCRUB_INCLUDE(GLIB_CFLAGS) AC_SUBST(GLIB_EXTRA_CFLAGS) + + dnl Now check for GIO + PKG_CHECK_MODULES(GIO, gio-2.0 >= $GLIB_REQ) + if test "x$HAVE_GIO" = "xno"; then + AC_MSG_ERROR([This package requires GIO >= $GLIB_REQ to compile.]) + fi + + GIO_MODULE_DIR="`$PKG_CONFIG --variable=giomoduledir gio-2.0`" + AC_DEFINE_UNQUOTED(GIO_MODULE_DIR, "$GIO_MODULE_DIR", + [The GIO modules directory.]) + GIO_LIBDIR="`$PKG_CONFIG --variable=libdir gio-2.0`" + AC_DEFINE_UNQUOTED(GIO_LIBDIR, "$GIO_LIBDIR", + [The GIO library directory.]) + AC_SUBST(GIO_CFLAGS) + AC_SUBST(GIO_LIBS) + AC_SUBST(GIO_LDFLAGS) ]) |