Menu

#5 couldn't open directory `m4': No such file or directory

closed-fixed
nobody
None
5
2011-12-04
2010-12-19
No

Trying to build SDL_gfx 2.0.22 on Mac OS X Snow Leopard fails for me with this message:

cd . && /bin/sh /opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_libsdl_gfx/work/SDL_gfx-2.0.22/missing --run aclocal-1.10 -I m4
aclocal-1.10: couldn't open directory `m4': No such file or directory

2.0.20 didn't have this problem (and did have an "m4" directory which 2.0.22 does not).

I could solve the problem by removing the line "ACLOCAL_AMFLAGS = -I m4" from Makefile.am and running autoreconf, but this caused glibtoolize to produce the warning "Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am".

A different solution was to just create an empty "m4" directory, which was then populated by the configuration, but this was nonoptimal because it caused the configure script to be run twice.

In the end I settled on both creating the empty "m4" directory and then running autoreconf. See http://trac.macports.org/changeset/74489

Discussion

  • ferzkopp

    ferzkopp - 2011-12-04
    • status: open --> closed-fixed
     
  • ferzkopp

    ferzkopp - 2011-12-04

    Added stub m4 folders.

     

Log in to post a comment.