diff options
author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-13 18:48:10 +0000 |
---|---|---|
committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-13 18:48:10 +0000 |
commit | fde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6 (patch) | |
tree | 3c55ba867738db4cce7c1216d82da4c9be6ed9ff /configure | |
parent | 3ed4dee530984b7087dd3bbf4cfd8a3f1947c8e0 (diff) | |
download | external_llvm-fde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6.zip external_llvm-fde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6.tar.gz external_llvm-fde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |