Ian Kent ff0a25
autofs-5.1.4 - use systemd sd_notify() at startup
Ian Kent ff0a25
Ian Kent ff0a25
From: Ian Kent <ikent@redhat.com>
Ian Kent ff0a25
Ian Kent ff0a25
autofs needs to ensure statd is started before any NFS mounts
Ian Kent ff0a25
are attempted.
Ian Kent ff0a25
Ian Kent ff0a25
When starting the statd service with the autofs service the statd
Ian Kent ff0a25
service will trigger a restart of the autofs service during its
Ian Kent ff0a25
start up. Sometimes this can happen during the automount start up
Ian Kent ff0a25
itself.
Ian Kent ff0a25
Ian Kent ff0a25
When this happens it causes systemd to become confused and remove
Ian Kent ff0a25
the pid file created by automount leaving systemd thinking the
Ian Kent ff0a25
autofs service had failed start up when it was actually running.
Ian Kent ff0a25
Ian Kent ff0a25
It was recommened that autofs be changed to a "Type=notify" service
Ian Kent ff0a25
to avoid this. Using this a pid file is no longer needed and is now
Ian Kent ff0a25
not used.
Ian Kent ff0a25
Ian Kent ff0a25
Signed-off-by: Ian Kent <raven@themaw.net>
Ian Kent ff0a25
---
Ian Kent ff0a25
 CHANGELOG                 |    1 
Ian Kent ff0a25
 Makefile.conf.in          |    3 
Ian Kent ff0a25
 aclocal.m4                |    3 
Ian Kent ff0a25
 configure                 |  708 ++++++++++++++++++++++++++++------------------
Ian Kent ff0a25
 configure.in              |    8 
Ian Kent ff0a25
 daemon/Makefile           |    5 
Ian Kent ff0a25
 daemon/automount.c        |   83 +++--
Ian Kent ff0a25
 samples/autofs.service.in |    5 
Ian Kent ff0a25
 8 files changed, 514 insertions(+), 302 deletions(-)
Ian Kent ff0a25
Ian Kent ff0a25
--- autofs-5.1.4.orig/Makefile.conf.in
Ian Kent ff0a25
+++ autofs-5.1.4/Makefile.conf.in
Ian Kent ff0a25
@@ -18,6 +18,9 @@ LIBCLOCK_GETTIME = @LIBCLOCK_GETTIME@
Ian Kent ff0a25
 LIBNSL    = @LIBNSL@
Ian Kent ff0a25
 LIBRESOLV = @LIBRESOLV@
Ian Kent ff0a25
 
Ian Kent ff0a25
+SYSTEMD = @WITH_SYSTEMD@
Ian Kent ff0a25
+LIBSYSTEMD = @systemd_LIBS@
Ian Kent ff0a25
+
Ian Kent ff0a25
 # Hesiod support: yes (1) no (0)
Ian Kent ff0a25
 HESIOD = @HAVE_HESIOD@
Ian Kent ff0a25
 LIBHESIOD = @LIBHESIOD@
Ian Kent ff0a25
--- autofs-5.1.4.orig/aclocal.m4
Ian Kent ff0a25
+++ autofs-5.1.4/aclocal.m4
Ian Kent ff0a25
@@ -257,14 +257,17 @@ AC_DEFUN([AF_WITH_SYSTEMD],
Ian Kent ff0a25
       fi
Ian Kent ff0a25
     done
Ian Kent ff0a25
   fi
Ian Kent ff0a25
+  WITH_SYSTEMD=0
Ian Kent ff0a25
   if test -n "$systemddir"; then
Ian Kent ff0a25
     AC_MSG_RESULT($systemddir)
Ian Kent ff0a25
+    WITH_SYSTEMD=1
Ian Kent ff0a25
   else
Ian Kent ff0a25
     AC_MSG_RESULT(not found)
Ian Kent ff0a25
   fi
Ian Kent ff0a25
 else
Ian Kent ff0a25
  if test "$withval" != no; then
Ian Kent ff0a25
   systemddir=$withval
Ian Kent ff0a25
+  WITH_SYSTEMD=1
Ian Kent ff0a25
  fi
Ian Kent ff0a25
 fi])
Ian Kent ff0a25
 ])
Ian Kent ff0a25
--- autofs-5.1.4.orig/configure
Ian Kent ff0a25
+++ autofs-5.1.4/configure
Ian Kent ff0a25
@@ -672,6 +672,12 @@ MOUNT_NFS
Ian Kent ff0a25
 HAVE_MOUNT
Ian Kent ff0a25
 MOUNT
Ian Kent ff0a25
 DMALLOCLIB
Ian Kent ff0a25
+TIRPC_LIBS
Ian Kent ff0a25
+TIRPC_CFLAGS
Ian Kent ff0a25
+flagdir
Ian Kent ff0a25
+fifodir
Ian Kent ff0a25
+mapdir
Ian Kent ff0a25
+confdir
Ian Kent ff0a25
 OBJEXT
Ian Kent ff0a25
 EXEEXT
Ian Kent ff0a25
 ac_ct_CC
Ian Kent ff0a25
@@ -679,16 +685,13 @@ CPPFLAGS
Ian Kent ff0a25
 LDFLAGS
Ian Kent ff0a25
 CFLAGS
Ian Kent ff0a25
 CC
Ian Kent ff0a25
-TIRPC_LIBS
Ian Kent ff0a25
-TIRPC_CFLAGS
Ian Kent ff0a25
+systemd_LIBS
Ian Kent ff0a25
+systemd_CFLAGS
Ian Kent ff0a25
+WITH_SYSTEMD
Ian Kent ff0a25
+systemddir
Ian Kent ff0a25
 PKG_CONFIG_LIBDIR
Ian Kent ff0a25
 PKG_CONFIG_PATH
Ian Kent ff0a25
 PKG_CONFIG
Ian Kent ff0a25
-flagdir
Ian Kent ff0a25
-fifodir
Ian Kent ff0a25
-mapdir
Ian Kent ff0a25
-confdir
Ian Kent ff0a25
-systemddir
Ian Kent ff0a25
 piddir
Ian Kent ff0a25
 initdir
Ian Kent ff0a25
 target_alias
Ian Kent ff0a25
@@ -757,13 +760,15 @@ target_alias
Ian Kent ff0a25
 PKG_CONFIG
Ian Kent ff0a25
 PKG_CONFIG_PATH
Ian Kent ff0a25
 PKG_CONFIG_LIBDIR
Ian Kent ff0a25
-TIRPC_CFLAGS
Ian Kent ff0a25
-TIRPC_LIBS
Ian Kent ff0a25
+systemd_CFLAGS
Ian Kent ff0a25
+systemd_LIBS
Ian Kent ff0a25
 CC
Ian Kent ff0a25
 CFLAGS
Ian Kent ff0a25
 LDFLAGS
Ian Kent ff0a25
 LIBS
Ian Kent ff0a25
 CPPFLAGS
Ian Kent ff0a25
+TIRPC_CFLAGS
Ian Kent ff0a25
+TIRPC_LIBS
Ian Kent ff0a25
 CPP'
Ian Kent ff0a25
 
Ian Kent ff0a25
 
Ian Kent ff0a25
@@ -1407,9 +1412,10 @@ Some influential environment variables:
Ian Kent ff0a25
               directories to add to pkg-config's search path
