Return-Path: X-Original-To: apmail-apr-commits-archive@www.apache.org Delivered-To: apmail-apr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06669D521 for ; Fri, 7 Sep 2012 21:15:04 +0000 (UTC) Received: (qmail 21250 invoked by uid 500); 7 Sep 2012 21:15:03 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 21212 invoked by uid 500); 7 Sep 2012 21:15:03 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 21201 invoked by uid 99); 7 Sep 2012 21:15:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 21:15:03 +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, 07 Sep 2012 21:15:02 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A9C2023888EA for ; Fri, 7 Sep 2012 21:14:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1382174 - /apr/apr/trunk/build/dbm.m4 Date: Fri, 07 Sep 2012 21:14:19 -0000 To: commits@apr.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120907211419.A9C2023888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sf Date: Fri Sep 7 21:14:19 2012 New Revision: 1382174 URL: http://svn.apache.org/viewvc?rev=1382174&view=rev Log: Check all DB minor versions if --with-dbm=db5 or --with-dbm=db4 is given Modified: apr/apr/trunk/build/dbm.m4 Modified: apr/apr/trunk/build/dbm.m4 URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/dbm.m4?rev=1382174&r1=1382173&r2=1382174&view=diff ============================================================================== --- apr/apr/trunk/build/dbm.m4 (original) +++ apr/apr/trunk/build/dbm.m4 Fri Sep 7 21:14:19 2012 @@ -424,7 +424,7 @@ AC_DEFUN([APU_CHECK_DB], [ AC_MSG_ERROR(Berkeley db3 not found) fi ;; - db[[45]] | db[[45]][[0-9]]) + db[[45]][[0-9]]) db_major=`echo "$requested" | sed -e 's/db//' -e 's/.$//'` db_minor=`echo "$requested" | sed -e 's/db//' -e 's/.//'` APU_CHECK_DBXY("$check_places", "$db_major", "$db_minor") @@ -432,6 +432,22 @@ AC_DEFUN([APU_CHECK_DB], [ AC_MSG_ERROR(Berkeley db$db_major not found) fi ;; + db[[45]]) + db_major=`echo "$requested" | sed -e 's/db//'` + # Start version search at version x.9 + db_minor=9 + while [[ $db_minor -ge 0 ]] + do + APU_CHECK_DBXY("$check_places", "$db_major", "$db_minor") + if test "$apu_have_db" = "1"; then + break + fi + db_minor=`expr $db_minor - 1` + done + if test "$apu_db_version" != "$db_major"; then + AC_MSG_ERROR(Berkeley db$db_major not found) + fi + ;; default) APU_CHECK_DB_ALL("$check_places") ;;