Ian Kent a131fe
autofs-5.0.7 - Handle new location of systemd
Ian Kent a131fe
Ian Kent a131fe
From: Frederic Crozat <fcrozat@suse.com>
Ian Kent a131fe
Ian Kent a131fe
Some distributions are moving systemd unit files from /lib to
Ian Kent a131fe
/usr/lib, so we need to test both directories.
Ian Kent a131fe
Ian Kent a131fe
edit: imk
Ian Kent a131fe
It occurs to me I've forgotten to check for the 64 bit variants
Ian Kent a131fe
of the directories, so add them as well.
Ian Kent a131fe
end edit: imk
Ian Kent a131fe
---
Ian Kent a131fe
Ian Kent a131fe
 CHANGELOG  |    1 +
Ian Kent a131fe
 aclocal.m4 |    2 +-
Ian Kent a131fe
 configure  |    2 +-
Ian Kent a131fe
 3 files changed, 3 insertions(+), 2 deletions(-)
Ian Kent a131fe
Ian Kent a131fe
Ian Kent a131fe
diff --git a/CHANGELOG b/CHANGELOG
Ian Kent a131fe
index 3bdf8a4..8f6bb3a 100644
Ian Kent a131fe
--- a/CHANGELOG
Ian Kent a131fe
+++ b/CHANGELOG
Ian Kent a131fe
@@ -14,6 +14,7 @@
Ian Kent a131fe
 - allow non root user to check status.
Ian Kent a131fe
 - fix recursive mount deadlock.
Ian Kent a131fe
 - increase file map read buffer size.
Ian Kent a131fe
+- handle new location of systemd.
Ian Kent a131fe
 
Ian Kent a131fe
 25/07/2012 autofs-5.0.7
Ian Kent a131fe
 =======================
Ian Kent a131fe
diff --git a/aclocal.m4 b/aclocal.m4
Ian Kent a131fe
index 1798c8b..47bca0c 100644
Ian Kent a131fe
--- a/aclocal.m4
Ian Kent a131fe
+++ b/aclocal.m4
Ian Kent a131fe
@@ -234,7 +234,7 @@ AC_DEFUN([AF_WITH_SYSTEMD],
Ian Kent a131fe
 [if test "$withval" = yes; then
Ian Kent a131fe
   if test -z "$systemddir"; then
Ian Kent a131fe
     AC_MSG_CHECKING([location of the systemd unit files directory])
Ian Kent a131fe
-    for systemd_d in /lib/systemd/system; do
Ian Kent a131fe
+    for systemd_d in /usr/lib/systemd/system /usr/lib64/systemd/system /lib/systemd/system /lib64/systemd/system; do
Ian Kent a131fe
       if test -z "$systemddir"; then
Ian Kent a131fe
         if test -d "$systemd_d"; then
Ian Kent a131fe
           systemddir="$systemd_d"
Ian Kent a131fe
diff --git a/configure b/configure
Ian Kent a131fe
index ba3bba6..3722a46 100755
Ian Kent a131fe
--- a/configure
Ian Kent a131fe
+++ b/configure
Ian Kent a131fe
@@ -2157,7 +2157,7 @@ if test "${with_systemd+set}" = set; then :
Ian Kent a131fe
   if test -z "$systemddir"; then
Ian Kent a131fe
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of the systemd unit files directory" >&5
Ian Kent a131fe
 $as_echo_n "checking location of the systemd unit files directory... " >&6; }
Ian Kent a131fe
-    for systemd_d in /lib/systemd/system; do
Ian Kent a131fe
+    for systemd_d in /usr/lib/systemd/system /usr/lib64/systemd/system /lib/systemd/system /lib64/systemd/system; do
Ian Kent a131fe
       if test -z "$systemddir"; then
Ian Kent a131fe
         if test -d "$systemd_d"; then
Ian Kent a131fe
           systemddir="$systemd_d"