Mesa (master): configure.ac: print deprecation warning as needed
Emil Velikov
evelikov at kemper.freedesktop.org
Mon Apr 17 14:15:16 UTC 2017
Module: Mesa
Branch: master
Commit: 9915753e631a203d7f22bfa308fbf688644a8a37
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9915753e631a203d7f22bfa308fbf688644a8a37
Author: Emil Velikov <emil.velikov at collabora.com>
Date: Mon Apr 17 15:07:44 2017 +0100
configure.ac: print deprecation warning as needed
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 at gmail.com>
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 2dd5cf014b..e18f12f0b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
More information about the mesa-commit
mailing list