From 324c489b23cd914732d9e242d129fb9b244f99b2 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 27 Jan 2021 07:44:03 +0100 Subject: [PATCH] configure: use $ac_default_prefix as default install prefix Follow-up to 22d26c5 to avoid hard-coding and instead using the internal prefix variable, that can be changed/overridden by the correct APIs. Signed-off-by: Joachim Wiberg --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 19023b1..fcab1f2 100644 --- a/configure.ac +++ b/configure.ac @@ -94,7 +94,7 @@ AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemd" != "xno"]) # Expand $sbindir early, into $SBINDIR, for systemd unit file # NOTE: This does *not* take prefix/exec_prefix override at "make # install" into account, unfortunately. -test "x$prefix" = xNONE && prefix=/usr/local +test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' SBINDIR=`eval echo $sbindir` SBINDIR=`eval echo $SBINDIR`