From 877f7e6eaee9d7da176d02b06dee9847cc332d13 Mon Sep 17 00:00:00 2001 From: Douglas Mencken Date: Thu, 12 Dec 2013 08:08:22 -0500 Subject: Add check for touch -h to configure.ac Change-Id: I53c452dac9cef64fce9a3e7e28956efe95fc4c24 Reviewed-on: https://gerrit.libreoffice.org/7046 Reviewed-by: Norbert Thiebaud Tested-by: Norbert Thiebaud --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a7c8c807c745..687965c443c7 100644 --- a/configure.ac +++ b/configure.ac @@ -9947,6 +9947,15 @@ if test $build_os = cygwin; then fi fi +dnl =================================================================== +dnl We need touch with -h option support. +dnl =================================================================== +AC_PATH_PROG(TOUCH, touch) +test -z "$TOUCH" && AC_MSG_ERROR([touch is required]) +if ! "$TOUCH" -h /dev/null 2>/dev/null > /dev/null; then + AC_MSG_ERROR([touch version with -h option support is required to build, please install it and make sure it is the one found first in PATH],,) +fi + dnl =================================================================== dnl Test which vclplugs have to be built. dnl =================================================================== -- cgit