summaryrefslogtreecommitdiff
path: root/wayland-scanner.m4
blob: 4e4222ad4d2f6686f8eed24615c8ae73fbeb4156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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])

    wayland_scanner_rules=`$PKG_CONFIG --variable=pkgdatadir wayland-scanner`/wayland-scanner.mk
    AC_SUBST_FILE([wayland_scanner_rules])

    AC_SUBST([wayland_protocoldir], [$1])
])