Use pkg-config to find Qt 4 and 5 instead of direct qmake
authorThiago Macieira <thiago.macieira@intel.com>
Mon, 2 Nov 2015 03:12:53 +0000 (21:12 -0600)
committerMichal Marek <mmarek@suse.com>
Mon, 2 Nov 2015 20:43:09 +0000 (21:43 +0100)
commit588446a84776cfb3ebbc1677c3407d6884878bd6
tree7ffa0f60d0191e38806b268272989fec52d6bb7e
parentf6aad2615c8c4ed806e70693adacb6c93f13564a
Use pkg-config to find Qt 4 and 5 instead of direct qmake

The Qt Project recommendation is that there should always be a "qmake"
binary and it should never be renamed. If it's necessary to handle
multiple Qt versions, the Qt Project recommends using qtchooser.

Unfortunately, some distros do not follow the recommendation, so we
would need to check qmake-qt4, qmake-qt5, etc. So, instead, let's try
pkg-config.

Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
Reported-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/kconfig/Makefile