% Copyright (C) 1993, Digital Equipment Corporation
% All rights reserved.
% See the file COPYRIGHT for a full description.
%
% Last modified on Tue Jan 24 08:32:45 PST 1995 by kalsow 
%      modified on Fri Apr 30 11:31:44 PDT 1993 by mjordan

readonly HAS_STACK_WALKER = {
% "ALPHA_OSF"  : TRUE,
% "DS3100"     : TRUE,
% "SOLgnu"     : TRUE,
% "SOLsun"     : TRUE,
}

include_dir ("common")
include_dir (OS_TYPE)

proc FileExists(a) is
    return not stale (a, a)
end

if equal(TARGET, "NT386") and equal(OS_TYPE, "POSIX")
  % nothing -- no user thread support
else
    if FileExists(path() & "/" & TARGET & "/m3makefile")
        include_dir (TARGET)
    else
        % nothing -- no user thread support
    end
end

if defined("M3_USE_STACK_WALKER")
  if M3_USE_STACK_WALKER and HAS_STACK_WALKER contains TARGET
    if HAS_STACK_WALKER{TARGET}
      include_dir("ex_stack")
    else
      include_dir("ex_frame")
    end
  else
    include_dir("ex_frame")
  end
else
  include_dir("ex_frame")
end
