Description: Fix glib detection
Author: Evan Miller <emmiller@gmail.com>
Bug: https://github.com/mdbtools/mdbtools/issues/212
Reviewed-by: Jean-Michel Vourgère <nirgal@debian.org>
Last-Update: 2020-12-13
Applied-Upstream: commit:b0902d1a517a4ffb86b8b2f5ce3bb878948a087b

Index: mdbtools/configure.ac
===================================================================
--- mdbtools.orig/configure.ac
+++ mdbtools/configure.ac
@@ -213,7 +213,7 @@ AC_ARG_ENABLE(glib,
 
 if test "$enable_glib" = "yes"; then
     GLIB_PACKAGE=glib-2.0
-    PKG_CHECK_MODULES([GLIB], [GLIB_PACKAGE], HAVE_GLIB=true, HAVE_GLIB=false)
+    PKG_CHECK_MODULES([GLIB], [$GLIB_PACKAGE], HAVE_GLIB=true, HAVE_GLIB=false)
     if test "x$HAVE_GLIB" = "xtrue"; then
         GLIB_CFLAGS="$GLIB_CFLAGS -DHAVE_GLIB=1"
         AC_SUBST(GLIB_PACKAGE)
