annotate src/libsndfile-1.0.27/M4/really_gcc.m4 @ 52:44a948c37b77
Remove compiler/platform combos we don't support
author |
Chris Cannam |
date |
Wed, 26 Oct 2016 13:25:08 +0100 |
parents |
1df64224f5ac |
children |
|
rev |
line source |
Chris@40
|
1 dnl @synopsis MN_GCC_REALLY_IS_GCC
|
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 # If the configure script has already detected GNU GCC, then make sure it
|
Chris@40
|
15 # isn't CLANG masquerading as GCC.
|
Chris@40
|
16
|
Chris@40
|
17 AC_DEFUN([MN_GCC_REALLY_IS_GCC],
|
Chris@40
|
18 [ AC_LANG_ASSERT(C)
|
Chris@40
|
19 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
|
Chris@40
|
20 AC_TRY_LINK([
|
Chris@40
|
21 #include <stdio.h>
|
Chris@40
|
22 ],
|
Chris@40
|
23 [
|
Chris@40
|
24 #ifdef __clang__
|
Chris@40
|
25 This is clang!
|
Chris@40
|
26 #endif
|
Chris@40
|
27 ],
|
Chris@40
|
28 ac_cv_c_compiler_gnu=yes,
|
Chris@40
|
29 ac_cv_c_compiler_gnu=no
|
Chris@40
|
30 )
|
Chris@40
|
31 fi
|
Chris@40
|
32
|
Chris@40
|
33 ])
|