diff options
| author | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-10-30 00:54:26 +0000 |
|---|---|---|
| committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-10-30 00:54:26 +0000 |
| commit | ea9dca4c6cbb3299810fa41fb971b96dc63597c9 (patch) | |
| tree | 4a601f49e526de4176621ad6ef8fa04ce241c070 /llvm/autoconf | |
| parent | c00d5b970629c5e43afc1d14d65c7b219aa79174 (diff) | |
| download | bcm5719-llvm-ea9dca4c6cbb3299810fa41fb971b96dc63597c9.tar.gz bcm5719-llvm-ea9dca4c6cbb3299810fa41fb971b96dc63597c9.zip | |
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.
llvm-svn: 117755
Diffstat (limited to 'llvm/autoconf')
| -rw-r--r-- | llvm/autoconf/configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac index ec360527db3..5fa85d0ab5d 100644 --- a/llvm/autoconf/configure.ac +++ b/llvm/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 |

