How to point autoconf / automake to custom packages

I am trying to create ZooKeeper in a RedHat Linux window. (Exactly that ZooKeeper probably doesn't matter :-)

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

I cannot install CPPPUNIT in a standard location. (They do not have root privileges, the system command has a "no deviation" policy from the standard configuration.)

I worked on the problem by commenting on AM_PATH_CPPUNIT links in my configure.ac file, but what I really would like to do is install CPPPUNIT in my personal directory and point to it, but I'm not making much progress in figuring out how to say autoconf / auotmake to search for it in a non-standard place. Does anyone have any hints on how to do this?

+5
4

ACLOCAL_PATH.

ACLOCAL_PATH="/home/YOU/path/to/share/aclocal" autoreconf -if

, ACLOCAL_PATH, , .m4, AM_PATH_CPPUNIT.

+7

- cppunit-devel. centos yum -y install cppunit-devel .

+5

​​ . , "" autoconf. , ...

export ACLOCAL_PATH=/home/YOU/path/to/share/aclocal

, , ... ( - , autoconf/configure...)

make clean

"./configure" script, (, "configure. *" ).. . , " " , "" . , iN coNfigureS ... - make .

. , MAC, LINUX SW, Mac. , , .

+1

: separator. :

export ACLOCAL_PATH="/usr/share/aclocal/:/usr/local/share/aclocal"
+1
source

All Articles