automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: aclocal


From: Rafael Laboissiere
Subject: Re: aclocal
Date: Sat, 21 Feb 2004 16:38:36 +0100
User-agent: Mutt/1.5.5.1+cvs20040105i

Replying to myself:

* Rafael Laboissiere <address@hidden> [2004-02-21 11:43]:

> I am having trouble with aclocal-1.8 when trying to m4_include files from
> another file that is itself m4_included.  Here is an experiment that narrows
> down the problem:
> 
>     $ cat > configure.ac <<EOF
>     > m4_include(cf/foo)
>     > EOF
>     $ mkdir cf
>     $ cat > cf/foo <<EOF
>     > m4_include(bar)
>     > EOF
>     $ touch cf/bar
>     $ aclocal-1.8
>     cf/foo:1: /usr/bin/m4: Cannot open bar: No such file or directory
>     autom4te: /usr/bin/m4 failed with exit status: 1
>     aclocal-1.8: autom4te failed with exit status: 1
>     $ cat > cf/foo <<EOF
>     > m4_include(cf/bar)
>     > EOF
>     $ aclocal-1.8    
>     aclocal-1.8: cannot open cf/cf/bar: No such file or directory    
>     $ ls -l cf
>     total 4
>     -rw-r--r--    1 rafael   rafael          0 2004-02-21 11:18 bar
>     -rw-r--r--    1 rafael   rafael         19 2004-02-21 11:20 foo
> 
> Why neither m4_include(bar) nor m4_include(cf/bar) work in cf/foo?

I found a solution to my problem by using the environment variable M4PATH.
Here is the example above corrected:

     $ cat > configure.ac <<EOF
     > m4_include(cf/foo)
     > EOF
     $ mkdir cf
     $ cat > cf/foo <<EOF
     > m4_include(bar)
     > EOF
     $ touch cf/bar
     $ export M4PATH=cf
     $ aclocal-1.8
     $
     

-- 
Rafael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]