last-svn-commit-507-g5290863 Revamp the handling of Qt.

* configure.ac: Here. Use autotroll.m4's features instead of duplicating them. --- ChangeLog | 7 +++++++ configure.ac | 21 ++++++--------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 37071a7..cb5d835 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-10-21 Roland Levillain <roland@lrde.epita.fr> + Revamp the handling of Qt. + + * configure.ac: Here. + Use autotroll.m4's features instead of duplicating them. + +2010-10-21 Roland Levillain <roland@lrde.epita.fr> + Revamp the handling of Boost libraries. * configure.ac: Here. diff --git a/configure.ac b/configure.ac index de405e9..30064c0 100644 --- a/configure.ac +++ b/configure.ac @@ -228,23 +228,14 @@ AM_CONDITIONAL(HAVE_MAGICKXX, test "x$oln_have_magickxx" = xyes) ## Qt. ## ## --- ## -oln_have_qt=no - -if test "x$with_qt" != xno; then - AT_WITH_QT([+xml], [], [], - AC_MSG_WARN([Qt dependent programs will be disabled.])) - - if test "x$QT_VERSION_MAJOR" != x; then - AT_REQUIRE_QT_VERSION([4], AC_MSG_WARN([Your Qt version is too old! Qt dependent programs will be disabled.]), - AC_DEFINE([HAVE_QT], 1, - [Define to 1 if we can use Qt]) oln_have_qt=yes) - if test "x$QT_VERSION_MAJOR" = x4; then - oln_have_qt=yes - fi - fi +AT_WITH_QT([xml], [], [], [], [oln_have_qt=yes]) +if test $oln_have_qt = yes; then + AT_REQUIRE_QT_VERSION([4], + AC_MSG_WARN([Qt-dependent programs will be disabled.]), + oln_have_expected_qt_version=yes) fi +AM_CONDITIONAL([HAVE_QT], [test "x$oln_have_expected_qt_version" = xyes]) -AM_CONDITIONAL([HAVE_QT], [test "x$oln_have_qt" = xyes]) ## ---------- ## -- 1.5.6.5
participants (1)
-
Roland Levillain