Hi Pekka, On Tue, 2011-07-05 at 12:28 +0300, Pekka Enberg wrote: > I'm trying to build GNU Classpath CVS HEAD on Mac OS X 10.6.7. I > followed these instructions to satisfy the autoconf 2.65 requirement: > > http://www.mattvsworld.com/blog/2010/02/install-the-latest-autoconf-and-automake-on-mac-os-10-6/ > > However, when I try to run 'autogen.sh' I get the following error: > > $ sh autogen.sh > configure.ac:503: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but > not m4_defun'd > m4/iconv.m4:11: AM_ICONV_LINKFLAGS_BODY is expanded from... > m4/iconv.m4:22: AM_ICONV_LINK is expanded from... > m4/iconv.m4:77: AM_ICONV is expanded from... > configure.ac:503: the top level [...] > autoreconf: /usr/local/bin/autoconf failed with exit status: 1 > > Any ideas what's going wrong here? I am not sure, but you might be missing gettext, and our configure picks up the local m4/iconv.m4. We don't actually use gettext, but we try to use iconv. See the installation instructions at http://www.gnu.org/software/libiconv/ which has a little section on iconv.m4. So try installing gettext, or find an updated version of the libiconv iconv.m4 and install that under the classpath/m4/ directory. Please let us know if that helps or not. Cheers, Mark