1 # -*- mode: autoconf -*-
3 # Check whether the compiler for the current language is Microsoft.
5 # This macro is modeled after _AC_LANG_COMPILER_GNU in the GNU Autoconf
9 # author: Braden McDaniel <braden@endoframe.com>
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2, or (at your option)
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26 # As a special exception, the you may copy, distribute and modify the
27 # configure scripts that are the output of Autoconf when processing
28 # the Macro. You need not follow the terms of the GNU General Public
29 # License when using or distributing such scripts.
31 AC_DEFUN([AX_LANG_COMPILER_MS],
32 [AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler],
33 [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms],
34 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER
40 ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms