When Qt version 3.x is detected, if KDEDIR is empty and /usr/include/kde exists, kde_libdir will be equal to /usr/lib and QTLIBS=-L$qimage_libdir -L/usr/lib/lib -lqt-mt
Attached patch should fix it.
Please apply this patch.
--kde-libdir option is supposed to be used to define full libdir path, not only its prefix.
Using -L$kde_libdir/lib path is breaking the defined one.
I believe this is outdated and no longer relevant. Correct me if wrong.
Gentoo people still require this patch (http://www.gentoo-portage.com/media-libs/mlt)
I don't understand why --kde-includedir option should be supposed to define a full path while --kde-libdir not.
Patch applied in Git tree commit 4ab6958. Will close this on next release.