# HG changeset patch # User John W. Eaton # Date 1289273286 18000 # Node ID a44ba1cdfbb557c850ab54278e6d4dcbff559a28 # Parent 51e6ac3e5afcebde4866d5d664d7760a84ffab2c handle --without-opengl configure option diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-11-08 John W. Eaton + + * configure.ac (--without-opengl): New configure option. + 2010-11-03 John W. Eaton * bootstrap.conf (gnulib_modules): Include copysign in the list. diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -826,7 +826,21 @@ warn_freetype="" -OCTAVE_OPENGL +check_opengl=false +AC_ARG_WITH([opengl], + [AS_HELP_STRING([--with-opengl=yes], [use opengl library for graphics])], + [if test "x$withval" = xno; then + warn_opengl="--without-opengl specified. Native graphics will be disabled." + AC_MSG_WARN([$warn_opengl]) + else + check_opengl=true + fi], + [check_opengl=true]) + +if $check_opengl; then + OCTAVE_OPENGL +fi + GRAPHICS_LIBS= GRAPHICS_CFLAGS= @@ -2377,6 +2391,12 @@ fi native_graphics=true +if test -n "warn_opengl"; then + AC_MSG_WARN([$warn_opengl]) + native_graphics=false + warn_msg_printed=true +fi + if test -n "$warn_freetype"; then AC_MSG_WARN([$warn_freetype]) native_graphics=false