[llvm-commits] [polly] r162275 - in /polly/trunk: autoconf/aclocal.m4 autoconf/configure.ac configure
Tobias Grosser
grosser at fim.uni-passau.de
Tue Aug 21 05:29:10 PDT 2012
Author: grosser
Date: Tue Aug 21 07:29:10 2012
New Revision: 162275
URL: http://llvm.org/viewvc/llvm-project?rev=162275&view=rev
Log:
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 at codeaurora.org>
Modified:
polly/trunk/autoconf/aclocal.m4
polly/trunk/autoconf/configure.ac
polly/trunk/configure
Modified: polly/trunk/autoconf/aclocal.m4
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/autoconf/aclocal.m4?rev=162275&r1=162274&r2=162275&view=diff
==============================================================================
--- polly/trunk/autoconf/aclocal.m4 (original)
+++ polly/trunk/autoconf/aclocal.m4 Tue Aug 21 07:29:10 2012
@@ -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.
Modified: polly/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/autoconf/configure.ac?rev=162275&r1=162274&r2=162275&view=diff
==============================================================================
--- polly/trunk/autoconf/configure.ac (original)
+++ polly/trunk/autoconf/configure.ac Tue Aug 21 07:29:10 2012
@@ -127,8 +127,8 @@
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
Modified: polly/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/configure?rev=162275&r1=162274&r2=162275&view=diff
==============================================================================
--- polly/trunk/configure (original)
+++ polly/trunk/configure Tue Aug 21 07:29:10 2012
@@ -3021,12 +3021,8 @@
yes)
$as_echo "#define GPU_CODEGEN 1" >>confdefs.h
;;
- no)
-$as_echo "#define GPU_CODEGEN 0" >>confdefs.h
- ;;
- default)
-$as_echo "#define GPU_CODEGEN 0" >>confdefs.h
- ;;
+ no) ;;
+ default) ;;
*) as_fn_error $? "Invalid setting for --enable-polly-gpu-codegen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
esac
More information about the llvm-commits
mailing list