Mark - 2014-06-06

I just remove every instance of __const and edit the three functions above and everything then compiles. You might be over-doing it with the const stuff.

    cd /var/tmp
    rm -rf mhash-0.9.9.9
    untgz /usr/local/src/crypto/libmhash-0.9.9.9.tar.gz
    /bin/perl -pe '($. == 29)  && s/^/#define __const  /' -i mhash-0.9.9.9/include/mutils/mutils.h
    /bin/perl -pe '($. == 351) && s%__const%%g'           -i mhash-0.9.9.9/lib/stdfns.c
    /bin/perl -pe '($. == 351) && s%const%%g'             -i mhash-0.9.9.9/lib/stdfns.c
    /bin/perl -pe '($. == 486) && s%__const%%g'           -i mhash-0.9.9.9/lib/stdfns.c
    /bin/perl -pe '($. == 486) && s%const%%g'             -i mhash-0.9.9.9/lib/stdfns.c
    /bin/perl -pe '($. == 505) && s%__const%%g'           -i mhash-0.9.9.9/lib/stdfns.c
    /bin/perl -pe '($. == 505) && s%const%%g'             -i mhash-0.9.9.9/lib/stdfns.c
    cd mhash-0.9.9.9
    foreach file (`find . -name \*.c -print | xargs grep __const | cut -f1 -d: | uniq`)
        perl -pe 's#__const##g' -i $file
    end
    ./configure --prefix=/usr/local
    gmake
    gmake install