From: Tollef Fog Heen Date: Sun, 6 Dec 2009 20:32:35 +0000 (+0100) Subject: Make sure AC_MSG_RESULT is always called X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40f3532add15734eac234a9f6beec1f8a87f789b;p=pkg-config Make sure AC_MSG_RESULT is always called Based on a patch by Peter Breitenlohner, thanks. Bug #9704 --- diff --git a/pkg.m4 b/pkg.m4 index 0294d77..fb3ae58 100644 --- a/pkg.m4 +++ b/pkg.m4 @@ -119,6 +119,7 @@ and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then + AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` @@ -138,9 +139,9 @@ installed software in a non-standard prefix. _PKG_TEXT ])], - [AC_MSG_RESULT([no]) - $4]) + [$4]) elif test $pkg_failed = untried; then + AC_MSG_RESULT([no]) ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full @@ -149,8 +150,7 @@ path to pkg-config. _PKG_TEXT To get pkg-config, see .])], - [AC_MSG_RESULT([no]) - $4]) + [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS