]> err.no Git - pkg-config/commitdiff
* pkg.m4: Correct quoting brackets to correctly split t...
authorArch Librarian <arch@canonical.com>
Thu, 14 Jul 2005 13:06:03 +0000 (13:06 +0000)
committerArch Librarian <arch@canonical.com>
Thu, 14 Jul 2005 13:06:03 +0000 (13:06 +0000)
Author: keybuk
Date: 2004-07-06 17:31:17 GMT
* pkg.m4: Correct quoting brackets to correctly split the words.

ChangeLog
pkg.m4

index 0d389ebca163e63badd9c9545aa346f6ba8acbc6..6e753fee0f64e7318fa286014c6256eac58e80e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-07-06  Scott James Remnant  <scott@netsplit.com>
+
+       * pkg.m4: Correct quoting brackets to correctly split the words.
+
 2004-06-08  Scott James Remnant  <scott@netsplit.com>
 
        * README: Change gnome.org reference to freedesktop.org
diff --git a/pkg.m4 b/pkg.m4
index 557deb44e0e2c541872b01678556a983008d20e6..b04c64b5eca78c591bd5f882e88878fd2742531f 100644 (file)
--- a/pkg.m4
+++ b/pkg.m4
@@ -64,14 +64,14 @@ fi[]dnl
 # --------------------------------------------------------------
 AC_DEFUN([PKG_CHECK_MODULES],
 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-AC_ARG_VAR([$1[]_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
-AC_ARG_VAR([$1[]_LIBS], [linker flags for $1, overriding pkg-config])dnl
+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
 pkg_failed=no
-AC_CACHE_CHECK([for $1[]_CFLAGS], [pkg_cv_[]$1[]_CFLAGS],
-       [_PKG_CONFIG([$1[]_CFLAGS], [cflags], [[$2]])])
-AC_CACHE_CHECK([for $1[]_LIBS], [pkg_cv_[]$1[]_LIBS],
-       [_PKG_CONFIG([$1[]_LIBS], [libs], [[$2]])])
+AC_CACHE_CHECK([for $1][_CFLAGS], [pkg_cv_][$1][_CFLAGS],
+       [_PKG_CONFIG([$1][_CFLAGS], [cflags], [[$2]])])
+AC_CACHE_CHECK([for $1][_LIBS], [pkg_cv_][$1][_LIBS],
+       [_PKG_CONFIG([$1][_LIBS], [libs], [[$2]])])
 
 if test $pkg_failed = yes; then
        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`