Skip to content

Commit

Permalink
m4/arc-gnome: Use correct pkg-config macro
Browse files Browse the repository at this point in the history
This allows for ./configure to detect prefixed versions of
pkg-config.
  • Loading branch information
somasis committed Dec 14, 2015
1 parent 946cbf5 commit 2753f47
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions m4/arc-gnome.m4
Expand Up @@ -2,20 +2,15 @@
# ---------------
AC_DEFUN([ARC_GNOME], [
GNOMEDIR="$srcdir/common/gtk-3.0"
PKG_PROG_PKG_CONFIG()
AC_ARG_WITH(
[gnome],
[AS_HELP_STRING(
[--with-gnome],
[GNOME minor version]
)],
[GNOME_VERSION="$withval"],
[AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
AS_IF(
[test "x$HAVE_PKG_CONFIG" != "xyes"],
[AC_MSG_ERROR([Could not find pkg-config.])]
)
PKG_CHECK_EXISTS(
[PKG_CHECK_EXISTS(
[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).])]
Expand Down

0 comments on commit 2753f47

Please sign in to comment.