X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fqimage%2Fconfigure;h=f10f4ac4bdcd72ff494407dada88bbe7c5f7ecea;hb=716e8ae7c40066523f61a716bf715013b8e65667;hp=2a2f5822739ccfb7cdedfe57d460e5dae61b7d57;hpb=a25b30e118e03f3b16db18ab812edea2b5f112bd;p=melted diff --git a/src/modules/qimage/configure b/src/modules/qimage/configure index 2a2f582..f10f4ac 100755 --- a/src/modules/qimage/configure +++ b/src/modules/qimage/configure @@ -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