Return-Path: X-Original-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BAF03D417 for ; Fri, 24 Aug 2012 20:12:08 +0000 (UTC) Received: (qmail 65687 invoked by uid 500); 24 Aug 2012 20:12:08 -0000 Delivered-To: apmail-incubator-ooo-commits-archive@incubator.apache.org Received: (qmail 65653 invoked by uid 500); 24 Aug 2012 20:12:08 -0000 Mailing-List: contact ooo-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-commits@incubator.apache.org Received: (qmail 65646 invoked by uid 99); 24 Aug 2012 20:12:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 20:12:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 20:12:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4E40B23889EB; Fri, 24 Aug 2012 20:11:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1377080 - /incubator/ooo/trunk/main/configure.in Date: Fri, 24 Aug 2012 20:11:24 -0000 To: ooo-commits@incubator.apache.org From: arielch@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120824201124.4E40B23889EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: arielch Date: Fri Aug 24 20:11:23 2012 New Revision: 1377080 URL: http://svn.apache.org/viewvc?rev=1377080&view=rev Log: Test for unset variable Modified: incubator/ooo/trunk/main/configure.in Modified: incubator/ooo/trunk/main/configure.in URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/configure.in?rev=1377080&r1=1377079&r2=1377080&view=diff ============================================================================== --- incubator/ooo/trunk/main/configure.in (original) +++ incubator/ooo/trunk/main/configure.in Fri Aug 24 20:11:23 2012 @@ -7088,7 +7088,9 @@ dnl Test whether rat scan was requested dnl =================================================================== RAT_JAR= AC_MSG_CHECKING([whether to trigger rat scan]) -if test "$with_rat_scan" != "no"; then +if test -z "$with_rat_scan" -o "$with_rat_scan" == "no"; then + AC_MSG_RESULT([no]) +else if test "$WITH_JAVA" == "no"; then AC_MSG_ERROR([no, java disabled, enable with --with-java]) elif test "$enable_saxon" == "no"; then @@ -7106,8 +7108,6 @@ if test "$with_rat_scan" != "no"; then AC_MSG_ERROR([$with_rat_scan is not a directory]) fi fi -else - AC_MSG_RESULT([no]) fi AC_SUBST(RAT_JAR_HOME)