configure: Use WAYLAND_SCANNER_RULES only if available
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 26 Jan 2012 09:50:04 +0000 (10:50 +0100)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 26 Jan 2012 10:49:47 +0000 (11:49 +0100)
This has the drawback that when creating configure for
distribution, wayland needs to be available for the packager.

Also the the macros has the wayland prefix hardcoded, so
we cant copy it in mesa right now.

configure.ac

index 59919f085fce92c87c913e54b46e05b5029ef511..c9e658c69a2af0240c670695dc68917c1642fbbc 100644 (file)
@@ -1710,7 +1710,8 @@ yes)
                                  [AC_MSG_ERROR([cannot find libwayland-client])])
                 GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/wayland"
 
-                WAYLAND_SCANNER_RULES(['$(top_srcdir)/src/egl/wayland/wayland-drm/protocol'])
+                m4_ifdef([WAYLAND_SCANNER_RULES],
+                         [WAYLAND_SCANNER_RULES(['$(top_srcdir)/src/egl/wayland/wayland-drm/protocol'])])
        fi
         if test "$plat" = "drm" && test "x$enable_gbm" = "xno"; then
                 AC_MSG_ERROR([EGL platform drm needs gbm])