configure.ac: Fix dependencies checking
authorJavier Jardón <javier.jardon@codethink.co.uk>
Mon, 23 May 2011 13:26:38 +0000 (14:26 +0100)
committerJavier Jardón <javier.jardon@codethink.co.uk>
Mon, 23 May 2011 13:26:38 +0000 (14:26 +0100)
commitab2a8110aef03f777ef9aa978d2d57fc3b1ca48c
treed7728fed647c1bc97f74aeffcf366aca4cd5bd95
parentad8c69edba04dabe2efe23d24b2999f6af4d3249
configure.ac: Fix dependencies checking

The pkg-config command is discovered through a separate macro,
PKG_PROG_PKG_CONFIG that takes care of identifying the presence (and version)
of pkg-config itself. This macro is called through AC_REQUIRE
so that is expanded before PKG_CHECK_MODULES.

If we have the first call to PKG_CHECK_MODULES inside a bash conditional block,
the expansion of PKG_PROG_PKG_CONFIG will also be conditional,
so the previous code will fail to work.
configure.ac