AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
if test x"$PKG_CONFIG" != x; then
AC_MSG_CHECKING([pkg-config database for $2])
+ pkg_failed=no
_PKG_CONFIG(m4_tolower([$1])[_cflags], [cflags], [$2])
_PKG_CONFIG(m4_tolower([$1])[_libs], [libs], [$2])
if test x$pkg_failed = xyes; then