autoreconf无法从configure.ac创建配置

时间:2012-07-04 13:33:45

标签: linux autotools

我正在尝试从sf.net构建xtables-addons。

我从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

我在autotools方面没有经验,所以我对实际情况一无所知 去那儿。

autogen.sh包含以下内容:

#!/bin/bash

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

为什么会失败?我有所有的autotools。

编辑:

[root@s1 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.

1 个答案:

答案 0 :(得分:2)

看起来像this bug report。您可以从那里获取附加的补丁,或者只是转到configure.ac中的第32行,然后在autodetect之后移除多余的紧密方括号。即改变这个:

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

到此:

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