summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-11-03 17:26:30 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-11-03 17:26:30 +0000
commit979ab5dd393e885f87142a63f20434eab785d099 (patch)
treefbb7e52adab30112018c459898dcf7f73eab5a52 /configure.ac
parent7c14b7f532d4486255bc03d9841c9ef8f01be656 (diff)
build: Require C++11 support to compile Tartan
And use an AC_DEFINE to expose whether LLVM ≥ 3.5 is available, since it broke plugin API compared to 3.4.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4518546..f155083 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,6 +24,7 @@ AM_SILENT_RULES([yes])
AC_PROG_CXX
AM_PROG_CC_C_O
+AX_CXX_COMPILE_STDCXX_11()
LT_INIT([])
PKG_PROG_PKG_CONFIG
@@ -85,6 +86,11 @@ AC_SUBST([LLVM_VERSION])
AC_DEFINE_UNQUOTED([LLVM_CONFIG_VERSION],"$llvm_version",
[Configured LLVM version])
+# LLVM-specific version definitions
+AS_IF([test "$major" -eq 3 -a "$minor" -ge 5 -o "$major" -gt 3],[
+ AC_DEFINE([HAVE_LLVM_3_5], [1], [Whether LLVM ≥ 3.5 is available])
+])
+
# Clang dependency (e.g. the clang-devel package on Fedora)
AC_LANG_PUSH([C++])
old_cppflags="$CPPFLAGS"