20:32 ares:~/rpmbuild/SOURCES/rpm-4.7.1 > ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:444: warning: macro `AM_GNU_GETTEXT_VERSION' not found in library
configure.ac:445: warning: macro `AM_GNU_GETTEXT' not found in library
checking for a BSD-compatible install... /usr/bin/install -c
...
1.) autogen.sh is running aclocal when it should be running aclocal -I m4 (immediate fix)
2.) autogen.sh should at best just all autoreconf instead of trying to run all the tools itself, which is also error prone (see this report).