If PKG_CHECK_MODULES fails, always print result "no".

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15731 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-03-17 17:29:24 +00:00
parent 8603ae302c
commit 9ec20373ab
2 changed files with 1 additions and 2 deletions

View File

@ -1100,9 +1100,7 @@ then
AC_SUBST(GLADE_LIBS)
PKG_CHECK_MODULES(GOFFICE, libgoffice-0.3 >= 0.3.0, [], [
AC_MSG_RESULT(no)
PKG_CHECK_MODULES(GOFFICE, libgoffice-1 >= 0.0.4, [], [
AC_MSG_RESULT(no)
AC_MSG_ERROR([Cannot find libgoffice.])
])
])

View File

@ -36,6 +36,7 @@ AC_DEFUN([PKG_CHECK_MODULES], [
$1_LIBS=`$PKG_CONFIG --libs "$2"`
AC_MSG_RESULT($$1_LIBS)
else
AC_MSG_RESULT(no)
$1_CFLAGS=""
$1_LIBS=""
## If we have a custom action on failure, don't print errors, but