Mercurial > octave
comparison doc/interpreter/splineimages.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 | e5f78891ad9e |
children | ecce63c99c3f |
comparison
equal
deleted
inserted
replaced
21225:19a619ac9508 | 21226:a55b8ece1ecd |
---|---|
164 ## choose gnuplot on older systems. Only a complete lack of plotting is a | 164 ## choose gnuplot on older systems. Only a complete lack of plotting is a |
165 ## problem. | 165 ## problem. |
166 function set_graphics_toolkit () | 166 function set_graphics_toolkit () |
167 if (isempty (available_graphics_toolkits ())) | 167 if (isempty (available_graphics_toolkits ())) |
168 error ("no graphics toolkit available for plotting"); | 168 error ("no graphics toolkit available for plotting"); |
169 elseif (! strcmp ("gnuplot", graphics_toolkit ()) ... | 169 elseif (! strcmp ("gnuplot", graphics_toolkit ()) |
170 && ! octave_config_info ().features.OSMESA) | 170 && ! __have_feature__ ("OSMESA")) |
171 if (! any (strcmp ("gnuplot", available_graphics_toolkits ()))) | 171 if (! any (strcmp ("gnuplot", available_graphics_toolkits ()))) |
172 error ("no graphics toolkit available for offscreen plotting"); | 172 error ("no graphics toolkit available for offscreen plotting"); |
173 else | 173 else |
174 graphics_toolkit ("gnuplot"); | 174 graphics_toolkit ("gnuplot"); |
175 endif | 175 endif |