Back to the Main Page.

ax_lang_compiler_ms

Download the M4 Source.

Synopsis

AX_LANG_COMPILER_MS

Version

2004-11-15     0.5.65   :   InstalledPackages

Author

Braden McDaniel <braden@endoframe.com>
license: AllPermissive

Description

Check whether the compiler for the current language is Microsoft.

This macro is modeled after _AC_LANG_COMPILER_GNU in the GNU Autoconf implementation.

M4 Source Code

AC_DEFUN([AX_LANG_COMPILER_MS],
[AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler],
                [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER
       choke me
#endif
]])],
                   [ax_compiler_ms=yes],
                   [ax_compiler_ms=no])
ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms
])])