From 467a9c1bd566a7b421f7b44d87e04f18e8457eb9 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Fri, 26 Jul 2013 10:27:05 +0200 Subject: [PATCH] Changes to compile with gtk3 and libgda5. --- configure.ac | 6 ++---- libzakaudit.pc.in | 2 +- tests/test1.c | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index e4315e2..6453556 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT([libzakaudit], [0.3.0], [azagli@libero.it]) +AC_INIT([libzakaudit], [0.5.0], [azagli@libero.it]) AC_CONFIG_SRCDIR([src/audit.c]) AC_CONFIG_HEADER([config.h]) @@ -20,7 +20,6 @@ AC_PROG_CC AC_PROG_LIBTOOL # Checks for libraries. -GDAEX_REQUIRED=0.2.0 dnl Check for pkgconfig first AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) @@ -30,8 +29,7 @@ if test "x$HAVE_PKGCONFIG" = "xno"; then AC_MSG_ERROR(you need to have pkgconfig installed !) fi -PKG_CHECK_MODULES(LIBZAKAUDIT, gtk+-2.0 >= 2.20 - libgdaex >= $GDAEX_REQUIRED) +PKG_CHECK_MODULES(LIBZAKAUDIT, [libgdaex >= 0.5.0]) AC_SUBST(LIBZAKAUDIT_CFLAGS) AC_SUBST(LIBZAKAUDIT_LIBS) diff --git a/libzakaudit.pc.in b/libzakaudit.pc.in index d0e9dc3..a7b5758 100644 --- a/libzakaudit.pc.in +++ b/libzakaudit.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: @PACKAGE_NAME@ Description: Database auditing Version: @PACKAGE_VERSION@ -Requires: libgdaex +Requires: libgdaex >= 0.5.0 Libs: -L${libdir} -lzakaudit Cflags: -I${includedir} diff --git a/tests/test1.c b/tests/test1.c index 58da167..23727e8 100644 --- a/tests/test1.c +++ b/tests/test1.c @@ -1,7 +1,7 @@ /* * test1.c * - * Copyright (C) 2005-2010 Andrea Zagli + * Copyright (C) 2005-2013 Andrea Zagli * * This file is part of libaudit. * @@ -34,8 +34,6 @@ main (int argc, char *argv[]) GdaSqlParser *parser; GdaStatement *stmt; - g_type_init (); - audit = zak_audit_new_from_string ("PostgreSQL://postgres:postgres@HOST=localhost;DB_NAME=audit"); if (audit == NULL) -- 2.49.0