From de90cdb4945ec86f09f10feab3bf78becf36873e Mon Sep 17 00:00:00 2001 From: Paul de Vrieze Date: Sun, 25 May 2003 21:06:23 +0000 Subject: Make the fixing a bit more tollerant, should allow cyrus-sasl to build with db4 --- eclass/db4-fix.eclass | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'eclass/db4-fix.eclass') diff --git a/eclass/db4-fix.eclass b/eclass/db4-fix.eclass index 948541c2fd44..352e356b52dd 100644 --- a/eclass/db4-fix.eclass +++ b/eclass/db4-fix.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/db4-fix.eclass,v 1.1 2003/05/24 14:38:06 pauldv Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/db4-fix.eclass,v 1.2 2003/05/25 21:06:23 pauldv Exp $ # # Author: Paul de Vrieze # @@ -32,13 +32,15 @@ dodb4-fix () { einfo "fixing $1 to work with db-4 by appending ${postfix}" cp $1 ${1}.cpy cat ${1}.cpy \ - |sed -e "s;\( *AC_CHECK_LIB( *db4? *, db_[^ ,]*\);\1${postfix};" \ - -e "s/\( *AC_CHECK_LIB([^,]*, db_create\)\( *,\)/\1${postfix}\2/" \ + |sed -e "s;\( *AC_CHECK_LIB( *db-?4? *, db_[^ ,]*\);\1${postfix};" \ + -e "s/\(-l\|[ \t]\)\(db3\)\([ \t]\)/\1db-3\3/g" \ >${1} || die "sed failed" +# -e "s/\( *AC_CHECK_LIB([^,]*, db_create\)\( *,\)/\1${postfix}\2/" \ + autoconf fi else einfo "db4 not found, so not applying db4 fixes" fi -} \ No newline at end of file +} -- cgit v1.2.3-65-gdbad