changeset 25048:d298a0734d85 stable

avoid syntax error in configure script * configure.ac: Quote uses of $octave_cv_qt_opengl_os_ok in test commands.
author John W. Eaton <jwe@octave.org>
date Thu, 29 Mar 2018 11:29:05 -0400
parents 1fe6002f68a7
children b9f0f1aaae3b e376a35f168f
files configure.ac
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Thu Mar 29 11:15:04 2018 -0400
+++ b/configure.ac	Thu Mar 29 11:29:05 2018 -0400
@@ -2188,7 +2188,9 @@
 
 dnl If no argument given, only use OSMesa when Qt is too old
 if test $use_osmesa = auto; then
-  if test $octave_cv_qt_opengl_os_ok = yes; then
+  ## Quote $octave_cv_qt_opengl_os_ok because it will only be set if
+  ## Qt is found.
+  if test "$octave_cv_qt_opengl_os_ok" = yes; then
     use_osmesa=no
   else
     use_osmesa=yes
@@ -2197,7 +2199,9 @@
 
 if test $use_osmesa = yes; then
   dnl Pre-declare warning message, and unset if library is found
-  if test $octave_cv_qt_opengl_os_ok = no; then
+  ## Quote $octave_cv_qt_opengl_os_ok because it will only be set if
+  ## Qt is found.
+  if test "$octave_cv_qt_opengl_os_ok" = no; then
     warn_osmesa="OSMesa library not found and Qt < 5.1.  Offscreen rendering with OpenGL will be disabled."
   else
     warn_osmesa="OSMesa library not found.  Offscreen rendering with FLTK will be disabled."