From 20629d32c86a89ffbabd65037e4ffcd3f5a979a6 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Fri, 12 Feb 2010 15:56:32 +0100 Subject: [PATCH] Tolta la dipendenza di libconfi dal libaute.pc." --- configure.ac | 7 ++++++- libaute.pc.in | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f6c6aa8..0f5b0f2 100644 --- a/configure.ac +++ b/configure.ac @@ -27,12 +27,17 @@ PKG_CHECK_MODULES(LIBAUTE, [glib-2.0 >= 2.10.0 AC_SUBST(LIBAUTE_CFLAGS) AC_SUBST(LIBAUTE_LIBS) -PKG_CHECK_MODULES(LIBCONFI, [libconfi >= 0.0.2], AC_DEFINE(HAVE_LIBCONFI, [1], [libconfi is present]), have_libconfi=yes) +PKG_CHECK_MODULES(LIBCONFI, [libconfi >= 0.0.2], [AC_DEFINE(HAVE_LIBCONFI, [1], [libconfi is present]), have_libconfi=yes], have_libconfi=no) AM_CONDITIONAL(HAVE_LIBCONFI, test x"$have_libconfi" = "xyes") AC_SUBST(LIBCONFI_CFLAGS) AC_SUBST(LIBCONFI_LIBS) +if test x"$have_libconfi" = "xyes" +then + AC_SUBST(PKGCONFIG_DEPEND, [", libconfi"]) +fi + # Checks for header files. # Checks for typedefs, structures, and compiler characteristics. diff --git a/libaute.pc.in b/libaute.pc.in index 1d3a557..61cc1c0 100644 --- a/libaute.pc.in +++ b/libaute.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: @PACKAGE_NAME@ Description: Libreria per la gestione dell'autenticazione attraverso plugin Version: @PACKAGE_VERSION@ -Requires: glib-2.0, libconfi +Requires: glib-2.0 @PKGCONFIG_DEPEND@ Libs: -L${libdir} -laute Cflags: -I${includedir} -- 2.49.0