summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-02-17 09:27:51 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-02-22 17:28:43 +0000
commite72cd4053676d826ef9a914e62e89e26247bdd5c (patch)
treeb2b1e30e451416370e831b3661743060998666c0
parenteea5cb158e907fa1318f0689025bafce3caf8ae1 (diff)
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 <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
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])