Ian Kent ff0a25
   PKG_CONFIG_LIBDIR
Ian Kent ff0a25
               path overriding pkg-config's built-in search path
Ian Kent ff0a25
-  TIRPC_CFLAGS
Ian Kent ff0a25
-              C compiler flags for TIRPC, overriding pkg-config
Ian Kent ff0a25
-  TIRPC_LIBS  linker flags for TIRPC, overriding pkg-config
Ian Kent ff0a25
+  systemd_CFLAGS
Ian Kent ff0a25
+              C compiler flags for systemd, overriding pkg-config
Ian Kent ff0a25
+  systemd_LIBS
Ian Kent ff0a25
+              linker flags for systemd, overriding pkg-config
Ian Kent ff0a25
   CC          C compiler command
Ian Kent ff0a25
   CFLAGS      C compiler flags
Ian Kent ff0a25
   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
Ian Kent ff0a25
@@ -1417,6 +1423,9 @@ Some influential environment variables:
Ian Kent ff0a25
   LIBS        libraries to pass to the linker, e.g. -l<library>
Ian Kent ff0a25
   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Ian Kent ff0a25
               you have headers in a nonstandard directory <include dir>
Ian Kent ff0a25
+  TIRPC_CFLAGS
Ian Kent ff0a25
+              C compiler flags for TIRPC, overriding pkg-config
Ian Kent ff0a25
+  TIRPC_LIBS  linker flags for TIRPC, overriding pkg-config
Ian Kent ff0a25
   CPP         C preprocessor
Ian Kent ff0a25
 
