From de47b88d7146b9af74b6f1f307ba5f222bdf5b76 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Mon, 2 Oct 2023 09:55:23 +0300 Subject: [PATCH] feat(build): Allow builds --enable-developer to run remotely from source directory --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 3b9bfbc3..0ee544ea 100644 --- a/configure.ac +++ b/configure.ac @@ -107,6 +107,12 @@ AM_COND_IF([DEPENDENCY_CHECKS], [ ]) ]) +# Avoid the need for configuring with the `--datarootdir=$(cd ..; pwd)` hack to +# run from the source directory when developer mode is enabled. +AM_COND_IF([DEVELOPER], [ + datarootdir="$(cd ..; pwd)" +]) + AC_DEFUN([AX_SCRIPT], [AC_CONFIG_FILES([scripts/$1], [chmod +x scripts/$1])]) AC_CONFIG_FILES([Makefile])