Ticket #1980: increased minimal required version of GLib up to 2.8.

g_try_new, g_try_new0 and g_try_malloc0 macros
are available in Glib >= 2.8.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-01-27 09:55:22 +00:00
parent 837295b62a
commit 5a92bf096a
4 changed files with 5 additions and 5 deletions

View File

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

View File

@ -19,7 +19,7 @@ required:
Autoconf 2.52 and above (latest is recommended) Autoconf 2.52 and above (latest is recommended)
Automake 1.5 and above (latest is recommended) Automake 1.5 and above (latest is recommended)
Gettext 0.11.5 and above Gettext 0.11.5 and above
Glib 2.6 and above (2.14 and higher is recommended) Glib 2.8 and above (2.14 and higher is recommended)
Full list of requirements you can see at: Full list of requirements you can see at:
http://www.midnight-commander.org/wiki/doc/buildAndInstall/req http://www.midnight-commander.org/wiki/doc/buildAndInstall/req

View File

@ -395,7 +395,7 @@ get glib from
ftp://ftp.gtk.org/pub/glib/ ftp://ftp.gtk.org/pub/glib/
Minimal version of glib: 2.6.x Minimal version of glib: 2.8.x
Recommended version: 2.14.x and higher. Recommended version: 2.14.x and higher.
Newer versions may work, but haven't been tested. Newer versions may work, but haven't been tested.

View File

@ -29,7 +29,7 @@ Dependencies
------------ ------------
To compile the GNU Midnight Commander, you need to have a copy of the To compile the GNU Midnight Commander, you need to have a copy of the
glib library version 2.6.x or newer, available at glib library version 2.8.x or newer, available at
ftp://ftp.gtk.org/pub/glib/ ftp://ftp.gtk.org/pub/glib/