Mercurial > hg > sv-dependency-builds
annotate src/libsndfile-1.0.27/M4/really_gcc.m4 @ 148:b4bfdf10c4b3
Update Win64 capnp builds to v0.6
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Mon, 22 May 2017 18:56:49 +0100 |
parents | cd6cdf86811e |
children |
rev | line source |
---|---|
cannam@125 | 1 dnl @synopsis MN_GCC_REALLY_IS_GCC |
cannam@125 | 2 dnl |
cannam@125 | 3 dnl Find out if a compiler claiming to be gcc really is gcc (fuck you clang). |
cannam@125 | 4 dnl @version 1.0 Oct 31 2013 |
cannam@125 | 5 dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com> |
cannam@125 | 6 dnl |
cannam@125 | 7 dnl Permission to use, copy, modify, distribute, and sell this file for any |
cannam@125 | 8 dnl purpose is hereby granted without fee, provided that the above copyright |
cannam@125 | 9 dnl and this permission notice appear in all copies. No representations are |
cannam@125 | 10 dnl made about the suitability of this software for any purpose. It is |
cannam@125 | 11 dnl provided "as is" without express or implied warranty. |
cannam@125 | 12 dnl |
cannam@125 | 13 |
cannam@125 | 14 # If the configure script has already detected GNU GCC, then make sure it |
cannam@125 | 15 # isn't CLANG masquerading as GCC. |
cannam@125 | 16 |
cannam@125 | 17 AC_DEFUN([MN_GCC_REALLY_IS_GCC], |
cannam@125 | 18 [ AC_LANG_ASSERT(C) |
cannam@125 | 19 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then |
cannam@125 | 20 AC_TRY_LINK([ |
cannam@125 | 21 #include <stdio.h> |
cannam@125 | 22 ], |
cannam@125 | 23 [ |
cannam@125 | 24 #ifdef __clang__ |
cannam@125 | 25 This is clang! |
cannam@125 | 26 #endif |
cannam@125 | 27 ], |
cannam@125 | 28 ac_cv_c_compiler_gnu=yes, |
cannam@125 | 29 ac_cv_c_compiler_gnu=no |
cannam@125 | 30 ) |
cannam@125 | 31 fi |
cannam@125 | 32 |
cannam@125 | 33 ]) |