summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-10-14 03:44:44 +0200
committerBastien Nocera <hadess@hadess.net>2018-10-14 03:55:10 +0200
commit778c97b68c9b87599a2bbf8c6a797b45054504da (patch)
tree74711882c8f711d848faf34fe49295869e1bf8ae /configure.ac
parentb61f41168ba767f475e12763c581cf86bd48391b (diff)
downloadshared-mime-info-778c97b68c9b87599a2bbf8c6a797b45054504da.tar.gz
build: Allow setting test suite helpers
And fix running the test suite with srcdir != builddir
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6d39305b..a375c68a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,11 @@ if test "x$GCC" = "xyes"; then
fi
]
+if test "x$XDGMIME_PATH" = "x" ; then
+ XDGMIME_PATH=$srcdir/../xdgmime
+fi
+AC_SUBST([XDGMIME_PATH], $XDGMIME_PATH)
+
AC_ARG_ENABLE(update-mimedb,
AC_HELP_STRING([--disable-update-mimedb],
[disable the update-mime-database after install [default=no]]),,