function [b, errstr, errid, msgObj] = isdsttbxinstalled
%ISDSTTBXINSTALLED   Returns true if DST is installed

%   Copyright 2014-2019 The MathWorks, Inc.

% Used by measurement System objects in toolbox\shared\measure

persistent isinstalled

% Cache the results of ISTBXINSTALLED for performance
if isempty(isinstalled)
    isinstalled = istbxinstalled('dsp','dsp/dsp');
end

b = isinstalled && istbxlicensed('Signal_Blocks');
if b
    errstr = '';
    errid  = '';
    msgObj = message.empty;
else
    msgObj = message('signal:sigtools:noDSP');
    errstr = getString(msgObj);
    errid  = 'noDSP';
end
% [EOF]