From: Raja R Harinath Date: Thu, 7 Aug 2003 00:32:29 +0000 (+0000) Subject: * configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory X-Git-Tag: Release-1-7b~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=724be94691b2ea044a3632c3c02887ca8bceb3c6;p=thirdparty%2Fautomake.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 42b1a37a4..42e05725f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2003-08-06 Raja R Harinath + + * 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 * tests/ltcond.test: Thinko. diff --git a/aclocal.in b/aclocal.in index 64c5c265f..0bb7ea84f 100644 --- a/aclocal.in +++ b/aclocal.in @@ -30,7 +30,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' BEGIN { my $perllibdir = $ENV{'perllibdir'} || '@datadir@/@PACKAGE@-@APIVERSION@'; - unshift @INC, $perllibdir; + unshift @INC, (split ':', $perllibdir); } use Automake::Config; diff --git a/automake.in b/automake.in index 513bb1777..3f1ee13aa 100755 --- a/automake.in +++ b/automake.in @@ -32,7 +32,7 @@ package Language; 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. diff --git a/configure b/configure index 0b2fecda6..e6a75a27a 100755 --- a/configure +++ b/configure @@ -1662,8 +1662,8 @@ pkgvdatadir="\${datadir}/automake-${APIVERSION}" # $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 diff --git a/configure.in b/configure.in index 54479e990..e28a8caf5 100644 --- a/configure.in +++ b/configure.in @@ -49,8 +49,8 @@ AC_SUBST(pkgvdatadir) # $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 diff --git a/tests/defs.in b/tests/defs.in index ca310420c..6ca721907 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -235,7 +235,7 @@ echo "=== Running test $0" # 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) @@ -245,7 +245,7 @@ fi # 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