# HG changeset patch # User Mike Miller # Date 1421621621 18000 # Node ID 722ff3e45bea16b2cfbe15398709543a0fb81ed7 # Parent 7bb80c927af5543d036bab512a18dd26e12bc3c6 build: Don't build GUI when OpenGL is disabled or not found (bug #44017) * configure.ac: Disable building the GUI when OpenGL libraries are not found or are intentionally disabled. diff -r 7bb80c927af5 -r 722ff3e45bea configure.ac --- a/configure.ac Sun Jan 18 22:54:14 2015 +0100 +++ b/configure.ac Sun Jan 18 17:53:41 2015 -0500 @@ -2720,6 +2720,16 @@ [AS_HELP_STRING([--disable-gui], [don't build the GUI])], [if test "$enableval" = no; then build_gui=no; fi], []) +if test -z "$OPENGL_LIBS"; then + build_gui=no + if test $check_opengl = yes; then + warn_gui="OpenGL libs (GL and GLU) not found -- disabling GUI" + else + warn_gui="--without-opengl was specified -- disabling GUI" + fi + OCTAVE_CONFIGURE_WARNING([warn_gui]) +fi + if test $build_gui = yes; then warn_gui=""