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 /wayland-scanner.m4 | |
| parent | scanner: expand help string (diff) | |
| download | wayland-6dd0ba0e32c616ed5fe91296d0adb3c04d0ca7cd.tar wayland-6dd0ba0e32c616ed5fe91296d0adb3c04d0ca7cd.tar.gz wayland-6dd0ba0e32c616ed5fe91296d0adb3c04d0ca7cd.tar.bz2 wayland-6dd0ba0e32c616ed5fe91296d0adb3c04d0ca7cd.tar.lz wayland-6dd0ba0e32c616ed5fe91296d0adb3c04d0ca7cd.tar.xz wayland-6dd0ba0e32c616ed5fe91296d0adb3c04d0ca7cd.tar.zst wayland-6dd0ba0e32c616ed5fe91296d0adb3c04d0ca7cd.zip | |
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.
Diffstat (limited to 'wayland-scanner.m4')
| -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]) |
