diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-03-25 20:22:18 -0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-27 21:14:35 +0200 |
commit | e2dfd2f4d2ffb9238b3ccd3276c956c279e125f9 (patch) | |
tree | 21a9126b151176e70572ef8bb40f3fbbce89ebf4 /configure | |
parent | b0b36cc53c6115e5ca30986ceaf01215d09fcb39 (diff) |
Disable EGL (and thus EGLFS) if we're not using OpenGL ES
EGL support in src/platformsupport/eglconvenience requires OpenGL ES
to be enabled, so it makes no sense to test for the presence of EGL if
we're not enabling OpenGL ES.
EGLFS has similar requirements, so ensure it gets disabled
too. Otherwise we're going to get lots of undefined symbols in the
EGLFS plugin to things in QtPlatformSupport that did not get compiled
in either.
Change-Id: Ie55dd2e2597ec0594aa589ee8aac150c71104b46
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -4584,7 +4584,7 @@ else fi # EGL Support -if [ "$CFG_EGL" != "no" ]; then +if [ "$CFG_EGL" != "no" ] && [ "$CFG_OPENGL" != "desktop" ]; then if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists egl 2>/dev/null; then QMAKE_INCDIR_EGL=`$PKG_CONFIG --cflags-only-I egl 2>/dev/null | sed -e 's,^-I,,g' -e 's, -I, ,g'` QMAKE_LIBS_EGL=`$PKG_CONFIG --libs egl 2>/dev/null` @@ -4602,6 +4602,13 @@ if [ "$CFG_EGL" != "no" ]; then else CFG_EGL=no fi +elif [ "$CFG_OPENGL" = "desktop" ]; then + if [ "$CFG_EGL" = "yes" ]; then + echo "EGL support was requested but Qt is being configured for desktop OpenGL." + echo "Either disable EGL support or enable OpenGL ES support." + exit 101 + fi + CFG_EGL=no fi if [ "$CFG_EGLFS" != "no" ]; then |