如何将autoconf/automake指向非标准软件包 [英] How to point autoconf/automake to non-standard packages
问题描述
我正在尝试在RedHat Linux机器上构建ZooKeeper. (ZooKeeper到底是什么并不重要:-)
I'm trying to build ZooKeeper on a RedHat Linux box. (Exactly what ZooKeeper is is probably not important :-)
按照包装上的说明,我会得到:
When I follow the package instructions, I get:
$ autoreconf -if
aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library
aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library
configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT
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
我无法在标准位置安装CPPPUNIT. (没有root特权,系统团队 的政策是与标准配置无偏差".
I can't install CPPPUNIT in the standard place. (Don't have root privileges, system team has a policy of "no deviations" from standard configuration.)
我通过注释掉对以下内容的引用来解决该问题
我的configure.ac文件中的AM_PATH_CPPUNI
T,但是我真正想做的是
是在我的个人目录中安装CPPPUNIT并指向它,但是我
在弄清楚如何告诉autoconf/auotmake方面没有取得很大进展
系统在非标准位置查找它.任何人都有任何暗示
该怎么做?
I've worked around the problem by commenting out the references to
AM_PATH_CPPUNI
T in my configure.ac file, but what I'd really like to do
is to install CPPPUNIT in my personal directory and point to it, but I'm
not making much progress in figuring out how to tell the autoconf/auotmake
system to look for it in a non-standard place. Anybody have any hints on
how to do that?
推荐答案
您要设置环境变量ACLOCAL_PATH.
You want to set the environment variable ACLOCAL_PATH.
ACLOCAL_PATH="/home/YOU/path/to/share/aclocal" autoreconf -if
要弄清楚需要将ACLOCAL_PATH指向哪个目录,必须找到包含定义AM_PATH_CPPUNIT的.m4文件的目录.
To figure out what directory you need to point ACLOCAL_PATH at, you'll have to find the directory that contains the .m4 file that defines AM_PATH_CPPUNIT.
这篇关于如何将autoconf/automake指向非标准软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!