1
0
mirror of https://github.com/horst3180/arc-theme.git synced 2024-10-27 19:04:02 +00:00

m4/arc-gnome: Use correct pkg-config macro

This allows for ./configure to detect prefixed versions of
pkg-config.
This commit is contained in:
Kylie McClain 2015-12-14 08:12:29 -05:00
parent 946cbf5607
commit 2753f47db6

View File

@ -2,7 +2,7 @@
# --------------- # ---------------
AC_DEFUN([ARC_GNOME], [ AC_DEFUN([ARC_GNOME], [
GNOMEDIR="$srcdir/common/gtk-3.0" GNOMEDIR="$srcdir/common/gtk-3.0"
PKG_PROG_PKG_CONFIG()
AC_ARG_WITH( AC_ARG_WITH(
[gnome], [gnome],
[AS_HELP_STRING( [AS_HELP_STRING(
@ -10,12 +10,7 @@ AC_DEFUN([ARC_GNOME], [
[GNOME minor version] [GNOME minor version]
)], )],
[GNOME_VERSION="$withval"], [GNOME_VERSION="$withval"],
[AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes) [PKG_CHECK_EXISTS(
AS_IF(
[test "x$HAVE_PKG_CONFIG" != "xyes"],
[AC_MSG_ERROR([Could not find pkg-config.])]
)
PKG_CHECK_EXISTS(
[gtk+-3.0], [gtk+-3.0],
[GNOME_VERSION=`$PKG_CONFIG --modversion gtk+-3.0`], [GNOME_VERSION=`$PKG_CONFIG --modversion gtk+-3.0`],
[AC_MSG_ERROR([Could not determine GNOME version. Install GTK3 and its development files (libgtk-3-dev for Debian/Ubuntu based distros and gtk3-devel for RPM based distros).])] [AC_MSG_ERROR([Could not determine GNOME version. Install GTK3 and its development files (libgtk-3-dev for Debian/Ubuntu based distros and gtk3-devel for RPM based distros).])]