Installing as non-privileged user - problem and solution

Hi everybody. Many thanks to Digium and other Asterisk developers for very good product. I want to report one problem I encountered when installed Asterisk on FreeBSD box. It is not my own server, so I have only ordinary user rights and decided to install Asterisk to ~/asterisk (in fact, /home/myname/asterisk). I did it so:

configure --prefix=/home/myname/asterisk
gmake
gmake install

And gmake install had failed to do install in ‘utils’ directory. As it was seen on screen, it attempted to install binaries to / (server root) directory instead of ~/asterisk/sbin. After some investigations, I have found that ASTSBINDIR did not transferred from root gmake to child gmake in ‘utils’. I added

export ASTSBINDIR

to root Makefile and it is installed and even seems running.

I used asterisk-1.4.0-beta3.tar.gz downloaded yesterday. My uname -a output is:

FreeBSD host.name.ua 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386

Hope it was helpful to anybody. Best regards, Alex.