python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / sdl2_ttf / 0001-fix-opengl-detection.patch
blob06e0abf8b9252d8c1b0efe6391cb047a12d354fc
1 # HG changeset patch
2 # User Sam Lantinga <slouken@libsdl.org>
3 # Date 1485568474 28800
4 # Node ID 3b93536d291a34183592fd29ef1df9cf1416ac09
5 # Parent 184c34c673d479477d34194e3c0b1abe7ca5d828
6 Make sure we can link with OpenGL libraries in the OpenGL configure test
8 [yann.morin.1998@free.fr:
9 - backported from upstream
10 - drop the configure hunk for autoreconf
12 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
14 diff -r 184c34c673d4 -r 3b93536d291a configure.in
15 --- a/configure.in Sun Jan 01 18:46:38 2017 -0800
16 +++ b/configure.in Fri Jan 27 17:54:34 2017 -0800
17 @@ -164,14 +164,17 @@
18 esac
19 AC_MSG_CHECKING(for OpenGL support)
20 have_opengl=no
21 -AC_TRY_COMPILE([
22 +save_LIBS="$LIBS"
23 +LIBS="$LIBS $SYS_GL_LIBS"
24 +AC_TRY_LINK([
25 #include "SDL_opengl.h"
26 ],[
27 - GLuint texture;
28 + glOrtho( -2.0, 2.0, -2.0, 2.0, -20.0, 20.0 );
29 ],[
30 have_opengl=yes
32 AC_MSG_RESULT($have_opengl)
33 +LIBS="$save_LIBS"
34 if test x$have_opengl = xyes; then
35 CFLAGS="$CFLAGS -DHAVE_OPENGL"
36 GL_LIBS="$SYS_GL_LIBS"