From patchwork Tue Jan 18 19:13:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Pop X-Patchwork-Id: 79343 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 232C5B7063 for ; Wed, 19 Jan 2011 06:13:26 +1100 (EST) Received: (qmail 4362 invoked by alias); 18 Jan 2011 19:13:25 -0000 Received: (qmail 4349 invoked by uid 22791); 18 Jan 2011 19:13:24 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iw0-f175.google.com (HELO mail-iw0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Jan 2011 19:13:19 +0000 Received: by iwn8 with SMTP id 8so6261227iwn.20 for ; Tue, 18 Jan 2011 11:13:18 -0800 (PST) Received: by 10.42.5.201 with SMTP id 9mr6790200icx.300.1295377997995; Tue, 18 Jan 2011 11:13:17 -0800 (PST) Received: from napoca ([163.181.251.115]) by mx.google.com with ESMTPS id d21sm5215683ibg.3.2011.01.18.11.13.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 Jan 2011 11:13:16 -0800 (PST) Received: by napoca (sSMTP sendmail emulation); Tue, 18 Jan 2011 13:13:12 -0600 From: Sebastian Pop To: gcc-patches@gcc.gnu.org Cc: gcc-graphite@googlegroups.com, Sebastian Pop Subject: [PATCH] Fail when PPL 0.11 is not present and CLooG has been requested. Date: Tue, 18 Jan 2011 13:13:10 -0600 Message-Id: <1295377990-18603-1-git-send-email-sebpop@gmail.com> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, With this patch, configure will fail when graphite has been requested, and the PPL version is not usable. Committed to the graphite branch. Sebastian 2011-01-18 Sebastian Pop * configure.ac: Call AC_MSG_ERROR when PPL 0.11 is not present and CLooG has been requested. * configure: Regenerated. --- ChangeLog.graphite | 6 ++++++ configure | 18 +++++++++++++++++- configure.ac | 11 ++++++++--- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/ChangeLog.graphite b/ChangeLog.graphite index 7b319b3..28c5e6b 100644 --- a/ChangeLog.graphite +++ b/ChangeLog.graphite @@ -1,3 +1,9 @@ +2011-01-18 Sebastian Pop + + * configure.ac: Call AC_MSG_ERROR when PPL 0.11 is not present and + CLooG has been requested. + * configure: Regenerated. + 2011-01-17 Sebastian Pop * MAINTAINERS (linear loop transforms): Removed. diff --git a/configure b/configure index ac55cfb..9186336 100755 --- a/configure +++ b/configure @@ -5811,6 +5811,22 @@ fi if test "x$with_ppl" = "xno"; then with_cloog=no + + + + + if test "x${with_cloog}" != x \ + || test "x${with_cloog_include}" != x \ + || test "x${with_cloog_lib}" != x ; then + graphite_requested=yes + else + graphite_requested=no + fi + + + if test "${graphite_requested}" = yes; then + as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5] + fi fi if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then @@ -6083,7 +6099,7 @@ $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; } && test "x${clooglibs}" = x \ && test "x${clooginc}" = x ; then - as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 + as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 fi diff --git a/configure.ac b/configure.ac index 877b3b7..5020fce 100644 --- a/configure.ac +++ b/configure.ac @@ -1658,6 +1658,12 @@ dnl with user input. CLOOG_INIT_FLAGS if test "x$with_ppl" = "xno"; then with_cloog=no + + dnl Only execute fail-action, if CLooG has been requested. + CLOOG_REQUESTED([graphite_requested=yes], [graphite_requested=no]) + if test "${graphite_requested}" = yes; then + AC_MSG_ERROR([Unable to find a usable PPL. See config.log for details.])] + fi fi if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then @@ -1671,10 +1677,9 @@ if test "x$with_cloog" != "xno"; then dnl ignored. CLOOG_CHECK_VERSION(0,16,1) - dnl Only execute fail-action, if CLooG has been - dnl requested. + dnl Only execute fail-action, if CLooG has been requested. CLOOG_IF_FAILED([ - AC_MSG_ERROR([Unable to find a usable CLooG. See config.log for details.])]) + AC_MSG_ERROR([Unable to find a usable CLooG. See config.log for details.])]) fi # Check for LTO support.