From e72cd4053676d826ef9a914e62e89e26247bdd5c Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 17 Feb 2016 09:27:51 +0100 Subject: add officeotron version check This allows us to make sure that the correct officeotron version is installed on the machine. Change-Id: I1c4532bed3e91194f51aa6f6767711295282528f Reviewed-on: https://gerrit.libreoffice.org/22417 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index f1d8e94fc934..aabe5583c738 100644 --- a/configure.ac +++ b/configure.ac @@ -2800,6 +2800,10 @@ if test "$with_export_validation" = yes; then if test -z "$OFFICEOTRON"; then AC_MSG_ERROR([officeotron not found, but required by --with-export-validation]) fi + OFFICEOTRON_VER=`$OFFICEOTRON --version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'` + if test 0"$OFFICEOTRON_VER" -lt 704; then + AC_MSG_ERROR([officeotron too old]) + fi AC_SUBST(OFFICEOTRON) else AC_MSG_RESULT([no]) -- cgit