diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2002-04-02 14:46:19 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2002-04-02 14:46:19 +0000 |
commit | 6148068f2318e85d8e66df485342b630d8fb49ac (patch) | |
tree | c55e58ee2deee94f703b7ca801618b53cdc8c386 /m4/gst-glib2.m4 | |
parent | 38267abf56a3428093cea71429dca6a24a927547 (diff) |
adding glib2 and libxml2 check macros to be shared between core and plugins
Original commit message from CVS:
adding glib2 and libxml2 check macros to be shared between core and plugins
Diffstat (limited to 'm4/gst-glib2.m4')
-rw-r--r-- | m4/gst-glib2.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/m4/gst-glib2.m4 b/m4/gst-glib2.m4 new file mode 100644 index 0000000..954d3c2 --- /dev/null +++ b/m4/gst-glib2.m4 @@ -0,0 +1,18 @@ +AC_DEFUN(GST_GLIB2_CHECK, [ +dnl === GLib 2 === +dnl Minimum required version of GLib2 +GLIB2_REQ="1.3.12" +AC_SUBST(GLIB2_REQ) + +dnl Check for glib2 +PKG_CHECK_MODULES(GLIB2, glib-2.0 >= $GLIB2_REQ gobject-2.0 gthread-2.0 gmodule-2.0, + HAVE_GLIB2=yes,HAVE_GLIB2=no) +GLIB_LIBS=$GLIB2_LIBS +GLIB_CFLAGS=$GLIB2_CFLAGS +AC_SUBST(GLIB_LIBS) +AC_SUBST(GLIB_CFLAGS) + +if test "x$HAVE_GLIB2" = "xno"; then + AC_MSG_ERROR([This package requires GLib 2.0 to compile.]) +fi +]) |