summaryrefslogtreecommitdiffstats
path: root/llvm/configure
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2012-02-13 18:48:10 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2012-02-13 18:48:10 +0000
commitc6c7a5819de234460d90114467df2446e5f1c0a3 (patch)
tree6a6abd5f4a2c538ed4c27e5a9d26f389ae4618a7 /llvm/configure
parent6f8fe71216be0af3faa9afc0fcbb81aa76a80b11 (diff)
downloadbcm5719-llvm-c6c7a5819de234460d90114467df2446e5f1c0a3.tar.gz
bcm5719-llvm-c6c7a5819de234460d90114467df2446e5f1c0a3.zip
add LLVM_VERSION_MAJOR and _MINOR defines
This is useful for clients that want to maintain compatibility across multiple releases of LLVM. Currently users like Klee and Mesa all have to roll their own 'parse llvm-config --version output and generate defines' solution. Also reuse the new macros so that version information is less redundant/likely to fall out of sync again in the future. llvm-svn: 150405
Diffstat (limited to 'llvm/configure')
-rwxr-xr-xllvm/configure12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/configure b/llvm/configure
index 7acea4e63a1..060d1e63291 100755
--- a/llvm/configure
+++ b/llvm/configure
@@ -1898,6 +1898,16 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+cat >>confdefs.h <<\_ACEOF
+#define LLVM_VERSION_MAJOR 3
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define LLVM_VERSION_MINOR 1
+_ACEOF
+
+
LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
@@ -10453,7 +10463,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10456 "configure"
+#line 10466 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
OpenPOWER on IntegriCloud