configure.ac: print deprecation warning as needed
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 17 Apr 2017 14:07:44 +0000 (15:07 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 17 Apr 2017 14:07:44 +0000 (15:07 +0100)
The warning should be printed only when one explicitly uses the
deprecated configure toggle.

Fixes: 7748c3f5eb1 ("configure.ac: deprecate --with-egl-platforms over
--with-platforms")
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac

index 2dd5cf0..e18f12f 100644 (file)
@@ -2151,7 +2151,6 @@ AC_ARG_WITH([egl-platforms],
     [with_egl_platforms=auto])
 
 if test "x$with_egl_platforms" = xauto; then
-    AC_MSG_WARN([--with-egl-platforms is deprecated. Use --with-plaforms instead.])
     if test "x$enable_egl" = xyes; then
         if test "x$enable_gbm" = xyes; then
            with_egl_platforms="x11,drm"
@@ -2161,6 +2160,8 @@ if test "x$with_egl_platforms" = xauto; then
     else
         with_egl_platforms=""
     fi
+else
+    AC_MSG_WARN([--with-egl-platforms is deprecated. Use --with-plaforms instead.])
 fi
 
 dnl