【发布时间】:2016-12-16 10:21:27
【问题描述】:
我正在尝试构建一个项目,但它抛出了一个错误:
autoreconf: running: /usr/bin/autoconf --force
configure.ac:19: error: possibly undefined macro: AC_SUBST
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
我对构建工具非常陌生,这就是为什么这个错误让我发疯的原因。
谁能帮我弄清楚我应该怎么做才能解决这个问题?
编辑:configure.ac 中的对应行是:
嘿,我仍然无法弄清楚我的 configure.ac 出了什么问题。 我的 configure.ac 看起来像这样:
PKG_CHECK_MODULES(libcurl, libcurl)
AP_VERSION=2.2.4
AP_CHECK_APACHE([$AP_VERSION], [
LIBTOOL="`$APR_CONFIG --apr-libtool`"
AC_SUBST([LIBTOOL])
MODULE_CFLAGS="$AP_CFLAGS"
AC_SUBST([MODULE_CFLAGS])
MODULE_LDFLAGS="`$APR_CONFIG --link-libtool` `$APU_CONFIG --link-libtool`"
AC_SUBST([MODULE_LDFLAGS])
BIN_LDFLAGS="`$APR_CONFIG --link-libtool` `$APU_CONFIG --link-libtool` `$APR_CONFIG --ldflags --libs` `$APU_CONFIG --ldflags --libs`"
AC_SUBST([BIN_LDFLAGS])
prefix="$AP_PREFIX"
], AC_MSG_ERROR([*** Apache version $AP_VERSION not found!]))
它在 AC_SUBST([LIBTOOL]) 处中断。请帮忙
【问题讨论】:
标签: autoconf libtool autoreconf