This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

aclocal


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?

Thanks in advance for any help.

-- 
Rafael



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]