mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Require glib2 >= 2.68
This commit is contained in:
@@ -226,10 +226,9 @@ AC_ARG_ENABLE(glib,
|
|||||||
|
|
||||||
if test "$enable_glib" = "yes"; then
|
if test "$enable_glib" = "yes"; then
|
||||||
GLIB_PACKAGE=glib-2.0
|
GLIB_PACKAGE=glib-2.0
|
||||||
PKG_CHECK_MODULES([GLIB], [$GLIB_PACKAGE], HAVE_GLIB=true, HAVE_GLIB=false)
|
PKG_CHECK_MODULES([GLIB], [$GLIB_PACKAGE >= 2.68], HAVE_GLIB=true, HAVE_GLIB=false)
|
||||||
if test "x$HAVE_GLIB" = "xtrue"; then
|
if test "x$HAVE_GLIB" = "xtrue"; then
|
||||||
GLIB_CFLAGS="$GLIB_CFLAGS -DHAVE_GLIB=1"
|
GLIB_CFLAGS="$GLIB_CFLAGS -DHAVE_GLIB=1"
|
||||||
AC_CHECK_LIB($GLIB_PACKAGE, g_memdup2, [GLIB_CFLAGS="$GLIB_CFLAGS -DHAVE_G_MEMDUP2=1"])
|
|
||||||
AC_SUBST(GLIB_PACKAGE)
|
AC_SUBST(GLIB_PACKAGE)
|
||||||
else
|
else
|
||||||
enable_glib=no
|
enable_glib=no
|
||||||
|
|||||||
@@ -26,10 +26,6 @@
|
|||||||
* used within mdbtools so they won't be exported to calling programs.
|
* used within mdbtools so they won't be exported to calling programs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HAVE_G_MEMDUP2
|
|
||||||
#define g_memdup2 g_memdup
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user