d94a43d5c3
Starting with autoconf 2.70, obsolescence warnings are output by default. To keep the script as compatible as possible, I build autoconf 2.60 and ran the autoupdate that came with it on configure.ac and all m4 files.
29 lines
924 B
Plaintext
29 lines
924 B
Plaintext
dnl @synopsis XIPH_C_COMPILER_IS_CLANG
|
|
dnl
|
|
dnl Find out if a compiler claiming to be gcc really is gcc (clang lies).
|
|
dnl @version 1.0 Oct 31 2013
|
|
dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
|
dnl
|
|
dnl Permission to use, copy, modify, distribute, and sell this file for any
|
|
dnl purpose is hereby granted without fee, provided that the above copyright
|
|
dnl and this permission notice appear in all copies. No representations are
|
|
dnl made about the suitability of this software for any purpose. It is
|
|
dnl provided "as is" without express or implied warranty.
|
|
dnl
|
|
|
|
|
|
AC_DEFUN([XIPH_C_COMPILER_IS_CLANG],
|
|
[AC_CACHE_CHECK(whether we are using the CLANG C compiler,
|
|
xiph_cv_c_compiler_clang,
|
|
[ AC_LANG_ASSERT(C)
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
|
#include <stdio.h>
|
|
]], [[
|
|
#ifndef __clang__
|
|
This is not clang!
|
|
#endif
|
|
]])],[xiph_cv_c_compiler_clang=yes],[xiph_cv_c_compiler_clang=no
|
|
])]
|
|
)]
|
|
)
|