mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
Modernize pkg-config check
As pointed out in bug 599590, our hand-rolled check fails to find cross-complication variants of pkg-config like i686-pc-mingw32-pkg-config.
This commit is contained in:
parent
3e8a9c7b52
commit
530f67384e
14
configure.ac
14
configure.ac
@ -277,19 +277,7 @@ AC_PROG_INSTALL
|
||||
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
#
|
||||
# Find pkg-config
|
||||
#
|
||||
AC_PATH_PROG(PKG_CONFIG, [pkg-config], [no])
|
||||
if test x$PKG_CONFIG = xno ; then
|
||||
AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
|
||||
fi
|
||||
|
||||
if $PKG_CONFIG --atleast-pkgconfig-version 0.16 ; then
|
||||
:
|
||||
else
|
||||
AC_MSG_ERROR([*** pkg-config too old; version 0.16 or better required.])
|
||||
fi
|
||||
PKG_PROG_PKG_CONFIG(0.16)
|
||||
|
||||
if test "x$enable_debug" = "xyes"; then
|
||||
if test x$cflags_set != xset ; then
|
||||
|
Loading…
Reference in New Issue
Block a user