[PATCH] Fix Cloog configure check

Matthias Klose doko@cs.tu-berlin.de
Thu Sep 4 21:16:00 GMT 2008


Sebastian Pop writes:
> On Wed, Sep 3, 2008 at 9:35 AM, Richard Guenther <rguenther@suse.de> wrote:
> >
> > If you do not specify --with-cloog then the cloog test fails even though
> > everything is ok because -DCLOOG_PPL_BACKEND is not passed to the
> > check causing a non-existant polylib header to be included from cloog.h.
> >
> 
> I see: this happens only when cloog is installed in a standard
> location, and then one does not have to specify --with-cloog to build
> GCC with graphite.

I was a bit confused how to configure this. the toplevel configure
checks for ppl and cloog independently regardless of any --with-*
options. however the gcc configure requires the --with-*=/usr
explicitely or else it won't be picked up. is this intended? please
add documentation in gcc/doc/install.texi about this.

for a distribution package of cloog I did change the soname of the
cloog library to libcloog-ppl, so that cloog configured for polylib
can coexist.

> I would prefer the attached patch instead: it modifies the default
> value of clooginc, and not the CFLAGS value.  By default CLooG is
> supposed to be compiled with PPL back-end, but CLooG also can be
> compiled with PolyLib, as in the attached patch.

isn't this the other way around? cloog seems to build for PolyLib
unless configured with --with-ppl.

  Matthias



More information about the Gcc-patches mailing list