mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
configure.ac: print deprecation warning as needed
The warning should be printed only when one explicitly uses the deprecated configure toggle. Fixes:7748c3f5eb("configure.ac: deprecate --with-egl-platforms over --with-platforms") Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit9915753e63)
This commit is contained in:
parent
29fa5b6e1c
commit
fcbb263f8c
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue