[vlc-devel] [PATCH 1/2] configure.ac: simplify GBM pkg check

Alexandre Janniaux ajanni at videolabs.io
Sun Apr 18 16:20:00 UTC 2021


---
 configure.ac | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/configure.ac b/configure.ac
index b774a34ddc..77743df002 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4470,20 +4470,7 @@ AS_IF([test "${enable_osx_notifications}" != "no"], [
 dnl
 dnl Check for GBM
 dnl
-AC_ARG_ENABLE([gbm],
-  AS_HELP_STRING([--enable-gbm],
-    [Use GBM for egl_pbuffer (default enabled)]))
-have_gbm="no"
-AS_IF([test "${enable_gbm}" != "no"], [
-  PKG_CHECK_MODULES([GBM], [gbm], [have_gbm="yes"], [
-    AS_IF([test -n "${enable_gbm}"], [
-      AC_MSG_ERROR([${GBM_PKG_ERRORS}.])
-    ], [
-      AC_MSG_WARN([${GBM_PKG_ERRORS}.])
-    ])
-  ])
-])
-AM_CONDITIONAL([HAVE_GBM], [test "${have_gbm}" = "yes"])
+PKG_HAVE_WITH_MODULES([GBM],[gbm])

 dnl
 dnl Libnotify notification plugin
--
2.31.1


More information about the vlc-devel mailing list