• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ===========================================================================
2#    http://www.gnu.org/software/autoconf-archive/ax_lang_compiler_ms.html
3# ===========================================================================
4#
5# OBSOLETE MACRO
6#
7#   Deprecated in favor of AX_COMPILER_VENDOR. A call to this macro can be
8#   replaced by:
9#
10#     AX_COMPILER_VENDOR
11#     AS_IF([test $ax_cv_c_compiler_vendor = microsoft],
12#         [ax_compiler_ms=yes],[ax_compiler_ms=no])
13#
14# SYNOPSIS
15#
16#   AX_LANG_COMPILER_MS
17#
18# DESCRIPTION
19#
20#   Check whether the compiler for the current language is Microsoft.
21#
22#   This macro is modeled after _AC_LANG_COMPILER_GNU in the GNU Autoconf
23#   implementation.
24#
25# LICENSE
26#
27#   Copyright (c) 2009 Braden McDaniel <braden@endoframe.com>
28#
29#   Copying and distribution of this file, with or without modification, are
30#   permitted in any medium without royalty provided the copyright notice
31#   and this notice are preserved. This file is offered as-is, without any
32#   warranty.
33
34#serial 11
35
36AC_DEFUN([AX_LANG_COMPILER_MS],
37[AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler],
38                [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms],
39[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER
40       choke me
41#endif
42]])],
43                   [ax_compiler_ms=yes],
44                   [ax_compiler_ms=no])
45ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms
46])])
47