diff --git a/configure b/configure index 7a16f8cd6aa..a56eec20b0c 100755 --- a/configure +++ b/configure @@ -4973,14 +4973,19 @@ EOF fi done elif test "$_opengles2" = yes ; then + # 1) GLESv2 This is generally used by nearly all platforms for OpenGL ES 2 + # 2) ogles2 This is used by AmigaOS4 (and proabably others) _opengles2=no - if cc_check_no_clean $DEFINES $OPENGL_CFLAGS $OPENGL_LIBS "-lGLESv2" - then - _opengl=yes - _opengles2=yes - _opengl_shaders=yes - append_var OPENGL_LIBS "-lGLESv2" - fi + for lib in "-lGLESv2" "-logles2"; do + if cc_check_no_clean $DEFINES $OPENGL_CFLAGS $OPENGL_LIBS $lib + then + _opengl=yes + _opengles2=yes + _opengl_shaders=yes + append_var OPENGL_LIBS "$lib" + break + fi + done else case $_host_os in darwin*)