1
dnl check for a minimum version of GLib
3
dnl GST_GLIB_CHECK([minimum-version-required])
5
AC_DEFUN([GST_GLIB_CHECK],
7
dnl Minimum required version of GLib
9
if test "x$GLIB_REQ" = "x"
11
AC_MSG_ERROR([Please specify a required version for [GST_GLIB_CHECK]])
15
dnl Check for glib with everything
16
PKG_CHECK_MODULES(GLIB,
17
glib-2.0 >= $GLIB_REQ gobject-2.0 gthread-2.0 gmodule-2.0,
18
HAVE_GLIB=yes,HAVE_GLIB=no)
20
if test "x$HAVE_GLIB" = "xno"; then
21
AC_MSG_ERROR([This package requires GLib >= $GLIB_REQ to compile.])
24
dnl for the poor souls who for example have glib in /usr/local
25
AS_SCRUB_INCLUDE(GLIB_CFLAGS)