[gtkglarea/jjardon/epoxy: 3/3] configure.ac: Check correctly for shaders support
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkglarea/jjardon/epoxy: 3/3] configure.ac: Check correctly for shaders support
- Date: Tue, 5 Aug 2014 01:10:43 +0000 (UTC)
commit 583a2a91a08634614aea849b15a66e3b6de1ab4d
Author: Javier Jardón <jjardon gnome org>
Date: Mon Apr 7 13:36:34 2014 +0100
configure.ac: Check correctly for shaders support
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bcda494..31bce41 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,8 +86,8 @@ PKG_CHECK_MODULES([GL],[
saved_LIBS="$LIBS"
AC_MSG_CHECKING([OpenGL shaders])
LIBS="$saved_LIBS $GL_LIBS"
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
- [[ char glCreateProgram(); glCreateProgram(); ]])],
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <epoxy/gl.h>]],
+ [[glCreateShader(GL_VERTEX_SHADER);]])],
[have_shaders=yes],[have_shaders=no])
AC_MSG_RESULT($have_shaders)
LIBS="$saved_LIBS"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]