export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig
cd ImageMagick-6.8.9-6
make clean
./configure --prefix="/usr/local/imk-dyn"--enable-shared --disable-static --enable-openmp LDFLAGS="$LDFLAGS" --without-magick-plus-plus --with-quantum-depth=8 --disable-installed --without-bzlib --without-fontconfig --without-freetype --without-dps --without-djvu --without-fpx --without-fftw --without-lcms --without-lcms2 --without-pango --without-webp --without-jpeg --without-png --without-tiff --without-xml --without-zlib --with-gcc-arch=core2
make
make install