Ticket #1420: ./configure issue: Glib

Added check for result of
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6], [glib_found=yes], [:])

Now if glib not found or if glib have  version less than 2.6 configure script
will exit with error message.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-09-18 16:00:42 +03:00
parent 4c68d3ae47
commit c8e6c2ef29
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ AC_ARG_WITH([glib_static],
glib_found=no
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6], [glib_found=yes], [:])
if test x"$glib_found" = xno; then
AC_MSG_ERROR([glib-2.0 not found or version too old (must be >= 2.6)])
fi
PKG_CHECK_MODULES(GMODULE, [gmodule-2.0], [gmodule_found=yes])
GLIB_LIBDIR="`$PKG_CONFIG --variable=libdir glib-2.0`"