Ian Kent ff0a25
 Use these variables to override the choices made by `configure' or to help
Ian Kent ff0a25
@@ -2283,166 +2292,6 @@ if test -z "$piddir"; then
Ian Kent ff0a25
 fi
Ian Kent ff0a25
 
Ian Kent ff0a25
 
Ian Kent ff0a25
-#
Ian Kent ff0a25
-# Check for systemd unit files direectory exists if unit file installation
Ian Kent ff0a25
-# is requested
Ian Kent ff0a25
-#
Ian Kent ff0a25
-
Ian Kent ff0a25
-# Check whether --with-systemd was given.
Ian Kent ff0a25
-if test "${with_systemd+set}" = set; then :
Ian Kent ff0a25
-  withval=$with_systemd; if test "$withval" = yes; then
Ian Kent ff0a25
-  if test -z "$systemddir"; then
Ian Kent ff0a25
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of the systemd unit files directory" >&5
Ian Kent ff0a25
-$as_echo_n "checking location of the systemd unit files directory... " >&6; }
Ian Kent ff0a25
-    for systemd_d in /usr/lib/systemd/system /usr/lib64/systemd/system /lib/systemd/system /lib64/systemd/system; do
Ian Kent ff0a25
-      if test -z "$systemddir"; then
Ian Kent ff0a25
-        if test -d "$systemd_d"; then
Ian Kent ff0a25
-          systemddir="$systemd_d"
Ian Kent ff0a25
-        fi
Ian Kent ff0a25
-      fi
Ian Kent ff0a25
-    done
Ian Kent ff0a25
-  fi
Ian Kent ff0a25
-  if test -n "$systemddir"; then
Ian Kent ff0a25
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $systemddir" >&5
Ian Kent ff0a25
-$as_echo "$systemddir" >&6; }
Ian Kent ff0a25
-  else
Ian Kent ff0a25
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Ian Kent ff0a25
-$as_echo "not found" >&6; }
Ian Kent ff0a25
-  fi
Ian Kent ff0a25
-else
Ian Kent ff0a25
- if test "$withval" != no; then
Ian Kent ff0a25
-  systemddir=$withval
Ian Kent ff0a25
- fi
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-#
Ian Kent ff0a25
-# Location of system config script directory?
Ian Kent ff0a25
-#
Ian Kent ff0a25
-if test -z "$confdir"; then
Ian Kent ff0a25
-  for conf_d in /etc/sysconfig /etc/defaults /etc/conf.d /etc/default; do
Ian Kent ff0a25
-    if test -z "$confdir"; then
Ian Kent ff0a25
-      if test -d "$conf_d"; then
Ian Kent ff0a25
-	confdir="$conf_d"
Ian Kent ff0a25
-      fi
Ian Kent ff0a25
-    fi
Ian Kent ff0a25
-  done
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-# Check whether --with-confdir was given.
Ian Kent ff0a25
-if test "${with_confdir+set}" = set; then :
Ian Kent ff0a25
-  withval=$with_confdir; if test -z "$withval" -o "$withval" = "yes" -o "$withval" = "no"
Ian Kent ff0a25
-	then
Ian Kent ff0a25
-		:
Ian Kent ff0a25
-	else
Ian Kent ff0a25
-		confdir="${withval}"
Ian Kent ff0a25
-	fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autofs configuration file directory" >&5
Ian Kent ff0a25
-$as_echo_n "checking for autofs configuration file directory... " >&6; }
Ian Kent ff0a25
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $confdir" >&5
Ian Kent ff0a25
-$as_echo "$confdir" >&6; }
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-#
Ian Kent ff0a25
-# The user can specify --with-mapsdir=PATH to specify autofs maps go
Ian Kent ff0a25
-#
Ian Kent ff0a25
-if test -z "$mapdir"; then
Ian Kent ff0a25
-  for map_d in /etc/autofs /etc; do
Ian Kent ff0a25
-    if test -z "$mapdir"; then
Ian Kent ff0a25
-      if test -d "$map_d"; then
Ian Kent ff0a25
-	mapdir="$map_d"
Ian Kent ff0a25
-      fi
Ian Kent ff0a25
-    fi
Ian Kent ff0a25
-  done
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-# Check whether --with-mapdir was given.
Ian Kent ff0a25
-if test "${with_mapdir+set}" = set; then :
Ian Kent ff0a25
-  withval=$with_mapdir; if test -z "$withval" -o "$withval" = "yes" -o "$withval" = "no"
Ian Kent ff0a25
-	then
Ian Kent ff0a25
-		:
Ian Kent ff0a25
-	else
Ian Kent ff0a25
-		mapdir="${withval}"
Ian Kent ff0a25
-	fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autofs maps directory" >&5
Ian Kent ff0a25
-$as_echo_n "checking for autofs maps directory... " >&6; }
Ian Kent ff0a25
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mapdir" >&5
Ian Kent ff0a25
-$as_echo "$mapdir" >&6; }
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-#
Ian Kent ff0a25
-# The user can specify --with-fifodir=PATH to specify where autofs fifos go
Ian Kent ff0a25
-#
Ian Kent ff0a25
-if test -z "$fifodir"; then
Ian Kent ff0a25
-  for fifo_d in /run /var/run /tmp; do
Ian Kent ff0a25
-    if test -z "$fifodir"; then
Ian Kent ff0a25
-      if test -d "$fifo_d"; then
Ian Kent ff0a25
-        fifodir="$fifo_d"
Ian Kent ff0a25
-      fi
Ian Kent ff0a25
-    fi
Ian Kent ff0a25
-  done
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-# Check whether --with-fifodir was given.
Ian Kent ff0a25
-if test "${with_fifodir+set}" = set; then :
Ian Kent ff0a25
-  withval=$with_fifodir; if test -z "$withval" -o "$withval" = "yes" -o "$withval" = "no"
Ian Kent ff0a25
-	then
Ian Kent ff0a25
-		:
Ian Kent ff0a25
-	else
Ian Kent ff0a25
-		fifodir="${withval}"
Ian Kent ff0a25
-	fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autofs fifos directory" >&5
Ian Kent ff0a25
-$as_echo_n "checking for autofs fifos directory... " >&6; }
Ian Kent ff0a25
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fifodir" >&5
Ian Kent ff0a25
-$as_echo "$fifodir" >&6; }
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-#
Ian Kent ff0a25
-# The user can specify --with-flagdir=PATH to specify where autofs flag file goes
Ian Kent ff0a25
-#
Ian Kent ff0a25
-if test -z "$flagdir"; then
Ian Kent ff0a25
-  for flag_d in /run /var/run /tmp; do
Ian Kent ff0a25
-    if test -z "$flagdir"; then
Ian Kent ff0a25
-      if test -d "$flag_d"; then
Ian Kent ff0a25
-        flagdir="$flag_d"
Ian Kent ff0a25
-      fi
Ian Kent ff0a25
-    fi
Ian Kent ff0a25
-  done
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-# Check whether --with-flagdir was given.
Ian Kent ff0a25
-if test "${with_flagdir+set}" = set; then :
Ian Kent ff0a25
-  withval=$with_flagdir; if test -z "$withval" -o "$withval" = "yes" -o "$withval" = "no"
Ian Kent ff0a25
-	then
Ian Kent ff0a25
-		:
Ian Kent ff0a25
-	else
Ian Kent ff0a25
-		flagdir="${withval}"
Ian Kent ff0a25
-	fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autofs flag file directory" >&5
Ian Kent ff0a25
-$as_echo_n "checking for autofs flag file directory... " >&6; }
Ian Kent ff0a25
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flagdir" >&5
Ian Kent ff0a25
-$as_echo "$flagdir" >&6; }
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-#
Ian Kent ff0a25
-# Use libtirpc
Ian Kent ff0a25
-#
Ian Kent ff0a25
-
Ian Kent ff0a25
 
Ian Kent ff0a25
 
Ian Kent ff0a25
 
Ian Kent ff0a25
@@ -2563,111 +2412,46 @@ $as_echo "no" >&6; }
Ian Kent ff0a25
 	fi
Ian Kent ff0a25
 fi
Ian Kent ff0a25
 
Ian Kent ff0a25
-# Check whether --with-libtirpc was given.
Ian Kent ff0a25
-if test "${with_libtirpc+set}" = set; then :
Ian Kent ff0a25
-  withval=$with_libtirpc;
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-
Ian Kent ff0a25
-if test "x$with_libtirpc" = "xyes"; then
Ian Kent ff0a25
-
Ian Kent ff0a25
-pkg_failed=no
Ian Kent ff0a25
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIRPC" >&5
Ian Kent ff0a25
-$as_echo_n "checking for TIRPC... " >&6; }
Ian Kent ff0a25
+#
Ian Kent ff0a25
+# Check for systemd unit files direectory exists if unit file installation
Ian Kent ff0a25
+# is requested
Ian Kent ff0a25
+#
Ian Kent ff0a25
 
Ian Kent ff0a25
-if test -n "$TIRPC_CFLAGS"; then
Ian Kent ff0a25
-    pkg_cv_TIRPC_CFLAGS="$TIRPC_CFLAGS"
Ian Kent ff0a25
- elif test -n "$PKG_CONFIG"; then
Ian Kent ff0a25
-    if test -n "$PKG_CONFIG" && \
Ian Kent ff0a25
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
Ian Kent ff0a25
-  ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
Ian Kent ff0a25
-  ac_status=$?
Ian Kent ff0a25
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Ian Kent ff0a25
-  test $ac_status = 0; }; then
Ian Kent ff0a25
-  pkg_cv_TIRPC_CFLAGS=`$PKG_CONFIG --cflags "libtirpc" 2>/dev/null`
Ian Kent ff0a25
-		      test "x$?" != "x0" && pkg_failed=yes
Ian Kent ff0a25
-else
Ian Kent ff0a25
-  pkg_failed=yes
Ian Kent ff0a25
-fi
Ian Kent ff0a25
- else
Ian Kent ff0a25
-    pkg_failed=untried
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-if test -n "$TIRPC_LIBS"; then
Ian Kent ff0a25
-    pkg_cv_TIRPC_LIBS="$TIRPC_LIBS"
Ian Kent ff0a25
- elif test -n "$PKG_CONFIG"; then
Ian Kent ff0a25
-    if test -n "$PKG_CONFIG" && \
Ian Kent ff0a25
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
Ian Kent ff0a25
-  ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
Ian Kent ff0a25
-  ac_status=$?
Ian Kent ff0a25
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Ian Kent ff0a25
-  test $ac_status = 0; }; then
Ian Kent ff0a25
-  pkg_cv_TIRPC_LIBS=`$PKG_CONFIG --libs "libtirpc" 2>/dev/null`
Ian Kent ff0a25
-		      test "x$?" != "x0" && pkg_failed=yes
Ian Kent ff0a25
+# Check whether --with-systemd was given.
Ian Kent ff0a25
+if test "${with_systemd+set}" = set; then :
Ian Kent ff0a25
+  withval=$with_systemd; if test "$withval" = yes; then
Ian Kent ff0a25
+  if test -z "$systemddir"; then
Ian Kent ff0a25
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of the systemd unit files directory" >&5
Ian Kent ff0a25
+$as_echo_n "checking location of the systemd unit files directory... " >&6; }
Ian Kent ff0a25
+    for systemd_d in /usr/lib/systemd/system /usr/lib64/systemd/system /lib/systemd/system /lib64/systemd/system; do
Ian Kent ff0a25
+      if test -z "$systemddir"; then
Ian Kent ff0a25
+        if test -d "$systemd_d"; then
Ian Kent ff0a25
+          systemddir="$systemd_d"
Ian Kent ff0a25
+        fi
Ian Kent ff0a25
+      fi
Ian Kent ff0a25
+    done
Ian Kent ff0a25
+  fi
Ian Kent ff0a25
+  WITH_SYSTEMD=0
Ian Kent ff0a25
+  if test -n "$systemddir"; then
Ian Kent ff0a25
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $systemddir" >&5
Ian Kent ff0a25
+$as_echo "$systemddir" >&6; }
Ian Kent ff0a25
+    WITH_SYSTEMD=1
Ian Kent ff0a25
+  else
Ian Kent ff0a25
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Ian Kent ff0a25
+$as_echo "not found" >&6; }
Ian Kent ff0a25
+  fi
Ian Kent ff0a25
 else
Ian Kent ff0a25
-  pkg_failed=yes
Ian Kent ff0a25
+ if test "$withval" != no; then
Ian Kent ff0a25
+  systemddir=$withval
Ian Kent ff0a25
+  WITH_SYSTEMD=1
Ian Kent ff0a25
+ fi
Ian Kent ff0a25
 fi
Ian Kent ff0a25
- else
Ian Kent ff0a25
-    pkg_failed=untried
Ian Kent ff0a25
 fi
Ian Kent ff0a25
 
Ian Kent ff0a25
 
Ian Kent ff0a25
 
Ian Kent ff0a25
-if test $pkg_failed = yes; then
Ian Kent ff0a25
-   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ian Kent ff0a25
-$as_echo "no" >&6; }
Ian Kent ff0a25
 
Ian Kent ff0a25
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Ian Kent ff0a25
-        _pkg_short_errors_supported=yes
Ian Kent ff0a25
-else
Ian Kent ff0a25
-        _pkg_short_errors_supported=no
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-        if test $_pkg_short_errors_supported = yes; then
Ian Kent ff0a25
-	        TIRPC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtirpc" 2>&1`
Ian Kent ff0a25
-        else
Ian Kent ff0a25
-	        TIRPC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtirpc" 2>&1`
Ian Kent ff0a25
-        fi
Ian Kent ff0a25
-	# Put the nasty error message in config.log where it belongs
Ian Kent ff0a25
-	echo "$TIRPC_PKG_ERRORS" >&5
Ian Kent ff0a25
-
Ian Kent ff0a25
-	as_fn_error $? "Package requirements (libtirpc) were not met:
Ian Kent ff0a25
-
Ian Kent ff0a25
-$TIRPC_PKG_ERRORS
Ian Kent ff0a25
-
Ian Kent ff0a25
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
Ian Kent ff0a25
-installed software in a non-standard prefix.
Ian Kent ff0a25
-
Ian Kent ff0a25
-Alternatively, you may set the environment variables TIRPC_CFLAGS
Ian Kent ff0a25
-and TIRPC_LIBS to avoid the need to call pkg-config.
Ian Kent ff0a25
-See the pkg-config man page for more details." "$LINENO" 5
Ian Kent ff0a25
-elif test $pkg_failed = untried; then
Ian Kent ff0a25
-     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ian Kent ff0a25
-$as_echo "no" >&6; }
Ian Kent ff0a25
-	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Ian Kent ff0a25
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ian Kent ff0a25
-as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
Ian Kent ff0a25
-is in your PATH or set the PKG_CONFIG environment variable to the full
Ian Kent ff0a25
-path to pkg-config.
Ian Kent ff0a25
-
Ian Kent ff0a25
-Alternatively, you may set the environment variables TIRPC_CFLAGS
Ian Kent ff0a25
-and TIRPC_LIBS to avoid the need to call pkg-config.
Ian Kent ff0a25
-See the pkg-config man page for more details.
Ian Kent ff0a25
-
Ian Kent ff0a25
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Ian Kent ff0a25
-See \`config.log' for more details" "$LINENO" 5; }
Ian Kent ff0a25
-else
Ian Kent ff0a25
-	TIRPC_CFLAGS=$pkg_cv_TIRPC_CFLAGS
Ian Kent ff0a25
-	TIRPC_LIBS=$pkg_cv_TIRPC_LIBS
Ian Kent ff0a25
-        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ian Kent ff0a25
-$as_echo "yes" >&6; }
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-$as_echo "#define WITH_LIBTIRPC 1" >>confdefs.h
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-$as_echo "#define TIRPC_WORKAROUND 1" >>confdefs.h
Ian Kent ff0a25
-
Ian Kent ff0a25
-
Ian Kent ff0a25
-fi
Ian Kent ff0a25
-  ac_ext=c
Ian Kent ff0a25
+ac_ext=c
Ian Kent ff0a25
 ac_cpp='$CPP $CPPFLAGS'
Ian Kent ff0a25
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Ian Kent ff0a25
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
Ian Kent ff0a25
@@ -3457,7 +3241,391 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
Ian Kent ff0a25
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
Ian Kent ff0a25
 
Ian Kent ff0a25
 
Ian Kent ff0a25
-for ac_func in getrpcbyname getservbyname
Ian Kent ff0a25
+
Ian Kent ff0a25
+pkg_failed=no
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
Ian Kent ff0a25
+$as_echo_n "checking for systemd... " >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+if test -n "$systemd_CFLAGS"; then
Ian Kent ff0a25
+    pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
Ian Kent ff0a25
+ elif test -n "$PKG_CONFIG"; then
Ian Kent ff0a25
+    if test -n "$PKG_CONFIG" && \
Ian Kent ff0a25
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
Ian Kent ff0a25
+  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
Ian Kent ff0a25
+  ac_status=$?
Ian Kent ff0a25
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Ian Kent ff0a25
+  test $ac_status = 0; }; then
Ian Kent ff0a25
+  pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
Ian Kent ff0a25
+		      test "x$?" != "x0" && pkg_failed=yes
Ian Kent ff0a25
+else
Ian Kent ff0a25
+  pkg_failed=yes
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+ else
Ian Kent ff0a25
+    pkg_failed=untried
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+if test -n "$systemd_LIBS"; then
Ian Kent ff0a25
+    pkg_cv_systemd_LIBS="$systemd_LIBS"
Ian Kent ff0a25
+ elif test -n "$PKG_CONFIG"; then
Ian Kent ff0a25
+    if test -n "$PKG_CONFIG" && \
Ian Kent ff0a25
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
Ian Kent ff0a25
+  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
Ian Kent ff0a25
+  ac_status=$?
Ian Kent ff0a25
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Ian Kent ff0a25
+  test $ac_status = 0; }; then
Ian Kent ff0a25
+  pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
Ian Kent ff0a25
+		      test "x$?" != "x0" && pkg_failed=yes
Ian Kent ff0a25
+else
Ian Kent ff0a25
+  pkg_failed=yes
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+ else
Ian Kent ff0a25
+    pkg_failed=untried
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+if test $pkg_failed = yes; then
Ian Kent ff0a25
+   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ian Kent ff0a25
+$as_echo "no" >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Ian Kent ff0a25
+        _pkg_short_errors_supported=yes
Ian Kent ff0a25
+else
Ian Kent ff0a25
+        _pkg_short_errors_supported=no
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+        if test $_pkg_short_errors_supported = yes; then
Ian Kent ff0a25
+	        systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
Ian Kent ff0a25
+        else
Ian Kent ff0a25
+	        systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
Ian Kent ff0a25
+        fi
Ian Kent ff0a25
+	# Put the nasty error message in config.log where it belongs
Ian Kent ff0a25
+	echo "$systemd_PKG_ERRORS" >&5
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sm_notify in -lsystemd" >&5
Ian Kent ff0a25
+$as_echo_n "checking for sm_notify in -lsystemd... " >&6; }
Ian Kent ff0a25
+if ${ac_cv_lib_systemd_sm_notify+:} false; then :
Ian Kent ff0a25
+  $as_echo_n "(cached) " >&6
Ian Kent ff0a25
+else
Ian Kent ff0a25
+  ac_check_lib_save_LIBS=$LIBS
Ian Kent ff0a25
+LIBS="-lsystemd  $LIBS"
Ian Kent ff0a25
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ian Kent ff0a25
+/* end confdefs.h.  */
Ian Kent ff0a25
+
Ian Kent ff0a25
+/* Override any GCC internal prototype to avoid an error.
Ian Kent ff0a25
+   Use char because int might match the return type of a GCC
Ian Kent ff0a25
+   builtin and then its argument prototype would still apply.  */
Ian Kent ff0a25
+#ifdef __cplusplus
Ian Kent ff0a25
+extern "C"
Ian Kent ff0a25
+#endif
Ian Kent ff0a25
+char sm_notify ();
Ian Kent ff0a25
+int
Ian Kent ff0a25
+main ()
Ian Kent ff0a25
+{
Ian Kent ff0a25
+return sm_notify ();
Ian Kent ff0a25
+  ;
Ian Kent ff0a25
+  return 0;
Ian Kent ff0a25
+}
Ian Kent ff0a25
+_ACEOF
Ian Kent ff0a25
+if ac_fn_c_try_link "$LINENO"; then :
Ian Kent ff0a25
+  ac_cv_lib_systemd_sm_notify=yes
Ian Kent ff0a25
+else
Ian Kent ff0a25
+  ac_cv_lib_systemd_sm_notify=no
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+rm -f core conftest.err conftest.$ac_objext \
Ian Kent ff0a25
+    conftest$ac_exeext conftest.$ac_ext
Ian Kent ff0a25
+LIBS=$ac_check_lib_save_LIBS
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sm_notify" >&5
Ian Kent ff0a25
+$as_echo "$ac_cv_lib_systemd_sm_notify" >&6; }
Ian Kent ff0a25
+if test "x$ac_cv_lib_systemd_sm_notify" = xyes; then :
Ian Kent ff0a25
+  systemd_LIBS="-lsystemd"
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+elif test $pkg_failed = untried; then
Ian Kent ff0a25
+     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ian Kent ff0a25
+$as_echo "no" >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sm_notify in -lsystemd" >&5
Ian Kent ff0a25
+$as_echo_n "checking for sm_notify in -lsystemd... " >&6; }
Ian Kent ff0a25
+if ${ac_cv_lib_systemd_sm_notify+:} false; then :
Ian Kent ff0a25
+  $as_echo_n "(cached) " >&6
Ian Kent ff0a25
+else
Ian Kent ff0a25
+  ac_check_lib_save_LIBS=$LIBS
Ian Kent ff0a25
+LIBS="-lsystemd  $LIBS"
Ian Kent ff0a25
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ian Kent ff0a25
+/* end confdefs.h.  */
Ian Kent ff0a25
+
Ian Kent ff0a25
+/* Override any GCC internal prototype to avoid an error.
Ian Kent ff0a25
+   Use char because int might match the return type of a GCC
Ian Kent ff0a25
+   builtin and then its argument prototype would still apply.  */
Ian Kent ff0a25
+#ifdef __cplusplus
Ian Kent ff0a25
+extern "C"
Ian Kent ff0a25
+#endif
Ian Kent ff0a25
+char sm_notify ();
Ian Kent ff0a25
+int
Ian Kent ff0a25
+main ()
Ian Kent ff0a25
+{
Ian Kent ff0a25
+return sm_notify ();
Ian Kent ff0a25
+  ;
Ian Kent ff0a25
+  return 0;
Ian Kent ff0a25
+}
Ian Kent ff0a25
+_ACEOF
Ian Kent ff0a25
+if ac_fn_c_try_link "$LINENO"; then :
Ian Kent ff0a25
+  ac_cv_lib_systemd_sm_notify=yes
Ian Kent ff0a25
+else
Ian Kent ff0a25
+  ac_cv_lib_systemd_sm_notify=no
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+rm -f core conftest.err conftest.$ac_objext \
Ian Kent ff0a25
+    conftest$ac_exeext conftest.$ac_ext
Ian Kent ff0a25
+LIBS=$ac_check_lib_save_LIBS
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sm_notify" >&5
Ian Kent ff0a25
+$as_echo "$ac_cv_lib_systemd_sm_notify" >&6; }
Ian Kent ff0a25
+if test "x$ac_cv_lib_systemd_sm_notify" = xyes; then :
Ian Kent ff0a25
+  systemd_LIBS="-lsystemd"
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+else
Ian Kent ff0a25
+	systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
Ian Kent ff0a25
+	systemd_LIBS=$pkg_cv_systemd_LIBS
Ian Kent ff0a25
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ian Kent ff0a25
+$as_echo "yes" >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+#
Ian Kent ff0a25
+# Location of system config script directory?
Ian Kent ff0a25
+#
Ian Kent ff0a25
+if test -z "$confdir"; then
Ian Kent ff0a25
+  for conf_d in /etc/sysconfig /etc/defaults /etc/conf.d /etc/default; do
Ian Kent ff0a25
+    if test -z "$confdir"; then
Ian Kent ff0a25
+      if test -d "$conf_d"; then
Ian Kent ff0a25
+	confdir="$conf_d"
Ian Kent ff0a25
+      fi
Ian Kent ff0a25
+    fi
Ian Kent ff0a25
+  done
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+# Check whether --with-confdir was given.
Ian Kent ff0a25
+if test "${with_confdir+set}" = set; then :
Ian Kent ff0a25
+  withval=$with_confdir; if test -z "$withval" -o "$withval" = "yes" -o "$withval" = "no"
Ian Kent ff0a25
+	then
Ian Kent ff0a25
+		:
Ian Kent ff0a25
+	else
Ian Kent ff0a25
+		confdir="${withval}"
Ian Kent ff0a25
+	fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autofs configuration file directory" >&5
Ian Kent ff0a25
+$as_echo_n "checking for autofs configuration file directory... " >&6; }
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $confdir" >&5
Ian Kent ff0a25
+$as_echo "$confdir" >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+#
Ian Kent ff0a25
+# The user can specify --with-mapsdir=PATH to specify autofs maps go
Ian Kent ff0a25
+#
Ian Kent ff0a25
+if test -z "$mapdir"; then
Ian Kent ff0a25
+  for map_d in /etc/autofs /etc; do
Ian Kent ff0a25
+    if test -z "$mapdir"; then
Ian Kent ff0a25
+      if test -d "$map_d"; then
Ian Kent ff0a25
+	mapdir="$map_d"
Ian Kent ff0a25
+      fi
Ian Kent ff0a25
+    fi
Ian Kent ff0a25
+  done
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+# Check whether --with-mapdir was given.
Ian Kent ff0a25
+if test "${with_mapdir+set}" = set; then :
Ian Kent ff0a25
+  withval=$with_mapdir; if test -z "$withval" -o "$withval" = "yes" -o "$withval" = "no"
Ian Kent ff0a25
+	then
Ian Kent ff0a25
+		:
Ian Kent ff0a25
+	else
Ian Kent ff0a25
+		mapdir="${withval}"
Ian Kent ff0a25
+	fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autofs maps directory" >&5
Ian Kent ff0a25
+$as_echo_n "checking for autofs maps directory... " >&6; }
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mapdir" >&5
Ian Kent ff0a25
+$as_echo "$mapdir" >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+#
Ian Kent ff0a25
+# The user can specify --with-fifodir=PATH to specify where autofs fifos go
Ian Kent ff0a25
+#
Ian Kent ff0a25
+if test -z "$fifodir"; then
Ian Kent ff0a25
+  for fifo_d in /run /var/run /tmp; do
Ian Kent ff0a25
+    if test -z "$fifodir"; then
Ian Kent ff0a25
+      if test -d "$fifo_d"; then
Ian Kent ff0a25
+        fifodir="$fifo_d"
Ian Kent ff0a25
+      fi
Ian Kent ff0a25
+    fi
Ian Kent ff0a25
+  done
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+# Check whether --with-fifodir was given.
Ian Kent ff0a25
+if test "${with_fifodir+set}" = set; then :
Ian Kent ff0a25
+  withval=$with_fifodir; if test -z "$withval" -o "$withval" = "yes" -o "$withval" = "no"
Ian Kent ff0a25
+	then
Ian Kent ff0a25
+		:
Ian Kent ff0a25
+	else
Ian Kent ff0a25
+		fifodir="${withval}"
Ian Kent ff0a25
+	fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autofs fifos directory" >&5
Ian Kent ff0a25
+$as_echo_n "checking for autofs fifos directory... " >&6; }
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fifodir" >&5
Ian Kent ff0a25
+$as_echo "$fifodir" >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+#
Ian Kent ff0a25
+# The user can specify --with-flagdir=PATH to specify where autofs flag file goes
Ian Kent ff0a25
+#
Ian Kent ff0a25
+if test -z "$flagdir"; then
Ian Kent ff0a25
+  for flag_d in /run /var/run /tmp; do
Ian Kent ff0a25
+    if test -z "$flagdir"; then
Ian Kent ff0a25
+      if test -d "$flag_d"; then
Ian Kent ff0a25
+        flagdir="$flag_d"
Ian Kent ff0a25
+      fi
Ian Kent ff0a25
+    fi
Ian Kent ff0a25
+  done
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+# Check whether --with-flagdir was given.
Ian Kent ff0a25
+if test "${with_flagdir+set}" = set; then :
Ian Kent ff0a25
+  withval=$with_flagdir; if test -z "$withval" -o "$withval" = "yes" -o "$withval" = "no"
Ian Kent ff0a25
+	then
Ian Kent ff0a25
+		:
Ian Kent ff0a25
+	else
Ian Kent ff0a25
+		flagdir="${withval}"
Ian Kent ff0a25
+	fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autofs flag file directory" >&5
Ian Kent ff0a25
+$as_echo_n "checking for autofs flag file directory... " >&6; }
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flagdir" >&5
Ian Kent ff0a25
+$as_echo "$flagdir" >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+#
Ian Kent ff0a25
+# Use libtirpc
Ian Kent ff0a25
+#
Ian Kent ff0a25
+
Ian Kent ff0a25
+# Check whether --with-libtirpc was given.
Ian Kent ff0a25
+if test "${with_libtirpc+set}" = set; then :
Ian Kent ff0a25
+  withval=$with_libtirpc;
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+if test "x$with_libtirpc" = "xyes"; then
Ian Kent ff0a25
+
Ian Kent ff0a25
+pkg_failed=no
Ian Kent ff0a25
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIRPC" >&5
Ian Kent ff0a25
+$as_echo_n "checking for TIRPC... " >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+if test -n "$TIRPC_CFLAGS"; then
Ian Kent ff0a25
+    pkg_cv_TIRPC_CFLAGS="$TIRPC_CFLAGS"
Ian Kent ff0a25
+ elif test -n "$PKG_CONFIG"; then
Ian Kent ff0a25
+    if test -n "$PKG_CONFIG" && \
Ian Kent ff0a25
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
Ian Kent ff0a25
+  ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
Ian Kent ff0a25
+  ac_status=$?
Ian Kent ff0a25
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Ian Kent ff0a25
+  test $ac_status = 0; }; then
Ian Kent ff0a25
+  pkg_cv_TIRPC_CFLAGS=`$PKG_CONFIG --cflags "libtirpc" 2>/dev/null`
Ian Kent ff0a25
+		      test "x$?" != "x0" && pkg_failed=yes
Ian Kent ff0a25
+else
Ian Kent ff0a25
+  pkg_failed=yes
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+ else
Ian Kent ff0a25
+    pkg_failed=untried
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+if test -n "$TIRPC_LIBS"; then
Ian Kent ff0a25
+    pkg_cv_TIRPC_LIBS="$TIRPC_LIBS"
Ian Kent ff0a25
+ elif test -n "$PKG_CONFIG"; then
Ian Kent ff0a25
+    if test -n "$PKG_CONFIG" && \
Ian Kent ff0a25
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
Ian Kent ff0a25
+  ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
Ian Kent ff0a25
+  ac_status=$?
Ian Kent ff0a25
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Ian Kent ff0a25
+  test $ac_status = 0; }; then
Ian Kent ff0a25
+  pkg_cv_TIRPC_LIBS=`$PKG_CONFIG --libs "libtirpc" 2>/dev/null`
Ian Kent ff0a25
+		      test "x$?" != "x0" && pkg_failed=yes
Ian Kent ff0a25
+else
Ian Kent ff0a25
+  pkg_failed=yes
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+ else
Ian Kent ff0a25
+    pkg_failed=untried
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+if test $pkg_failed = yes; then
Ian Kent ff0a25
+   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ian Kent ff0a25
+$as_echo "no" >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Ian Kent ff0a25
+        _pkg_short_errors_supported=yes
Ian Kent ff0a25
+else
Ian Kent ff0a25
+        _pkg_short_errors_supported=no
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+        if test $_pkg_short_errors_supported = yes; then
Ian Kent ff0a25
+	        TIRPC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtirpc" 2>&1`
Ian Kent ff0a25
+        else
Ian Kent ff0a25
+	        TIRPC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtirpc" 2>&1`
Ian Kent ff0a25
+        fi
Ian Kent ff0a25
+	# Put the nasty error message in config.log where it belongs
Ian Kent ff0a25
+	echo "$TIRPC_PKG_ERRORS" >&5
Ian Kent ff0a25
+
Ian Kent ff0a25
+	as_fn_error $? "Package requirements (libtirpc) were not met:
Ian Kent ff0a25
+
Ian Kent ff0a25
+$TIRPC_PKG_ERRORS
Ian Kent ff0a25
+
Ian Kent ff0a25
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
Ian Kent ff0a25
+installed software in a non-standard prefix.
Ian Kent ff0a25
+
Ian Kent ff0a25
+Alternatively, you may set the environment variables TIRPC_CFLAGS
Ian Kent ff0a25
+and TIRPC_LIBS to avoid the need to call pkg-config.
Ian Kent ff0a25
+See the pkg-config man page for more details." "$LINENO" 5
Ian Kent ff0a25
+elif test $pkg_failed = untried; then
Ian Kent ff0a25
+     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ian Kent ff0a25
+$as_echo "no" >&6; }
Ian Kent ff0a25
+	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Ian Kent ff0a25
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ian Kent ff0a25
+as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
Ian Kent ff0a25
+is in your PATH or set the PKG_CONFIG environment variable to the full
Ian Kent ff0a25
+path to pkg-config.
Ian Kent ff0a25
+
Ian Kent ff0a25
+Alternatively, you may set the environment variables TIRPC_CFLAGS
Ian Kent ff0a25
+and TIRPC_LIBS to avoid the need to call pkg-config.
Ian Kent ff0a25
+See the pkg-config man page for more details.
Ian Kent ff0a25
+
Ian Kent ff0a25
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Ian Kent ff0a25
+See \`config.log' for more details" "$LINENO" 5; }
Ian Kent ff0a25
+else
Ian Kent ff0a25
+	TIRPC_CFLAGS=$pkg_cv_TIRPC_CFLAGS
Ian Kent ff0a25
+	TIRPC_LIBS=$pkg_cv_TIRPC_LIBS
Ian Kent ff0a25
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ian Kent ff0a25
+$as_echo "yes" >&6; }
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+$as_echo "#define WITH_LIBTIRPC 1" >>confdefs.h
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+$as_echo "#define TIRPC_WORKAROUND 1" >>confdefs.h
Ian Kent ff0a25
+
Ian Kent ff0a25
+
Ian Kent ff0a25
+fi
Ian Kent ff0a25
+  for ac_func in getrpcbyname getservbyname
Ian Kent ff0a25
 do :
Ian Kent ff0a25
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Ian Kent ff0a25
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ian Kent ff0a25
--- autofs-5.1.4.orig/configure.in
Ian Kent ff0a25
+++ autofs-5.1.4/configure.in
Ian Kent ff0a25
@@ -48,6 +48,7 @@ AF_INIT_D()
Ian Kent ff0a25
 AC_SUBST(initdir)
Ian Kent ff0a25
 AF_PID_D()
Ian Kent ff0a25
 AC_SUBST(piddir)
Ian Kent ff0a25
+PKG_PROG_PKG_CONFIG()
Ian Kent ff0a25
 
Ian Kent ff0a25
 #
Ian Kent ff0a25
 # Check for systemd unit files direectory exists if unit file installation
Ian Kent ff0a25
@@ -55,6 +56,12 @@ AC_SUBST(piddir)
Ian Kent ff0a25
 #
Ian Kent ff0a25
 AF_WITH_SYSTEMD()
Ian Kent ff0a25
 AC_SUBST(systemddir)
Ian Kent ff0a25
+AC_SUBST(WITH_SYSTEMD)
Ian Kent ff0a25
+PKG_CHECK_MODULES([systemd],[libsystemd],,
Ian Kent ff0a25
+[
Ian Kent ff0a25
+  AC_CHECK_LIB(systemd, sm_notify, systemd_LIBS="-lsystemd")
Ian Kent ff0a25
+  AC_SUBST(systemd_LIBS)
Ian Kent ff0a25
+])
Ian Kent ff0a25
 
Ian Kent ff0a25
 #
Ian Kent ff0a25
 # Location of system config script directory?
Ian Kent ff0a25
@@ -127,7 +134,6 @@ AC_SUBST(flagdir)
Ian Kent ff0a25
 #
Ian Kent ff0a25
 # Use libtirpc
Ian Kent ff0a25
 #
Ian Kent ff0a25
-PKG_PROG_PKG_CONFIG()
Ian Kent ff0a25
 AC_ARG_WITH([libtirpc], AS_HELP_STRING([--with-libtirpc], [use libtirpc if available]))
Ian Kent ff0a25
 if test "x$with_libtirpc" = "xyes"; then
Ian Kent ff0a25
   PKG_CHECK_MODULES([TIRPC],[libtirpc],[
Ian Kent ff0a25
--- autofs-5.1.4.orig/daemon/Makefile
Ian Kent ff0a25
+++ autofs-5.1.4/daemon/Makefile
Ian Kent ff0a25
@@ -21,6 +21,11 @@ CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsfl
Ian Kent ff0a25
 CFLAGS += -DVERSION_STRING=\"$(version)\"
Ian Kent ff0a25
 LDFLAGS += -rdynamic
Ian Kent ff0a25
 LIBS += -ldl -lpthread
Ian Kent ff0a25
+ 
Ian Kent ff0a25
+ifeq ($(SYSTEMD), 1)
Ian Kent ff0a25
+    CFLAGS += -DWITH_SYSTEMD
Ian Kent ff0a25
+    LIBS += $(LIBSYSTEMD)
Ian Kent ff0a25
+endif
Ian Kent ff0a25
 
Ian Kent ff0a25
 ifeq ($(LDAP), 1)
Ian Kent ff0a25
     CFLAGS += $(XML_FLAGS)
Ian Kent ff0a25
--- autofs-5.1.4.orig/daemon/automount.c
Ian Kent ff0a25
+++ autofs-5.1.4/daemon/automount.c
Ian Kent ff0a25
@@ -36,6 +36,9 @@
Ian Kent ff0a25
 #include <dirent.h>
Ian Kent ff0a25
 #include <sys/vfs.h>
Ian Kent ff0a25
 #include <sys/utsname.h>
Ian Kent ff0a25
+#ifdef WITH_SYSTEMD
Ian Kent ff0a25
+#include <systemd/sd-daemon.h>
Ian Kent ff0a25
+#endif
Ian Kent ff0a25
 
Ian Kent ff0a25
 #include "automount.h"
Ian Kent ff0a25
 #if defined(LIBXML2_WORKAROUND) || defined(TIRPC_WORKAROUND)
Ian Kent ff0a25
@@ -65,7 +68,7 @@ unsigned int global_selection_options;
Ian Kent ff0a25
 long global_negative_timeout = -1;
Ian Kent ff0a25
 int do_force_unlink = 0;		/* Forceably unlink mount tree at startup */
Ian Kent ff0a25
 
Ian Kent ff0a25
-static int start_pipefd[2];
Ian Kent ff0a25
+static int start_pipefd[2] = {-1, -1};
Ian Kent ff0a25
 static int st_stat = 1;
Ian Kent ff0a25
 static int *pst_stat = &st_stat;
Ian Kent ff0a25
 static pthread_t state_mach_thid;
Ian Kent ff0a25
@@ -1204,12 +1207,6 @@ static void become_daemon(unsigned foreg
Ian Kent ff0a25
 		exit(0);
Ian Kent ff0a25
 	}
Ian Kent ff0a25
 
Ian Kent ff0a25
-	if (open_pipe(start_pipefd) < 0) {
Ian Kent ff0a25
-		fprintf(stderr, "%s: failed to create start_pipefd.\n",
Ian Kent ff0a25
-			program);
Ian Kent ff0a25
-		exit(0);
Ian Kent ff0a25
-	}
Ian Kent ff0a25
-
Ian Kent ff0a25
 	/* Detach from foreground process */
Ian Kent ff0a25
 	if (foreground) {
Ian Kent ff0a25
 		if (daemon_check && !aquire_flag_file()) {
Ian Kent ff0a25
@@ -1219,6 +1216,12 @@ static void become_daemon(unsigned foreg
Ian Kent ff0a25
 		}
Ian Kent ff0a25
 		log_to_stderr();
Ian Kent ff0a25
 	} else {
Ian Kent ff0a25
+		if (open_pipe(start_pipefd) < 0) {
Ian Kent ff0a25
+			fprintf(stderr, "%s: failed to create start_pipefd.\n",
Ian Kent ff0a25
+				program);
Ian Kent ff0a25
+			exit(0);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
+
Ian Kent ff0a25
 		pid = fork();
Ian Kent ff0a25
 		if (pid > 0) {
Ian Kent ff0a25
 			close(start_pipefd[1]);
Ian Kent ff0a25
@@ -2448,8 +2451,10 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 	if (pthread_attr_init(&th_attr)) {
Ian Kent ff0a25
 		logerr("%s: failed to init thread attribute struct!",
Ian Kent ff0a25
 		     program);
Ian Kent ff0a25
-		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-		close(start_pipefd[1]);
Ian Kent ff0a25
+		if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+			res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+			close(start_pipefd[1]);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
 		release_flag_file();
Ian Kent ff0a25
 		macro_free_global_table();
Ian Kent ff0a25
 		exit(1);
Ian Kent ff0a25
@@ -2458,8 +2463,10 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 	if (pthread_attr_init(&th_attr_detached)) {
Ian Kent ff0a25
 		logerr("%s: failed to init thread attribute struct!",
Ian Kent ff0a25
 		     program);
Ian Kent ff0a25
-		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-		close(start_pipefd[1]);
Ian Kent ff0a25
+		if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+			res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+			close(start_pipefd[1]);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
 		release_flag_file();
Ian Kent ff0a25
 		macro_free_global_table();
Ian Kent ff0a25
 		exit(1);
Ian Kent ff0a25
@@ -2469,8 +2476,10 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 			&th_attr_detached, PTHREAD_CREATE_DETACHED)) {
Ian Kent ff0a25
 		logerr("%s: failed to set detached thread attribute!",
Ian Kent ff0a25
 		     program);
Ian Kent ff0a25
-		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-		close(start_pipefd[1]);
Ian Kent ff0a25
+		if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+			res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+			close(start_pipefd[1]);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
 		release_flag_file();
Ian Kent ff0a25
 		macro_free_global_table();
Ian Kent ff0a25
 		exit(1);
Ian Kent ff0a25
@@ -2481,8 +2490,10 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 			&th_attr_detached, detached_thread_stack_size)) {
Ian Kent ff0a25
 		logerr("%s: failed to set stack size thread attribute!",
Ian Kent ff0a25
 		       program);
Ian Kent ff0a25
-		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-		close(start_pipefd[1]);
Ian Kent ff0a25
+		if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+			res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+			close(start_pipefd[1]);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
 		release_flag_file();
Ian Kent ff0a25
 		macro_free_global_table();
Ian Kent ff0a25
 		exit(1);
Ian Kent ff0a25
@@ -2493,8 +2504,10 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 			&th_attr_detached, &detached_thread_stack_size)) {
Ian Kent ff0a25
 		logerr("%s: failed to get detached thread stack size!",
Ian Kent ff0a25
 		       program);
Ian Kent ff0a25
-		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-		close(start_pipefd[1]);
Ian Kent ff0a25
+		if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+			res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+			close(start_pipefd[1]);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
 		release_flag_file();
Ian Kent ff0a25
 		macro_free_global_table();
Ian Kent ff0a25
 		exit(1);
Ian Kent ff0a25
@@ -2511,8 +2524,10 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 		logerr("%s: failed to create thread data key for std env vars!",
Ian Kent ff0a25
 		       program);
Ian Kent ff0a25
 		master_kill(master_list);
Ian Kent ff0a25
-		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-		close(start_pipefd[1]);
Ian Kent ff0a25
+		if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+			res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+			close(start_pipefd[1]);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
 		release_flag_file();
Ian Kent ff0a25
 		macro_free_global_table();
Ian Kent ff0a25
 		exit(1);
Ian Kent ff0a25
@@ -2523,8 +2538,10 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 		logerr("%s: failed to create thread data key for attempt ID!",
Ian Kent ff0a25
 		       program);
Ian Kent ff0a25
 		master_kill(master_list);
Ian Kent ff0a25
-		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-		close(start_pipefd[1]);
Ian Kent ff0a25
+		if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+			res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+			close(start_pipefd[1]);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
 		release_flag_file();
Ian Kent ff0a25
 		macro_free_global_table();
Ian Kent ff0a25
 		exit(1);
Ian Kent ff0a25
@@ -2535,8 +2552,10 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 	if (!alarm_start_handler()) {
Ian Kent ff0a25
 		logerr("%s: failed to create alarm handler thread!", program);
Ian Kent ff0a25
 		master_kill(master_list);
Ian Kent ff0a25
-		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-		close(start_pipefd[1]);
Ian Kent ff0a25
+		if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+			res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+			close(start_pipefd[1]);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
 		release_flag_file();
Ian Kent ff0a25
 		macro_free_global_table();
Ian Kent ff0a25
 		exit(1);
Ian Kent ff0a25
@@ -2545,8 +2564,10 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 	if (!st_start_handler()) {
Ian Kent ff0a25
 		logerr("%s: failed to create FSM handler thread!", program);
Ian Kent ff0a25
 		master_kill(master_list);
Ian Kent ff0a25
-		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-		close(start_pipefd[1]);
Ian Kent ff0a25
+		if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+			res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+			close(start_pipefd[1]);
Ian Kent ff0a25
+		}
Ian Kent ff0a25
 		release_flag_file();
Ian Kent ff0a25
 		macro_free_global_table();
Ian Kent ff0a25
 		exit(1);
Ian Kent ff0a25
@@ -2594,9 +2615,15 @@ int main(int argc, char *argv[])
Ian Kent ff0a25
 	 */
Ian Kent ff0a25
 	do_force_unlink = 0;
Ian Kent ff0a25
 
Ian Kent ff0a25
-	st_stat = 0;
Ian Kent ff0a25
-	res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
-	close(start_pipefd[1]);
Ian Kent ff0a25
+	if (start_pipefd[1] != -1) {
Ian Kent ff0a25
+		st_stat = 0;
Ian Kent ff0a25
+		res = write(start_pipefd[1], pst_stat, sizeof(*pst_stat));
Ian Kent ff0a25
+		close(start_pipefd[1]);
Ian Kent ff0a25
+	}
Ian Kent ff0a25
+
Ian Kent ff0a25
+#ifdef WITH_SYSTEMD
Ian Kent ff0a25
+	sd_notify(1, "READY=1");
Ian Kent ff0a25
+#endif
Ian Kent ff0a25
 
Ian Kent ff0a25
 	state_mach_thid = pthread_self();
Ian Kent ff0a25
 	statemachine(NULL);
Ian Kent ff0a25
--- autofs-5.1.4.orig/samples/autofs.service.in
Ian Kent ff0a25
+++ autofs-5.1.4/samples/autofs.service.in
Ian Kent ff0a25
@@ -4,10 +4,9 @@ After=network.target ypbind.service sssd
Ian Kent ff0a25
 Wants=network-online.target rpc-statd.service rpcbind.service
Ian Kent ff0a25
 
Ian Kent ff0a25
 [Service]
Ian Kent ff0a25
-Type=forking
Ian Kent ff0a25
-PIDFile=@@autofspiddir@@/autofs.pid
Ian Kent ff0a25
+Type=notify
Ian Kent ff0a25
 EnvironmentFile=-@@autofsconfdir@@/autofs
Ian Kent ff0a25
-ExecStart=@@sbindir@@/automount $OPTIONS --pid-file @@autofspiddir@@/autofs.pid
Ian Kent ff0a25
+ExecStart=@@sbindir@@/automount $OPTIONS --foreground --dont-check-daemon
Ian Kent ff0a25
 ExecReload=/usr/bin/kill -HUP $MAINPID
Ian Kent ff0a25
 KillMode=process
Ian Kent ff0a25
 TimeoutSec=180
Ian Kent ff0a25
--- autofs-5.1.4.orig/CHANGELOG
Ian Kent ff0a25
+++ autofs-5.1.4/CHANGELOG
Ian Kent ff0a25
@@ -69,6 +69,7 @@
Ian Kent ff0a25
 - fix error return in do_nfs_mount().
Ian Kent ff0a25
 - tiny patch for autofs typo and possible bug.
Ian Kent ff0a25
 - add units After line to include statd service.
Ian Kent ff0a25
+- use systemd sd_notify() at startup.
Ian Kent ff0a25
 
Ian Kent ff0a25
 24/05/2017 autofs-5.1.3
Ian Kent ff0a25
 =======================