summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-12-28 18:17:05 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-12-28 18:17:05 +0000
commite28d6e8906779710a1f8aed927f053f492cb3530 (patch)
treee2ea7788d76bc7ab29adcd77290985743ba7e153 /eclass
parent~ppc keyworded (diff)
downloadgentoo-2-e28d6e8906779710a1f8aed927f053f492cb3530.tar.gz
gentoo-2-e28d6e8906779710a1f8aed927f053f492cb3530.tar.bz2
gentoo-2-e28d6e8906779710a1f8aed927f053f492cb3530.zip
fix if ltmain.sh in CONFIG dir
Diffstat (limited to 'eclass')
-rw-r--r--eclass/libtool.eclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index 558da06f96e5..2145242c878b 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.eclass
@@ -1,7 +1,7 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author: Martin Schlemmer <azarah@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.18 2002/12/16 02:36:05 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.19 2002/12/28 18:17:05 azarah Exp $
# This eclass patches ltmain.sh distributed with libtoolized packages with the
# relink and portage patch
@@ -154,8 +154,18 @@ elibtoolize() {
eval ${y} $>${T}/elibtool.log
elif [ "${portage}" = "no" ] && [ "${reversedeps}" = "no" ] && [ "${removeinternaldep}" = "no" ]
then
+ # Sometimes ltmain.sh is in a subdirectory ...
+ if [ ! -f ${x}/configure.in -a ! -f ${x}/configure.ac ]
+ then
+ if [ -f ${x}/../configure.in -o -f ${x}/../configure.ac ]
+ then
+ cd ${x}/../
+ fi
+ fi
+
ewarn "Cannot apply any patch, running libtoolize..."
libtoolize --copy --force
+ cd ${x}
break
fi
done