lyx_mirror/config
Enrico Forestieri 635a7d77dd Allow compiling with Qt6
This commit allows compiling LyX with Qt6 when using autotools.
For a successful compilation the following 2 conditions must be met.

1) The Qt6 qmake has to come first in PATH, so that the command
   "qmake -v | grep -o 'Qt version .'" returns "Qt version 6".
2) The --enable-qt6 switch has to be passed to the configure command.

If --enable-qt6 is used but Qt6 is not found, Qt5 is tried as a fallback.
If also Qt5 is not found, configuring for Qt4 is attempted.
If --enable-qt6 is not used, then things go as usual. This means that Qt5
is tried first and then Qt4, unless --disable-qt5 is used, in which case
Qt4 is directly attempted. This means that existing scripts should
continue working unmodified.

LyX should compile with Qt6 on windows and linux, and possibly also on
mac, but I could not test that. However, it is not guaranteed that it
works as it should. In particular I am not sure that I got right the
conversion from QRegExp to QRegularExpression. For sure, the syntax
highlighting seems to not work right. Someone in the know should take
a look at that. I am able to load documents and compile them but some
thourough testing is needed. However, when compiling for Qt5 or Qt4,
I tried to make sure that the functionality is preserved.
2021-03-15 17:09:09 +01:00
..
.gitignore Autotools: configure AR program 2015-05-06 17:08:56 +02:00
common.am Remove support for precompiled headers for autotools 2015-09-25 12:05:40 +02:00
config.rpath put the 0.16.1 code from gettext back 2008-06-09 13:50:05 +00:00
lyxinclude.m4 Allow compiling with Qt6 2021-03-15 17:09:09 +01:00
lyxpython.m4 Search also for Python named `python' 2019-06-25 12:04:26 +02:00
Makefile.am Rename frontend qt4 to qt 2019-07-20 23:39:40 +02:00
pkg.m4
qt.m4 Allow compiling with Qt6 2021-03-15 17:09:09 +01:00
spell.m4 Do nothing if hunspell support is disabled 2020-11-19 13:44:01 +01:00