summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2010-10-30 00:54:26 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-10-30 00:54:26 +0000
commitbaaadb2672e70916eb7e35b48b5ca34bec772fb8 (patch)
tree86cdaba77d5dcbba224ae9c59a2ad5f569f65a4d /autoconf
parent6b5252db2db5eeeadec4602329ac56beb6dea54a (diff)
downloadllvm-baaadb2672e70916eb7e35b48b5ca34bec772fb8.tar.gz
llvm-baaadb2672e70916eb7e35b48b5ca34bec772fb8.tar.bz2
llvm-baaadb2672e70916eb7e35b48b5ca34bec772fb8.tar.xz
Add polly support to the build system.
Update the cmake and autoconf build system to compile polly as a shared library if it is checked out into tools/polly. In case polly is not checked out, nothing changes. This models the way clang can be added to llvm if checked out to tools/clang. Also rebuild configure. Patch contributed by ether. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index ec360527db..5fa85d0ab5 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -121,6 +121,26 @@ do
fi
done
+dnl Disable the build of polly, even if it is checked out into tools/polly.
+AC_ARG_ENABLE(polly,
+ AS_HELP_STRING([--enable-polly],
+ [Use polly if available (default is YES)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_POLLY,[1]) ;;
+ no) AC_SUBST(ENABLE_POLLY,[0]) ;;
+ default) AC_SUBST(ENABLE_POLLY,[1]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-polly. Use "yes" or "no"]) ;;
+esac
+
+
+dnl Check if polly is checked out into tools/polly and configure it if
+dnl available.
+if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
+ AC_SUBST(LLVM_HAS_POLLY,1)
+ AC_CONFIG_SUBDIRS([tools/polly])
+fi
+
dnl===-----------------------------------------------------------------------===
dnl===
dnl=== SECTION 2: Architecture, target, and host checks