// -*- MPC -*-
// $Id: acedefaults.mpb 90781 2010-06-23 03:24:27Z cleeland $

project: ipv6, vc_warnings, build_files, test_files, svc_conf_files, ace_unicode {
  staticflags += ACE_AS_STATIC_LIBS
  includes    += $(ACE_ROOT)
  libpaths    += $(ACE_ROOT)/lib

  // Support the alternative Borland Make project type
  specific(bmake) {
    unicode_flags += -DACE_USES_WCHAR
    macros += MPC_LIB_MODIFIER=\\"$(LIBMODIFIER)$(ULIBMODIFIER)\\"
    debug_macros += ACE_NO_INLINE=1
  }

  specific(automake) {
    am_release = @ACE_VERSION_NAME@
    includes += $(ACE_BUILDDIR)
    libpaths -= $(ACE_ROOT)/lib
  }

  specific(prop:microsoft) {
    macro_for_lib_modifier=1
  }

  specific(cdt6) {
    win32::platform_libs += ws2_32 mswsock netapi32
    release::macros += ACE_NDEBUG ACE_USE_RCSID=0
  }

}

feature(exceptions) {
  specific(cdt6) {
    macros += ACE_HAS_EXCEPTIONS
  }
}

feature(ace_inline) {
  specific(cdt6) {
    macros += __ACE_INLINE__
  }
}

feature(!ace_inline) {
  specific(cdt6) {
    macros += ACE_NO_INLINE
  }
}

feature(!threads) {
  specific(cdt6) {
    macros += ACE_MT_SAFE=0
    // and without threads we must remove support for AIO.
    macros -= ACE_HAS_AIO_CALLS
    platform_libs -= rt
  }
}
