Bug 29056

Summary: pkg-config-0.25 get error with autoconf-2.66 by autoconf --force option
Product: pkg-config Reporter: Nishio Futoshi <fut_nis>
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium CC: bunk
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Nishio Futoshi 2010-07-14 03:28:10 UTC
macro PKG_CHECK_MODULES in pkg.m4 get error with autoconf-2.66, autoreconf --force option (autoconf --force, too).

in configure.ac write
PKG_CHECK_MODULES(GLIB, [glib-2.0])

and autoreconf with -f (--force) option
configure:3445: error: possibly undefined macro: AS_MESSAGE_LOG_FDdnl
       If this token and others are legitimate, please use m4_pattern_allow.
       See the Autoconf documentation.

$ cat -n configure | head -n 3450 - | tail -n 10 -
3441	installed software in a non-standard prefix.
3442	
3443	Alternatively, you may set the environment variables GLIB_CFLAGS
3444	and GLIB_LIBS to avoid the need to call pkg-config.
3445	See the pkg-config man page for more details." "$LINENO" AS_MESSAGE_LOG_FDdnl
3446	
3447	elif test $pkg_failed = untried; then
3448	     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449	$as_echo "no" >&6; }
3450		{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5

to fix this probrem, i create patch below, but i don't think it is good patch.

--- pkg.m4.old	2010-07-14 00:06:09.000000000 +0900
+++ pkg.m4	2010-07-14 00:06:28.000000000 +0900
@@ -135,7 +135,7 @@
 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 installed software in a non-standard prefix.
 
-_PKG_TEXT])dnl
+_PKG_TEXT])[]dnl
         ])
 elif test $pkg_failed = untried; then
      	AC_MSG_RESULT([no])
Comment 1 Tollef Fog Heen 2010-08-19 07:28:23 UTC
Fixed in 2b86e9b

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.