diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-08-07 11:05:59 +1000 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-08-07 16:25:10 -0700 |
commit | 6dd0ba0e32c616ed5fe91296d0adb3c04d0ca7cd (patch) | |
tree | 026a5523a46e2b124b4bdcee204067a327d46aa9 | |
parent | 2b26edb877d21a26721b0d1b0c676cf67be80ada (diff) |
scanner: check for wayland-scanner.pc before using variables
If wayland-scanner.pc can't be found the variables end up being set
irrespectively, leaving the user with odd compiler errors about missing
headers, etc.
-rw-r--r-- | wayland-scanner.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wayland-scanner.m4 b/wayland-scanner.m4 index 2b87c5f..4e4222a 100644 --- a/wayland-scanner.m4 +++ b/wayland-scanner.m4 @@ -1,6 +1,8 @@ AC_DEFUN([WAYLAND_SCANNER_RULES], [ PKG_PROG_PKG_CONFIG + PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner]) + wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` AC_SUBST([wayland_scanner]) |