redpony / cdec

Decoder, aligner, and model optimizer for statistical machine translation and other structured prediction models based on (mostly) context-free formalisms
http://cdec-decoder.org/
Apache License 2.0
183 stars 77 forks source link

autoconf build issue - undefined macro: _m4_divert_diversion #47

Closed greycubesgav closed 10 years ago

greycubesgav commented 10 years ago

Hi;

I'm trying to build the latest commit (969b00197fc41087f9eb808a7ebba293966f90de) under Centos 6.5, however I'm getting autoconf errors when trying to run "autoreconf -ifv"

[root@devel-01 cdec-969b00197fc41087f9eb808a7ebba293966f90de]# autoreconf -ifv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
configure.ac:1: error: m4_defn: undefined macro: _m4_divert_diversion
configure.ac:1: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

A google search seems to suggest this is due to new Autoconf macros (http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/New-Macros.html). However I don't seem to be able to find a fix.

Cheers Gavin

redpony commented 10 years ago

Thanks for the heads up, I'll look into building cdec with a newer version of Autoconf and see if I can reproduce this.

greycubesgav commented 10 years ago

Hey, A colleague for mine found a fix, swap the first two lines in configure.ac so:

AC_CONFIG_MACRO_DIR([m4])
AC_INIT([cdec],[2014-06-15])

Becomes

AC_INIT([cdec],[2014-06-15])
AC_CONFIG_MACRO_DIR([m4])

I'm now getting an error during the make phase. I'll close this issue and raise another though.