summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac11
2 files changed, 11 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 3003129d..c8457c54 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
ACLOCAL_AMFLAGS = -I m4
-AM_DISTCHECK_CONFIGURE_FLAGS = --without-systemdsystemunitdir
+AM_DISTCHECK_CONFIGURE_FLAGS = \
+ --without-systemdsystemunitdir \
+ --enable-strict-locations
EXTRA_DIST = \
COPYING \
diff --git a/configure.ac b/configure.ac
index 8150aa59..68620e13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -292,9 +292,14 @@ CFLAGS="$save_CFLAGS"
AC_SUBST([moduledir], '${libdir}/xrdp')
-if test "x${prefix}" = "xNONE" ; then
-sysconfdir="/etc";
-localstatedir="/var";
+AC_ARG_ENABLE([strict-locations],
+ [AS_HELP_STRING([--enable-strict-locations],
+ [Use standard Autoconf install directories unless overridden
+ (default: use /etc and /var)])])
+
+if test "x$enable_strict_locations" != "xyes"; then
+ sysconfdir="/etc";
+ localstatedir="/var";
fi
PKG_INSTALLDIR