New temporary, non-rewindable public branch `aclocal-search-path' (was: Re: [PATCH] aclocal: handle ACLOCAL_PATH environment variable)

2011-09-28 Thread Stefano Lattarini
On Saturday 24 September 2011, Stefano Lattarini wrote:
 [dropping bug-automake]
 
 The attached patch (for master) is the first step of the testsuite
 reorganization.  I'd like to apply it to a new public branch
 `aclocal-search-path' (to be merged into master eventually).  The
 patch will soonish be followed by another one extending and
 reorganizing tests on the `--install' option and serial number in
 `.m4' files.  Then will come the code and documentation changes.
 
 I will push in a couple of days if there is no objection.

Pushed to the new  `aclocal-search-path' branch.

Regards,
  Stefano



[FYI] {maint} tests: fix tests on aclocal search path precedences

2011-09-22 Thread Stefano Lattarini
* tests/aclocal-path-precedence.test: Call `$ACLOCAL' with the
proper overridden system acdir.
---
 ChangeLog  |6 ++
 tests/aclocal-path-precedence.test |2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 05baf76..f80f4b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-09-22  Stefano Lattarini  stefano.lattar...@gmail.com
+
+   tests: fix tests on aclocal search path precedences
+   * tests/aclocal-path-precedence.test: Call `$ACLOCAL' with the
+   proper overridden system acdir.
+
 2011-09-20  Stefano Lattarini  stefano.lattar...@gmail.com
 
docs: document planned precedence changes in aclocal search path
diff --git a/tests/aclocal-path-precedence.test 
b/tests/aclocal-path-precedence.test
index 0378fb2..b170dd5 100755
--- a/tests/aclocal-path-precedence.test
+++ b/tests/aclocal-path-precedence.test
@@ -64,7 +64,7 @@ END
 
 echo ./extradir  sysdir/dirlist
 
-ACLOCAL_PATH=mdir1:mdir2 $ACLOCAL -I mdir3
+ACLOCAL_PATH=mdir1:mdir2 $ACLOCAL -I mdir3 --system-acdir sysdir
 $AUTOCONF
 
 $FGREP '::' configure # For debugging.
-- 
1.7.2.3




Re: aclocal search path

2006-09-18 Thread Ralf Wildenhues
Hello Russell,

* Russell Shaw wrote on Sun, Sep 17, 2006 at 03:00:29PM CEST:

 Does aclocal have a way to add m4 directories using an environment
 variable?

AFAIK no, but you can add directories using the -I flag.

 On debian, it only looks in /usr/share/aclocal. I want it to look in
 /usr/local/share/aclocal too.

  aclocal -I /usr/local/share/aclocal

should work.  If you use autoreconf, you can use the environment
variable $ACLOCAL (but note that the first -I flag is special, so
if your toplevel Makefile.am contains ACLOCAL_AMFLAGS, that may make a
difference).

 I couldn't find the source for aclocal in the automake tree.

It's in the file aclocal.in.

Cheers,
Ralf




Re: aclocal search path

2006-09-18 Thread Russell Shaw

Ralf Wildenhues wrote:

Hello Russell,

* Russell Shaw wrote on Sun, Sep 17, 2006 at 03:00:29PM CEST:


Does aclocal have a way to add m4 directories using an environment
variable?


AFAIK no, but you can add directories using the -I flag.


On debian, it only looks in /usr/share/aclocal. I want it to look in
/usr/local/share/aclocal too.


  aclocal -I /usr/local/share/aclocal

should work.  If you use autoreconf, you can use the environment
variable $ACLOCAL (but note that the first -I flag is special, so
if your toplevel Makefile.am contains ACLOCAL_AMFLAGS, that may make a
difference).


I couldn't find the source for aclocal in the automake tree.


It's in the file aclocal.in.


Hi,
I found from looking at aclocal.in, i can put a file called dirlist
in /usr/share/aclocal, containing the path: /usr/local/share/aclocal.

When you compile a project from source and have libraries it needs
already installed in /usr/local, then the autogen.sh scripts they
have will not see /usr/local/share/aclocal. It is impractical to
manually do aclocal -I for these cases. The aclocal -I path should
be initialized from an environment variable, like it is for autoreconf.




Re: aclocal search path

2006-09-18 Thread Eric Blake-1

Hi Ralf,

 Hello Russell,
 
 * Russell Shaw wrote on Sun, Sep 17, 2006 at 03:00:29PM CEST:
 
  Does aclocal have a way to add m4 directories using an environment
  variable?
 
 AFAIK no, but you can add directories using the -I flag.

M4 1.4 and later honors M4PATH to add directories to its search path
after any directories passed in by the -I flag.  M4 1.4.6 updated its
--help output to document this fact.

-- 
Eric Blake


-- 
View this message in context: 
http://www.nabble.com/aclocal-search-path-tf2285965.html#a6366708
Sent from the Gnu - Automake - General mailing list archive at Nabble.com.





aclocal search path

2006-09-17 Thread Russell Shaw

Hi,
Does aclocal have a way to add m4 directories using an environment variable?

On debian, it only looks in /usr/share/aclocal. I want it to look in
/usr/local/share/aclocal too.

I couldn't find the source for aclocal in the automake tree.