Trochę czasu zmarnowałem zanim zrozumiałem dlaczego autoconf narzeka na
brak jednego ze swoich podstawowych makr. Mam nadzieję że to pomoże
przyszłym pokoleniom :)

-- 
Marcin Owsiany <[email protected]>              http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216
 
"Every program in development at MIT expands until it can read mail."
                                                              -- Unknown
>From 9dccf31556ae061d5a5db70d14bb67132fc22016 Mon Sep 17 00:00:00 2001
From: Marcin Owsiany <[email protected]>
Date: Sun, 19 Jun 2011 10:10:52 +0100
Subject: [PATCH] Added ^PKG_CHECK to forbidden patterns as a hint.

When pkg-config m4 file is not available during autoreconf, the pkg-config
macros do not get expanded, and because of the way they are used with
AC_DEFINE, autoconf mysteriously starts complaining that AC_DEFINE is not
defined, which is both confusing and simply not true.

Adding the ^PKG_CHECK pattern to the list of forbidden patterns makes it also
display a hint about PKG_CHECK_MODULES macro being undefined. This hopefully
will make it easier for people to realize what the problem is.
---
 configure.ac |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3b64408..345b128 100644
--- a/configure.ac
+++ b/configure.ac
@@ -323,6 +323,7 @@ if test "x$enable_tests" != "xno"; then
 	dnl  Sprawdź, czy mamy libxml2 do testów automatycznych
 	dnl
 
+	m4_pattern_forbid([^PKG_CHECK])
 	export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
 
 	PKG_PROG_PKG_CONFIG
-- 
1.7.3.1

_______________________________________________
libgadu-devel mailing list
[email protected]
http://lists.ziew.org/mailman/listinfo/libgadu-devel

Reply via email to