diff --git a/scripts/pkg/private/configure_make.m b/scripts/pkg/private/configure_make.m --- a/scripts/pkg/private/configure_make.m +++ b/scripts/pkg/private/configure_make.m @@ -28,8 +28,14 @@ src = fullfile (packdir, "src"); octave_bindir = octave_config_info ("bindir"); ver = version (); - mkoctfile_program = fullfile (octave_bindir, sprintf ("mkoctfile-%s", ver)); - octave_config_program = fullfile (octave_bindir, sprintf ("octave-config-%s", ver)); + exeext = octave_config_info ("EXEEXT"); + if (isempty (exeext)) + ext = ""; + else + ext = sprintf (".%s", exeext); + endif + mkoctfile_program = fullfile (octave_bindir, sprintf ("mkoctfile-%s%s", ver, ext)); + octave_config_program = fullfile (octave_bindir, sprintf ("octave-config-%s$s", ver, ext)); octave_binary = fullfile (octave_bindir, sprintf ("octave-%s", ver)); cenv = {"MKOCTFILE"; mkoctfile_program; "OCTAVE_CONFIG"; octave_config_program;