I am trying to build libtorrent on shared hosting. So built CPPUnit(1.12.1) with --prefix=$HOME. After that my $HOME/lib and $HOME/include contains CPPUnit libraries and headers. 
The I exported LD_ paths
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
export LD_INCLUDE_PATH=$HOME/include:$LD_INCLUDE_PATH
Then I run libtorrent/autogen.sh --prefix=$HOME and getting the following warning, which prevents me to run configure:
aclocal...
aclocal:configure.ac:20: warning: macro `AM_PATH_CPPUNIT' not found in library
cppunit.m4 file is located in $HOME/share/aclocal. I guess libtorrent can't find that dir for some reason.
 
     
     
     
     
     
     
    