X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fqimage%2Fconfigure;h=7111947edbd64be3d95a3caf93aa5dad52bff997;hb=f4963a6aa07644399b273b5d2b1f9299c9047414;hp=2a2f5822739ccfb7cdedfe57d460e5dae61b7d57;hpb=d0227427040c4a2863f61d6827aa3a9044524a06;p=melted diff --git a/src/modules/qimage/configure b/src/modules/qimage/configure index 2a2f582..7111947 100755 --- a/src/modules/qimage/configure +++ b/src/modules/qimage/configure @@ -16,13 +16,13 @@ EOF else targetos=$(uname -s) case $targetos in - MINGW32*) - export LIBSUF=.dll - ;; + MINGW32*) + export LIBSUF=.dll + ;; Darwin) export LIBSUF=.dylib ;; - Linux) + Linux|FreeBSD) export LIBSUF=.so ;; *) @@ -65,7 +65,17 @@ else esac done - if [ -d "$qimage_libdir" -a -d "$qimage_includedir" ] + pkg-config --exists 'QtGui >= 4' + if [ $? -eq 0 ] && [ "$force_qt3" = "" ] + then + echo "Qt version 4.x detected, will compile Qt4 qimage producer" + qt4_found=true + echo "#define USE_QT4" > config.h + echo "USE_QT4=1" > config.mak + echo QTCXXFLAGS=$(pkg-config --cflags QtGui) >> config.mak + echo QTLIBS=$(pkg-config --libs QtGui) >> config.mak + + elif [ -d "$qimage_libdir" -a -d "$qimage_includedir" ] then # test if we have a Qt3 or Qt4