Skip to content

Commit 6dd0ba0

Browse files
whotkrh
authored andcommitted
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.
1 parent 2b26edb commit 6dd0ba0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wayland-scanner.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
AC_DEFUN([WAYLAND_SCANNER_RULES], [
22
PKG_PROG_PKG_CONFIG
33
4+
PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner])
5+
46
wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
57
AC_SUBST([wayland_scanner])
68

0 commit comments

Comments
 (0)