3 @@ -159,12 +159,21 @@ AS_IF([test "x$enable_android" = "xyes"], [
4 dnl -----------------------------------------------
5 dnl check for glib support
6 dnl -----------------------------------------------
7 - PKG_CHECK_MODULES([GLIB], [glib-2.0], [
8 - AC_SUBST(GLIB_CFLAGS)
10 - AC_DEFINE(HAVE_GLIB, [1], ["glib library is available"])
11 - REQUIRES_LIBS="$REQUIRES_LIBS glib-2.0"
13 + AC_ARG_WITH([glib], [AS_HELP_STRING([--without-glib], [Disable linking to glib-2.0 library])], [with_glib=no], [with_glib=yes])
14 + AS_IF([test "x$with_glib" != xno],
16 + PKG_CHECK_MODULES([GLIB], [glib-2.0], [
17 + AC_SUBST(GLIB_CFLAGS)
19 + AC_DEFINE(HAVE_GLIB, [1], ["glib library is available"])
20 + REQUIRES_LIBS="$REQUIRES_LIBS glib-2.0"
26 + AS_IF([test "x$with_glib" = xno],
28 AS_IF([test "x$has_endian_h" = "xyes"],[
29 AC_MSG_NOTICE([use endian.h for endianess conversion])