commit f689fe33b0f32c302cc8dc591685c34584925757 Author: Hib Eris Date: Tue Mar 10 22:09:52 2009 +0100 Check for pkg-config with PKG_PROG_PKG_CONFIG Use PKG_PROG_PKG_CONFIG instead of hard coding a check for pkg-config. This will help cross compilers, for example to check for i586-mingw32msvc-pkg-config. diff --git a/configure.ac b/configure.ac index d32f048..45bcea8 100644 --- a/configure.ac +++ b/configure.ac @@ -22,8 +22,8 @@ AC_CHECK_FUNC(gettimeofday, AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defines if gettimeo AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, 1, [Defines if localtime_r is available on your system])) dnl ##### Check for pkgconfig -AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) -if test "x$HAVE_PKGCONFIG" = "xno"; then +PKG_PROG_PKG_CONFIG +if test "x$PKG_CONFIG" = "x"; then AC_MSG_ERROR("*** pkg-config not found ***") fi