Fixup autotools.bbclass for samba-3.0.25c From: Dan Williams 1/ The 'acpaths' finding script does not go deep enough for samba. 2/ The .m4 files in samba-3.0.25c/source/lib/replace are not picked up by autoreconf, so export acpaths as the environment variable M4PATH --- classes/autotools.bbclass | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass index fccf2b6..2f01b85 100644 --- a/classes/autotools.bbclass +++ b/classes/autotools.bbclass @@ -86,11 +86,14 @@ autotools_do_configure() { olddir=`pwd` cd ${S} if [ x"${acpaths}" = xdefault ]; then + m4path= acpaths= - for i in `find ${S} -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \ + for i in `find ${S} -maxdepth 3 -name \*.m4|grep -v 'aclocal.m4'| \ grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do acpaths="$acpaths -I $i" + m4path="$m4path:$i" done + export M4PATH=$m4path else acpaths="${acpaths}" fi