OSDN Git Service

configure: Require libudev for drm & wayland egl platforms
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Sat, 2 Jul 2011 11:46:42 +0000 (13:46 +0200)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Sat, 2 Jul 2011 12:01:07 +0000 (14:01 +0200)
NOTE: This is a candidate for the 7.11 branch.

configure.ac

index 74a511e..7d0f3d8 100644 (file)
@@ -1724,6 +1724,10 @@ yes)
         if test "$plat" = "drm" && test "x$enable_gbm" = "xno"; then
                 AC_MSG_ERROR([EGL platform drm needs gbm])
         fi
+        case "$plat$have_libudev" in
+                waylandno|drmno)
+                    AC_MSG_ERROR([cannot build $plat platfrom without udev]) ;;
+        esac
     done
     EGL_PLATFORMS="$egl_platforms"
     ;;