aboutsummaryrefslogtreecommitdiff
path: root/polly/autoconf
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2012-08-21 12:29:10 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2012-08-21 12:29:10 +0000
commit1df5289782019e0405ddfcf7f9ec28319587c428 (patch)
treed5643c3cf2a7b9e97947f0aede060bfb7235383d /polly/autoconf
parent354686be7657d153808b63813ca54b47bd5e0ca0 (diff)
downloadllvm-1df5289782019e0405ddfcf7f9ec28319587c428.zip
llvm-1df5289782019e0405ddfcf7f9ec28319587c428.tar.gz
llvm-1df5289782019e0405ddfcf7f9ec28319587c428.tar.bz2
autoconf: Only define GPGPU_CODEGEN, if that feature is requested
Before we defined GPGPU_CODEGEN to '0', which does not disable the relevant code as we just check if that value is defined at all. We now follow the cmake approach and only define GPGPU_CODEGEN, if the feature should be enabled. Reported by: Sebastian Pop <spop@codeaurora.org> llvm-svn: 162275
Diffstat (limited to 'polly/autoconf')
-rw-r--r--polly/autoconf/aclocal.m45
-rw-r--r--polly/autoconf/configure.ac4
2 files changed, 5 insertions, 4 deletions
diff --git a/polly/autoconf/aclocal.m4 b/polly/autoconf/aclocal.m4
index 0db70c1..3f702b0 100644
--- a/polly/autoconf/aclocal.m4
+++ b/polly/autoconf/aclocal.m4
@@ -1,7 +1,8 @@
-# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
+# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
+# Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
diff --git a/polly/autoconf/configure.ac b/polly/autoconf/configure.ac
index 63df358..2199157 100644
--- a/polly/autoconf/configure.ac
+++ b/polly/autoconf/configure.ac
@@ -127,8 +127,8 @@ AC_ARG_ENABLE(polly_gpu_codegen,
enableval=default)
case "$enableval" in
yes) AC_DEFINE([GPU_CODEGEN],[1], [Define if gpu codegen is enabled]) ;;
- no) AC_DEFINE([GPU_CODEGEN],[0], [Define if gpu codegen is enabled]) ;;
- default) AC_DEFINE([GPU_CODEGEN],[0], [Define if gpu codegen is enabled]) ;;
+ no) ;;
+ default) ;;
*) AC_MSG_ERROR([Invalid setting for --enable-polly-gpu-codegen. Use "yes" or "no"]) ;;
esac