From db3ff90efc44458b8767b59fe9bebdca5d1204f9 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 23 Feb 2018 19:32:05 +0000 Subject: [PATCH] autotools: error out when building with mangling and glvnd It's not a thing that can work, nor is a wise idea to attempt. v2: Tweak error message (Dylan) CC: Signed-off-by: Emil Velikov Reviewed-by: Adam Jackson (v1) (cherry picked from commit 25a9450a44b3b572fba81e6cafe33f3367252499) --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index a845a701656..32e82593cf8 100644 --- a/configure.ac +++ b/configure.ac @@ -1531,6 +1531,9 @@ AC_ARG_ENABLE([mangling], [enable_mangling=no] ) if test "x${enable_mangling}" = "xyes" ; then + if test "x$enable_libglvnd" = xyes; then + AC_MSG_ERROR([Conflicting options --enable-mangling and --enable-libglvnd.]) + fi DEFINES="${DEFINES} -DUSE_MGL_NAMESPACE" GL_LIB="Mangled${GL_LIB}" OSMESA_LIB="Mangled${OSMESA_LIB}"