2012-07-04 50 views
0

我试图从sf.net构建xtables-addons。autoreconf无法从configure.ac创建配置

我已经克隆了SF的xtables-addons git repo。它有一个“autogen.sh”到 创建配置脚本。 ./autogen.sh与以下 消息失败:

/usr/bin/m4:configure.ac:33: Warning: excess arguments to builtin `m4_if' ignored 
autom4te: /usr/bin/m4 failed with exit status: 1 
aclocal: autom4te failed with exit status: 1 
autoreconf: aclocal failed with exit status: 1 

我不是在自动工具经历过,所以我无能什么实际 对那里发生的。

的autogen.sh包含follwing:

#!/bin/bash 

autoreconf -fi; 
rm -Rf autom4te*.cache; 

为什么它的失败?我拥有所有的自动工具。

编辑:

[[email protected] xtables-addons]# /usr/bin/m4 --version 
m4 (GNU M4) 1.4.13 
Copyright (C) 2009 Free Software Foundation, Inc. 
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. 
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law. 

Written by Rene' Seindal. 
+0

是什么'在/ usr/bin中/ M4 --version'说? – legoscia

+0

更新了m4版本的问题。 – Aftnix

回答

2

貌似this bug report。你可以从那里得到附加的补丁,或者直接去configure.ac中的第32行,并在autodetect之后删除多余的方括号。即更改此设置:

[Path where to install Xtables extensions [[autodetect]]]]), 

这样:

[Path where to install Xtables extensions [[autodetect]]]), 
+0

谢谢,这有很大的帮助 – Aftnix