diff options
author | Matthew Waters <ystreet00@gmail.com> | 2014-03-17 15:05:24 +0100 |
---|---|---|
committer | Matthew Waters <ystreet00@gmail.com> | 2014-03-17 15:05:24 +0100 |
commit | ceb02341df3cb14bc760dae062230acaa5909446 (patch) | |
tree | dfe79a7aa1cbde1f77f57b19957b8fe036402397 | |
parent | acf16162512e5443afbce14ca5d6a1b0881556f9 (diff) |
gl: add the option of disabling cocoa on OS X using --disable-cocoa
-rw-r--r-- | configure.ac | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 3d3c5876e..422d7fb75 100644 --- a/configure.ac +++ b/configure.ac @@ -971,11 +971,13 @@ case $host in AC_MSG_ERROR([OpenGL|ES 2.0 is not supported on your platform yet]) fi - GL_LIBS="$LIBS -framework OpenGL -framework Cocoa" - GL_CFLAGS="$GL_CFLAGS" - USE_COCOA=yes - HAVE_WINDOW_COCOA=yes - USE_OPENGL=yes + if test "x$NEED_COCOA" != "xno"; then + GL_LIBS="$LIBS -framework OpenGL -framework Cocoa" + GL_CFLAGS="$GL_CFLAGS" + USE_COCOA=yes + HAVE_WINDOW_COCOA=yes + USE_OPENGL=yes + fi if test "x$USE_GLX" = "xyes"; then if test "x$HAVE_X" = "xyes"; then @@ -993,6 +995,7 @@ case $host in if test "x$HAVE_GLU" = "xyes"; then GL_LIBS="$GL_LIBS -lGLU" fi + USE_OPENGL=yes fi fi ;; |