Mesa (master): configure.ac: Move HAVE_LLVM definition into configure.ac
Tom Stellard
tstellar at kemper.freedesktop.org
Mon Apr 23 14:33:36 UTC 2012
Module: Mesa
Branch: master
Commit: adb8eca1d85624d9cf2519ad47f2c886556855fb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=adb8eca1d85624d9cf2519ad47f2c886556855fb
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Tue Apr 17 09:24:29 2012 -0400
configure.ac: Move HAVE_LLVM definition into configure.ac
Otherwise HAVE_LLVM won't be included in the $(DEFINES) variable for
Automake generated Makefiles.
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
---
configs/autoconf.in | 4 ----
configure.ac | 2 +-
2 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/configs/autoconf.in b/configs/autoconf.in
index ec3f319..eb6713d 100644
--- a/configs/autoconf.in
+++ b/configs/autoconf.in
@@ -217,9 +217,5 @@ WAYLAND_LIBS = @WAYLAND_LIBS@
MESA_LLVM = @MESA_LLVM@
LLVM_VERSION = @LLVM_VERSION@
-ifneq ($(LLVM_VERSION),)
- HAVE_LLVM := 0x0$(subst .,0,$(LLVM_VERSION:svn=))
- DEFINES += -DHAVE_LLVM=$(HAVE_LLVM)
-endif
HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@
diff --git a/configure.ac b/configure.ac
index 1b571b9..5400958 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1805,7 +1805,7 @@ if test "x$enable_gallium_llvm" = xyes; then
LLVM_BINDIR=`$LLVM_CONFIG --bindir`
LLVM_CXXFLAGS=`$LLVM_CONFIG --cxxflags`
LLVM_INCLUDEDIR=`$LLVM_CONFIG --includedir`
- DEFINES="$DEFINES -D__STDC_CONSTANT_MACROS"
+ DEFINES="${DEFINES} -DHAVE_LLVM=`echo $LLVM_VERSION | sed -e 's/\([[0-9]]\)\.\([[0-9]]\)/0x0\10\2/g'`"
MESA_LLVM=1
else
MESA_LLVM=0
More information about the mesa-commit
mailing list