Mercurial > minori
comparison configure.ac @ 239:cae61340cc86
configure: check pkg-config for qt
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Fri, 19 Jan 2024 12:29:53 -0500 |
parents | a7d0d543b334 |
children | 6ffe42286978 |
comparison
equal
deleted
inserted
replaced
238:d2b7e974221e | 239:cae61340cc86 |
---|---|
16 | 16 |
17 # Init libtool | 17 # Init libtool |
18 AM_PROG_AR | 18 AM_PROG_AR |
19 LT_INIT | 19 LT_INIT |
20 | 20 |
21 have_qt=no | |
21 # Qt? | 22 # Qt? |
22 AX_HAVE_QT | 23 AX_HAVE_QT |
23 | 24 |
24 if test "x$have_qt" = "xno"; then | 25 if test "x$have_qt" = "xno"; then |
25 AC_MSG_ERROR([*** Qt not found.]) | 26 PKG_CHECK_MODULES([QT], [Qt6Widgets >= 6.0.0], [have_qt=yes], []) |
27 # prioritize qt 5 | |
28 PKG_CHECK_MODULES([QT], [Qt5Widgets >= 5.15.0], [have_qt=yes], []) | |
29 | |
30 if test "x$have_qt" = "xno"; then | |
31 AC_MSG_ERROR([*** Qt not found.]) | |
32 fi | |
33 | |
34 QT_CXXFLAGS=$QT_CFLAGS | |
35 AC_SUBST([QT_CXXFLAGS]) | |
26 fi | 36 fi |
27 | 37 |
28 # need this for moc | 38 # need this for moc |
29 AC_PROG_MKDIR_P | 39 AC_PROG_MKDIR_P |
30 | 40 |