The pkg-config interface should take care of everything easily. Debian and 
Ubuntu have the relevant qt5 pkg-config files. Other distributions should too.

Does pkg-config give the information for the pathname of moc?
(the original question by Hin-Tak was asking about the
appropriate path to use moc command)

In my understanding, pkg-config is primarily designed to
provide the information to compile & link the libraries,
not designed to provide the information about the binary
executable commands.

Regards,
mpsuzuki



On 2023/07/13 23:31, Hugh McMaster wrote:
On Thu, 13 Jul 2023 at 14:20, suzuki toshiya  wrote:
I would try to let AX_HAVE_QT() macro to find appropriate set:
https://www.gnu.org/software/autoconf-archive/ax_have_qt.html<https://www.gnu.org/software/autoconf-archive/ax_have_qt.html>

In the case of Debian (and Ubuntu), qtchooser might be the unified
interface to switch 4, 5, and maybe 6 in future. It seems that
AX_HAVE_QT() does not check it, because the last update of AX_HAVE_QT
was 2014 X-p.

The pkg-config interface should take care of everything easily. Debian and 
Ubuntu have the relevant qt5 pkg-config files. Other distributions should too.




Reply via email to