2013-07-02 17:38:15 +08:00
|
|
|
AC_DEFUN([WAYLAND_SCANNER_RULES], [
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2013-08-07 09:05:59 +08:00
|
|
|
PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner])
|
|
|
|
|
2013-07-02 17:38:15 +08:00
|
|
|
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])
|
|
|
|
])
|