diff options
author | Sebastian Pop <spop@codeaurora.org> | 2012-11-15 21:20:22 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2012-11-15 21:20:22 +0000 |
commit | 654b7754bc1ea6a2c69fc54dce2c4e9d1f1b9fb8 (patch) | |
tree | ab2d02117184aedd99d319cd7b74528017c4f1c9 /polly/autoconf | |
parent | 3bc1beb696af1779059ef3173be346fd959dca0b (diff) | |
download | llvm-654b7754bc1ea6a2c69fc54dce2c4e9d1f1b9fb8.zip llvm-654b7754bc1ea6a2c69fc54dce2c4e9d1f1b9fb8.tar.gz llvm-654b7754bc1ea6a2c69fc54dce2c4e9d1f1b9fb8.tar.bz2 |
autoconf: isl depends on gmp include files
When libgmp header files are not installed in the default /usr/include location,
configure used to fail to find the gmp headers when testing for isl/ast.h. This
patch adds the gmp include path to the compiler flags before testing for ISL.
llvm-svn: 168090
Diffstat (limited to 'polly/autoconf')
-rw-r--r-- | polly/autoconf/aclocal.m4 | 5 | ||||
-rw-r--r-- | polly/autoconf/configure.ac | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/polly/autoconf/aclocal.m4 b/polly/autoconf/aclocal.m4 index 3f702b0..0db70c1 100644 --- a/polly/autoconf/aclocal.m4 +++ b/polly/autoconf/aclocal.m4 @@ -1,8 +1,7 @@ -# generated automatically by aclocal 1.11.3 -*- Autoconf -*- +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, -# Inc. +# 2005, 2006, 2007, 2008, 2009 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 cbc1f49..68434e5 100644 --- a/polly/autoconf/configure.ac +++ b/polly/autoconf/configure.ac @@ -78,7 +78,10 @@ dnl Find Gmp find_lib_and_headers([gmp], [gmp.h], [gmp], [required]) dnl Find Isl +saved_CXXFLAGS=$CXXFLAGS +CXXFLAGS="$CXXFLAGS $gmp_inc" find_lib_and_headers([isl], [isl/ast.h], [isl], [required]) +CXXFLAGS=$saved_CXXFLAGS dnl Check that we have cloog. saved_CXXFLAGS=$CXXFLAGS |