From e061990fa9b04612c257c6feab94fb24c895802d Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 8 Aug 2019 12:24:32 +0200 Subject: [PATCH] build: Fix loading configuration file with default build args Fix incorrect configuration path when the sysconfdir is relative to the prefix argument: fprintd-WARNING **: 12:22:38.816: Could not open "${prefix}/etc/fprintd.conf": No such file or directory The path needs to be expanded before it's substituted. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 41804ae..e987e12 100644 --- a/configure.ac +++ b/configure.ac @@ -72,7 +72,8 @@ DBUS_SERVICES_DIR="$DATADIR/dbus-1/services" AC_SUBST(DBUS_SERVICES_DIR) AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for DBUS is]) -AC_DEFINE_UNQUOTED(SYSCONFDIR, "$sysconfdir", [Where the configuration file will be located]) +AS_AC_EXPAND(SYSCONFDIR, $sysconfdir) +AC_DEFINE_UNQUOTED(SYSCONFDIR, "$SYSCONFDIR", [Where the configuration file will be located]) GNOME_COMPILE_WARNINGS