I found out that when I wanted to use phpmyadmin, it asked for the libmcrypt module. So here is how I added mcrypt to PHP:
First download the libmcrypt sourcecode (I’ve used version 2.5.8).
First you need to unpack the source code and decide if you need the 32 bits or 64 bits version (of your apache/php installation).
for 64 bits use:
CXXFLAGS="-arch x86_64" \
for 32 bits use:
For all versions use:
To compile and:
To install the library.
The only change you need to make is to add:
To the configure statement and it will include this library for you.