From 820fd4c7ce6ccc80272f45d6f64227567692dd39 Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Nov 09 2016 12:08:32 +0000 Subject: Build: respect --prefix for systemdsystemunitdir This makes easier to use --prefix with make install. https://fedorahosted.org/freeipa/ticket/6418 Reviewed-By: Martin Basti Reviewed-By: Christian Heimes --- diff --git a/configure.ac b/configure.ac index 134ee05..5e3dceb 100644 --- a/configure.ac +++ b/configure.ac @@ -245,9 +245,11 @@ dnl - Check for systemd unit directory dnl --------------------------------------------------------------------------- PKG_CHECK_EXISTS([systemd], [], [AC_MSG_ERROR([systemd not found])]) AC_ARG_WITH([systemdsystemunitdir], - AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), - [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) -AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) + AS_HELP_STRING([--with-systemdsystemunitdir=DIR], + [Directory for systemd service files]), + [systemdsystemunitdir=$with_systemdsystemunitdir], + [systemdsystemunitdir=$($PKG_CONFIG --define-variable=prefix='${prefix}' --variable=systemdsystemunitdir systemd)]) +AC_SUBST([systemdsystemunitdir]) dnl --------------------------------------------------------------------------- dnl - Check for program paths