compatibility: use AC_PATH_PROG to find pkg-config instead of PKG_PROG_PKG_CONFIG

This commit is contained in:
szaka 2007-12-15 09:10:55 +00:00
parent 3b01ef2754
commit fc53b9bcb9

View File

@ -192,8 +192,10 @@ if test "${with_fuse}" = "internal"; then
[Define to 1 if using internal fuse]
)
else
PKG_PROG_PKG_CONFIG
test -z "${PKG_CONFIG}" && AC_MSG_ERROR([pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/])
if test -z "$PKG_CONFIG"; then
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
fi
test "x${PKG_CONFIG}" = "xno" && AC_MSG_ERROR([pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/])
# Libraries often install their metadata .pc files in directories
# not searched by pkg-config. Let's workaround this.
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:$prefix/lib/pkgconfig:/opt/gnome/share/pkgconfig:/usr/local/share/pkgconfig