summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorsteelman <stlman@poczta.fm>2017-03-15 00:16:47 +0100
committerLuke Shumaker <lukeshu@lukeshu.com>2017-04-17 16:23:29 -0400
commit00c54bbbfe0cab442cd5fbaca199d5cafb0f01ad (patch)
treefa0a8dc54866088b46827c0e3550845274b4abc3 /configure.ac
parentd60c527009133a1ed3d69c14b8c837c790e78d10 (diff)
build-sys: make RPM macros installation path configurable (#5564)systemd/v233-3
--with-rpmmacrosdir=no disables installation of the macros.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3835413ad5..1b355dd660 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1571,6 +1571,12 @@ AC_ARG_WITH([pamconfdir],
AM_CONDITIONAL(ENABLE_PAM_CONFIG, [test "$with_pamconfdir" != "no"])
AX_NORMALIZE_PATH([with_pamconfdir])
+AC_ARG_WITH([rpmmacrosdir],
+ AS_HELP_STRING([--with-rpmmacrosdir=DIR], [directory to store macros for RPM]),
+ [], [with_rpmmacrosdir=\${prefix}/lib/rpm/macros.d])
+AM_CONDITIONAL(ENABLE_RPM_MACROS, [test "$with_rpmmacrosdir" != "no"])
+AX_NORMALIZE_PATH([with_rpmmacrosdir])
+
AC_ARG_ENABLE([split-usr],
AS_HELP_STRING([--enable-split-usr], [assume that /bin, /sbin aren't symlinks into /usr]),
[],
@@ -1641,6 +1647,7 @@ AC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
AC_SUBST([zshcompletiondir], [$with_zshcompletiondir])
AC_SUBST([pamlibdir], [$with_pamlibdir])
AC_SUBST([pamconfdir], [$with_pamconfdir])
+AC_SUBST([rpmmacrosdir], [$with_rpmmacrosdir])
AC_SUBST([rootprefix], [$with_rootprefix])
AC_SUBST([rootlibdir], [$with_rootlibdir])
@@ -1740,6 +1747,7 @@ AC_MSG_RESULT([
build Python: ${PYTHON}
PAM modules dir: ${with_pamlibdir}
PAM configuration dir: ${with_pamconfdir}
+ RPM macros dir: ${with_rpmmacrosdir}
D-Bus policy dir: ${with_dbuspolicydir}
D-Bus session dir: ${with_dbussessionservicedir}
D-Bus system dir: ${with_dbussystemservicedir}