29 files changed, 1185 insertions, 0 deletions
diff --git a/ax/ax_lang_compiler_ms.m4 b/ax/ax_lang_compiler_ms.m4 new file mode 100644 index 0000000..2b3d5a8 --- a/dev/null +++ b/ax/ax_lang_compiler_ms.m4 | |||
@@ -0,0 +1,23 @@ | |||
1 | dnl @synopsis AX_LANG_COMPILER_MS | ||
2 | dnl | ||
3 | dnl Check whether the compiler for the current language is Microsoft. | ||
4 | dnl | ||
5 | dnl This macro is modeled after _AC_LANG_COMPILER_GNU in the GNU | ||
6 | dnl Autoconf implementation. | ||
7 | dnl | ||
8 | dnl @category InstalledPackages | ||
9 | dnl @author Braden McDaniel <braden@endoframe.com> | ||
10 | dnl @version 2004-11-15 | ||
11 | dnl @license AllPermissive | ||
12 | |||
13 | AC_DEFUN([AX_LANG_COMPILER_MS], | ||
14 | [AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler], | ||
15 | [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms], | ||
16 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER | ||
17 | choke me | ||
18 | #endif | ||
19 | ]])], | ||
20 | [ax_compiler_ms=yes], | ||
21 | [ax_compiler_ms=no]) | ||
22 | ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms | ||
23 | ])]) | ||