mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Add a test to configure for minimal Qt version
* use AS_COMPARE_VERSION to check whether the Qt version is correct. * upgrade minimal requirement for autoconf to version 2.60 (released in 2006!).
This commit is contained in:
parent
7632757dd1
commit
1d08d5232d
@ -32,17 +32,17 @@ autoversion=`$AUTOCONF --version 2>/dev/null | head -n 1`
|
|||||||
test "$autoversion" != "" && {
|
test "$autoversion" != "" && {
|
||||||
echo "Using $autoversion"
|
echo "Using $autoversion"
|
||||||
} || {
|
} || {
|
||||||
echo "LyX requires autoconf >= 2.59c"
|
echo "LyX requires autoconf >= 2.60"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
case $autoversion in
|
case $autoversion in
|
||||||
*' '2.59d|*' '2.60[ab]|*' '2.6[0-9])
|
*' '2.60[ab]|*' '2.6[0-9])
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "This autoconf version is not supported by LyX."
|
echo "This autoconf version is not supported by LyX."
|
||||||
echo "LyX only supports autoconf 2.59d-2.69."
|
echo "LyX only supports autoconf 2.60-2.69."
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -547,9 +547,6 @@ AM_CONDITIONAL(INSTALL_MACOSX, $lyx_install_macosx)
|
|||||||
AM_CONDITIONAL(INSTALL_WINDOWS, $lyx_install_windows)
|
AM_CONDITIONAL(INSTALL_WINDOWS, $lyx_install_windows)
|
||||||
AM_CONDITIONAL(INSTALL_CYGWIN, $lyx_install_cygwin)
|
AM_CONDITIONAL(INSTALL_CYGWIN, $lyx_install_cygwin)
|
||||||
AM_CONDITIONAL(INSTALL_POSIX, $lyx_install_posix)
|
AM_CONDITIONAL(INSTALL_POSIX, $lyx_install_posix)
|
||||||
dnl Next two lines are only for autoconf <= 2.59
|
|
||||||
datadir='${datarootdir}'
|
|
||||||
AC_SUBST(datarootdir)
|
|
||||||
AC_SUBST(pkgdatadir)
|
AC_SUBST(pkgdatadir)
|
||||||
AC_SUBST(program_suffix)
|
AC_SUBST(program_suffix)
|
||||||
])
|
])
|
||||||
|
@ -140,6 +140,12 @@ AC_DEFUN([QT4_DO_IT_ALL],
|
|||||||
if test "$pkg_failed" != "no" ; then
|
if test "$pkg_failed" != "no" ; then
|
||||||
QT4_DO_MANUAL_CONFIG
|
QT4_DO_MANUAL_CONFIG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Check qt version
|
||||||
|
AS_VERSION_COMPARE($QT4_VERSION, $1,
|
||||||
|
[LYX_ERROR([LyX requires version $1 of Qt. Only version $QT4_VERSION has been found.])
|
||||||
|
])
|
||||||
|
|
||||||
AC_PATH_PROGS(MOC4, [moc-qt4 moc],[],$qt4_cv_bin:$PATH)
|
AC_PATH_PROGS(MOC4, [moc-qt4 moc],[],$qt4_cv_bin:$PATH)
|
||||||
AC_PATH_PROGS(UIC4, [uic-qt4 uic],[],$qt4_cv_bin:$PATH)
|
AC_PATH_PROGS(UIC4, [uic-qt4 uic],[],$qt4_cv_bin:$PATH)
|
||||||
AC_PATH_PROGS(RCC4, [rcc-qt4 rcc],[],$qt4_cv_bin:$PATH)
|
AC_PATH_PROGS(RCC4, [rcc-qt4 rcc],[],$qt4_cv_bin:$PATH)
|
||||||
|
@ -3,7 +3,7 @@ dnl Process with autoconf to generate configure script -*- sh -*-
|
|||||||
AC_INIT(LyX,2.1.0dev,[lyx-devel@lists.lyx.org],[lyx])
|
AC_INIT(LyX,2.1.0dev,[lyx-devel@lists.lyx.org],[lyx])
|
||||||
# Use ISO format only. The frontend needs to parse this
|
# Use ISO format only. The frontend needs to parse this
|
||||||
AC_SUBST(LYX_DATE, ["2011-04-29"])
|
AC_SUBST(LYX_DATE, ["2011-04-29"])
|
||||||
AC_PREREQ(2.52)
|
AC_PREREQ(2.60)
|
||||||
AC_CONFIG_SRCDIR(src/main.cpp)
|
AC_CONFIG_SRCDIR(src/main.cpp)
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ dnl problems with the AC_REQUIRE contained in QT4_DO_IT_ALL.
|
|||||||
for frontend in $FRONTENDS ; do
|
for frontend in $FRONTENDS ; do
|
||||||
case "$frontend" in
|
case "$frontend" in
|
||||||
qt4)
|
qt4)
|
||||||
QT4_DO_IT_ALL
|
QT4_DO_IT_ALL([4.5.0])
|
||||||
FRONTENDS_PROGS="$FRONTENDS_PROGS lyx-qt4\$(EXEEXT)"
|
FRONTENDS_PROGS="$FRONTENDS_PROGS lyx-qt4\$(EXEEXT)"
|
||||||
FRONTENDS_SUBDIRS="$FRONTENDS_SUBDIRS qt4"
|
FRONTENDS_SUBDIRS="$FRONTENDS_SUBDIRS qt4"
|
||||||
RPM_FRONTEND="qt4"
|
RPM_FRONTEND="qt4"
|
||||||
|
Loading…
Reference in New Issue
Block a user