annotate src/libsndfile-1.0.27/M4/clang.m4 @ 83:ae30d91d2ffe
Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author |
Chris Cannam |
date |
Fri, 07 Feb 2020 11:51:13 +0000 |
parents |
1df64224f5ac |
children |
|
rev |
line source |
Chris@40
|
1 dnl @synopsis MN_C_COMPILER_IS_CLANG
|
Chris@40
|
2 dnl
|
Chris@40
|
3 dnl Find out if a compiler claiming to be gcc really is gcc (fuck you clang).
|
Chris@40
|
4 dnl @version 1.0 Oct 31 2013
|
Chris@40
|
5 dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
Chris@40
|
6 dnl
|
Chris@40
|
7 dnl Permission to use, copy, modify, distribute, and sell this file for any
|
Chris@40
|
8 dnl purpose is hereby granted without fee, provided that the above copyright
|
Chris@40
|
9 dnl and this permission notice appear in all copies. No representations are
|
Chris@40
|
10 dnl made about the suitability of this software for any purpose. It is
|
Chris@40
|
11 dnl provided "as is" without express or implied warranty.
|
Chris@40
|
12 dnl
|
Chris@40
|
13
|
Chris@40
|
14
|
Chris@40
|
15 AC_DEFUN([MN_C_COMPILER_IS_CLANG],
|
Chris@40
|
16 [AC_CACHE_CHECK(whether we are using the CLANG C compiler,
|
Chris@40
|
17 mn_cv_c_compiler_clang,
|
Chris@40
|
18 [ AC_LANG_ASSERT(C)
|
Chris@40
|
19 AC_TRY_LINK([
|
Chris@40
|
20 #include <stdio.h>
|
Chris@40
|
21 ],
|
Chris@40
|
22 [
|
Chris@40
|
23 #ifndef __clang__
|
Chris@40
|
24 This is not clang!
|
Chris@40
|
25 #endif
|
Chris@40
|
26 ],
|
Chris@40
|
27 mn_cv_c_compiler_clang=yes,
|
Chris@40
|
28 mn_cv_c_compiler_clang=no
|
Chris@40
|
29 ])
|
Chris@40
|
30 )
|
Chris@40
|
31 ])
|