Mercurial > octave
comparison libinterp/build-env-features.sh @ 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 | d78e45987d6a |
children | 1bca6c72d2b1 |
comparison
equal
deleted
inserted
replaced
21225:19a619ac9508 | 21226:a55b8ece1ecd |
---|---|
33 if (! initialized) | 33 if (! initialized) |
34 { | 34 { |
35 EOF | 35 EOF |
36 | 36 |
37 $AWK \ | 37 $AWK \ |
38 '/#define (HAVE|ENABLE)_/ { | 38 '/#define HAVE_/ { |
39 sub (/HAVE_/, "", $2); | 39 sub (/HAVE_/, "", $2); |
40 printf (" m.assign (\"%s\", octave_value (true));\n", $2); | 40 printf (" m.assign (\"%s\", octave_value (true));\n", $2); |
41 } | 41 } |
42 /\/\* #undef (HAVE|ENABLE)_/ { | 42 /\/\* #undef HAVE_/ { |
43 sub (/HAVE_/, "", $3); | 43 sub (/HAVE_/, "", $3); |
44 printf (" m.assign (\"%s\", octave_value (false));\n", $3); | 44 printf (" m.assign (\"%s\", octave_value (false));\n", $3); |
45 } { | 45 } { |
46 }' $conffile | sort | 46 }' $conffile | sort |
47 | 47 |