From: Theodore Ts'o Date: Wed, 22 May 2019 17:03:38 +0000 (-0400) Subject: configure: fix test where cron is not installed on a non-systemd system X-Git-Tag: v1.45.2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=188bf39acf5da14d291e4dde481baf02abe84c62;p=thirdparty%2Fe2fsprogs.git configure: fix test where cron is not installed on a non-systemd system Reported-by: thomas@linuxfromscratch.org Signed-off-by: Theodore Ts'o --- diff --git a/configure b/configure index 205b2d6dc..065bff761 100755 --- a/configure +++ b/configure @@ -13150,7 +13150,8 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; } if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then : - $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h + +$as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h fi @@ -13191,7 +13192,8 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; } if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then : - $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h + +$as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h fi @@ -14511,6 +14513,8 @@ if test "x${with_crond_dir}" != "xno"; then : if test -d "/etc/cron.d"; then : with_crond_dir="/etc/cron.d" +else + have_crond="no"; with_crond_dir="" fi fi diff --git a/configure.ac b/configure.ac index 3b86c1a14..cf03444d8 100644 --- a/configure.ac +++ b/configure.ac @@ -1674,7 +1674,8 @@ AS_IF([test "x${with_crond_dir}" != "xno"], AS_IF([test "x${with_crond_dir}" = "xyes"], [ AS_IF([test -d "/etc/cron.d"], - [with_crond_dir="/etc/cron.d"]) + [with_crond_dir="/etc/cron.d"], + [have_crond="no"; with_crond_dir=""]) ]) AC_MSG_CHECKING([for system crontab dir]) crond_dir="${with_crond_dir}"