I'm unable to use autogen.sh on machines with more recent autotools: # ./autogen.sh ./autogen.sh: running script/mkversion.sh ./script/mkversion.sh: 'include/version.h' created for Samba("3.4.0-GIT-c726373-"devel"") ./autogen.sh: running autoheader -Im4 -I../lib/replace -I../source4 samba4.m4:134: error: m4_defn: undefined macro: _AC_SUBST_VARS ../source4/build/m4/public.m4:177: SMB_WRITE_PERLVARS is expanded from... samba4.m4:134: the top level autom4te: /usr/bin/m4 failed with exit status: 1 autoheader: '/usr/bin/autom4te' failed with exit status: 1 ...trying to build this on fedora rawhide, which has: autoconf-2.63-1.fc10.noarch ...when I run this on an older machine, it works with some warnings: $ ./autogen.sh ./autogen.sh: running script/mkversion.sh ./script/mkversion.sh: 'include/version.h' created for Samba("3.4.0-GIT-c726373-"devel"") ./autogen.sh: running autoheader -Im4 -I../lib/replace -I../source4 lib/events/libevents.m4:19: warning: AC_LIBREPLACE_NETWORK_CHECKS invoked multiple times ./autogen.sh: running autoconf -Im4 -I../lib/replace -I../source4 lib/events/libevents.m4:19: warning: AC_LIBREPLACE_NETWORK_CHECKS invoked multiple times Now run ./configure and then make. ...the autoconf version there is: autoconf-2.59-12.noarch ...let me know if you need other info or need me to test a patch.
This has been resolved by Jelmer.