test -f /usr/include/mhash.h && MHASHDIR=/usr
test -f /usr/local/include/mhash.h && MHASHDIR=/usr/local
test -f $LOCAL_PATH/include/mhash.h && MHASHDIR=$LOCAL_PATH
if [ ! -f $LOCAL_PATH/include/mhash.h ] && [ ! -f /usr/include/mhash.h ]
then

 MHASHDIR=$LOCAL_PATH
 cd $root/src
 notice "$MENUTRUE" "Getting mhash Source ready for PHP...\n"
 check_source "mhash-$MHASH.tar.gz" "http://telia.dl.sourceforge.net/sourceforge/mhash/mhash-${MHASH}.tar.gz"
 explode mhash-$MHASH.tar.gz
 notice "$MENUTRUE" " Untared mhash Source for PHP...\n"
 cd mhash-$MHASH
 ./configure --prefix=$LOCAL_PATH &> $logdir/mhash-configure.log 2>&1
 testcheck $? mhash-configure.log
 notice "$MENUTRUE" " Configured mhash Source for PHP...\n"
 make &> $logdir/mhash-compile.log 2>&1
 testcheck $? mhash-compile.log
 notice "$MENUTRUE" " Compiled mhash Source for PHP...\n"
 inst mhash
 notice "$MENUTRUE" " Installed mhash Source for PHP...\n"
 make clean > $logdir/mhash-clean.log
 notice "$MENUTRUE" "mhash Source ready for PHP...\n"
 
else
 notice "$MENUTRUE" "mhash lib's already installed!\n"
fi
cd $root

CONFIGPHP="$CONFIGPHP --with-mhash=$MHASHDIR $r"
