from the builddir too, to pick up Automake::Config.
* tests/defs.in (AUTOMAKE, ACLOCAL): Likewise.
* configure: Regenerate.
* automake.in (BEGIN): Handle multiple directories in $perllibdir.
* aclocal.in (BEGIN): Likewise.
+2003-08-06 Raja R Harinath <harinath@acm.org>
+
+ * configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory
+ from the builddir too, to pick up Automake::Config.
+ * tests/defs.in (AUTOMAKE, ACLOCAL): Likewise.
+ * configure: Regenerate.
+ * automake.in (BEGIN): Handle multiple directories in $perllibdir.
+ * aclocal.in (BEGIN): Likewise.
+
2003-08-07 Alexandre Duret-Lutz <adl@gnu.org>
* tests/ltcond.test: Thinko.
BEGIN
{
my $perllibdir = $ENV{'perllibdir'} || '@datadir@/@PACKAGE@-@APIVERSION@';
- unshift @INC, $perllibdir;
+ unshift @INC, (split ':', $perllibdir);
}
use Automake::Config;
BEGIN
{
my $perllibdir = $ENV{'perllibdir'} || '@datadir@/@PACKAGE@-@APIVERSION@';
- unshift @INC, $perllibdir;
+ unshift @INC, (split ':', $perllibdir);
# Override SHELL. This is required on DJGPP so that system() uses
# bash, not COMMAND.COM which doesn't quote arguments properly.
# $AUTOMAKE and $ACLOCAL are always run after a `cd $top_srcdir',
# hence `.' is really what we want for perllibdir, libdir, and acdir.
-ACLOCAL="perllibdir=./lib `pwd`/aclocal --acdir=m4"
-AUTOMAKE="perllibdir=./lib `pwd`/automake --libdir=lib"
+ACLOCAL="perllibdir=`pwd`/lib:./lib `pwd`/aclocal --acdir=m4"
+AUTOMAKE="perllibdir=`pwd`/lib:./lib `pwd`/automake --libdir=lib"
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
# $AUTOMAKE and $ACLOCAL are always run after a `cd $top_srcdir',
# hence `.' is really what we want for perllibdir, libdir, and acdir.
-ACLOCAL="perllibdir=./lib `pwd`/aclocal --acdir=m4"
-AUTOMAKE="perllibdir=./lib `pwd`/automake --libdir=lib"
+ACLOCAL="perllibdir=`pwd`/lib:./lib `pwd`/aclocal --acdir=m4"
+AUTOMAKE="perllibdir=`pwd`/lib:./lib `pwd`/automake --libdir=lib"
AC_PATH_PROG(PERL, perl)
if test -z "$PERL"; then
# strictness to avoid having to create lots and lots of files. A test
# can override this by specifying a different strictness.
if test -z "$AUTOMAKE"; then
- perllibdir=$srcdir/../lib
+ perllibdir=../../lib:$srcdir/../lib
export perllibdir
# Use -Wall -Werror by default. Tests for which this is inappropriate
# (e.g. when testing that a warning is enabled by a specific switch)
# See how aclocal should be run.
if test -z "$ACLOCAL"; then
- perllibdir=$srcdir/../lib
+ perllibdir=../../lib:$srcdir/../lib
export perllibdir
# Most of the files are in $srcdir/../m4. However amversion.m4 is
# generated in ../m4, so we include that directory in the search