comparison scripts/pkg/private/configure_make.m @ 17516:21656a949661

Add hook function to handle missing Octave components * __gripe_missing_component__.m: New internal function to handle errors due to missing Octave components. * scripts/help/module.mk (help_FCN_FILES): Add __gripe_missing_component__.m. * variables.cc (Vmissing_component_hook): New internal variable. * doc.m, mkoctfile.m, configure_make.m: Call __gripe_missing_component__ if required files are not found. * NEWS: Mention missing_component_hook.
author Mike Miller <mtmiller@ieee.org>
date Sun, 29 Sep 2013 16:06:41 -0400
parents a3f6790df115
children 6b8df90c8806
comparison
equal deleted inserted replaced
17515:c8c0dff02538 17516:21656a949661
34 cenv = {"MKOCTFILE"; mkoctfile_program; 34 cenv = {"MKOCTFILE"; mkoctfile_program;
35 "OCTAVE_CONFIG"; octave_config_program; 35 "OCTAVE_CONFIG"; octave_config_program;
36 "OCTAVE"; octave_binary; 36 "OCTAVE"; octave_binary;
37 "INSTALLDIR"; desc.dir}; 37 "INSTALLDIR"; desc.dir};
38 scenv = sprintf ("%s=\"%s\" ", cenv{:}); 38 scenv = sprintf ("%s=\"%s\" ", cenv{:});
39
40 if (! exist (mkoctfile_program, "file"))
41 __gripe_missing_component__ ("pkg", "mkoctfile");
42 endif
43 if (! exist (octave_config_program, "file"))
44 __gripe_missing_component__ ("pkg", "octave-config");
45 endif
46 if (! exist (octave_binary, "file"))
47 __gripe_missing_component__ ("pkg", "octave");
48 endif
39 49
40 ## Configure. 50 ## Configure.
41 if (exist (fullfile (src, "configure"), "file")) 51 if (exist (fullfile (src, "configure"), "file"))
42 flags = ""; 52 flags = "";
43 if (isempty (getenv ("CC"))) 53 if (isempty (getenv ("CC")))