This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix Cloog configure check


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.

Bootstrapped until after stage1.

Ok for trunk?

Btw, sebastian, I need the following for building Cloog because
else these symbols are duplicates from the ppl:

--- source/version.c.orig	2008-09-03 15:16:49.000000000 +0200
+++ source/version.c	2008-09-03 15:18:36.000000000 +0200
@@ -25,6 +25,8 @@
 
 #include "../include/cloog/version.h"
 
+#ifndef CLOOG_PPL_BACKEND
+
 int ppl_version_major (void)
 {
   return CLOOG_VERSION_MAJOR;
@@ -45,6 +47,8 @@
   return CLOOG_VERSION_BETA;
 }
 
+#endif
+
 const char *cloog_version(void)
 {
   return "CLooG "CLOOG_VERSION" "CLOOG_BITS" bits";

Thanks,
Richard.

2008-09-03  Richard Guenther  <rguenther@suse.de>

	* configure.ac: Always pass -DCLOOG_PPL_BACKEND to the
	cloog test.
	* configure: Re-generate.

Index: configure.ac
===================================================================
*** configure.ac	(revision 139930)
--- configure.ac	(working copy)
*************** choke me
*** 1386,1392 ****
  CFLAGS="$saved_CFLAGS"
  
  saved_CFLAGS="$CFLAGS"
! CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
  
  AC_MSG_CHECKING([for correct version of CLooG])
  AC_TRY_COMPILE([#include "cloog/cloog.h"],[
--- 1386,1392 ----
  CFLAGS="$saved_CFLAGS"
  
  saved_CFLAGS="$CFLAGS"
! CFLAGS="$CFLAGS $clooginc -DCLOOG_PPL_BACKEND $gmpinc $pplinc"
  
  AC_MSG_CHECKING([for correct version of CLooG])
  AC_TRY_COMPILE([#include "cloog/cloog.h"],[
Index: configure
===================================================================
*** configure	(revision 139930)
--- configure	(working copy)
*************** rm -f conftest.err conftest.$ac_objext c
*** 4950,4956 ****
  CFLAGS="$saved_CFLAGS"
  
  saved_CFLAGS="$CFLAGS"
! CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
  
  echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
  echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
--- 4950,4956 ----
  CFLAGS="$saved_CFLAGS"
  
  saved_CFLAGS="$CFLAGS"
! CFLAGS="$CFLAGS $clooginc -DCLOOG_PPL_BACKEND $gmpinc $pplinc"
  
  echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
  echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]