~ubuntu-branches/ubuntu/trusty/aegisub/trusty

« back to all changes in this revision

Viewing changes to m4macros/ax_lang_compiler_ms.m4

  • Committer: Package Import Robot
  • Author(s): Sebastian Reichel
  • Date: 2012-03-16 22:58:00 UTC
  • Revision ID: package-import@ubuntu.com-20120316225800-yfb8h9e5n04rk46a
Tags: upstream-2.1.9
ImportĀ upstreamĀ versionĀ 2.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##### http://autoconf-archive.cryp.to/ax_lang_compiler_ms.html
 
2
#
 
3
# SYNOPSIS
 
4
#
 
5
#   AX_LANG_COMPILER_MS
 
6
#
 
7
# DESCRIPTION
 
8
#
 
9
#   Check whether the compiler for the current language is Microsoft.
 
10
#
 
11
#   This macro is modeled after _AC_LANG_COMPILER_GNU in the GNU
 
12
#   Autoconf implementation.
 
13
#
 
14
# LAST MODIFICATION
 
15
#
 
16
#   2004-11-15
 
17
#
 
18
# COPYLEFT
 
19
#
 
20
#   Copyright (c) 2004 Braden McDaniel <braden@endoframe.com>
 
21
#
 
22
#   Copying and distribution of this file, with or without
 
23
#   modification, are permitted in any medium without royalty provided
 
24
#   the copyright notice and this notice are preserved.
 
25
 
 
26
AC_DEFUN([AX_LANG_COMPILER_MS],
 
27
[AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler],
 
28
                [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms],
 
29
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER
 
30
       choke me
 
31
#endif
 
32
]])],
 
33
                   [ax_compiler_ms=yes],
 
34
                   [ax_compiler_ms=no])
 
35
ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms
 
36
])])