Mercurial > octave
comparison doc/interpreter/plotimages.m @ 21226:a55b8ece1ecd
reorganize octave_config_info again
* build-env-features.sh: Don't include ENABLE_ items in the output.
* toplev.cc (find_config_info): New static function.
(Foctave_config_info): Put Octave configuration info in the main
struct. Put the build system features and build environment info in
substructures. Allow searching of all elements by keyword.
* __have_feature__.m, doc/interpreter/testfun.txi:
Fix name of build features substructure element.
* geometryimages.m, interpimages.m, plotimages.m, sparseimages.m,
splineimages.m: Use __have_feature__ to check for OSMESA.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 08 Feb 2016 23:14:56 -0500 |
parents | 80b69efcd960 |
children | bac0d6f07a3e |
comparison
equal
deleted
inserted
replaced
21225:19a619ac9508 | 21226:a55b8ece1ecd |
---|---|
121 ## problem. | 121 ## problem. |
122 function set_graphics_toolkit () | 122 function set_graphics_toolkit () |
123 if (isempty (available_graphics_toolkits ())) | 123 if (isempty (available_graphics_toolkits ())) |
124 error ("no graphics toolkit available for plotting"); | 124 error ("no graphics toolkit available for plotting"); |
125 elseif (! strcmp ("gnuplot", graphics_toolkit ()) ... | 125 elseif (! strcmp ("gnuplot", graphics_toolkit ()) ... |
126 && ! octave_config_info ().features.OSMESA) | 126 && ! __have_feature__ ("OSMESA")) |
127 if (! any (strcmp ("gnuplot", available_graphics_toolkits ()))) | 127 if (! any (strcmp ("gnuplot", available_graphics_toolkits ()))) |
128 error ("no graphics toolkit available for offscreen plotting"); | 128 error ("no graphics toolkit available for offscreen plotting"); |
129 else | 129 else |
130 graphics_toolkit ("gnuplot"); | 130 graphics_toolkit ("gnuplot"); |
131 endif | 131 endif |