Cater for missing --runstatedir in autoconf 2.69

This commit is contained in:
matt335672 2022-05-17 12:15:53 +01:00
parent 6686cbf946
commit d77de66c26
1 changed files with 6 additions and 1 deletions

View File

@ -50,6 +50,11 @@ AC_CHECK_SIZEOF([int])
AC_CHECK_SIZEOF([long])
AC_CHECK_SIZEOF([void *])
# runstatedir not available for autoconf <= 2.69
if test "x$runstatedir" = "x" ; then
runstatedir='${localstatedir}/run'
fi
AC_ARG_WITH([socketdir],
[AS_HELP_STRING([--with-socketdir=DIR],
[Use directory for UNIX sockets for XRDP sessions (default: RUNSTATEDIR/xrdp)])],
@ -58,7 +63,7 @@ AC_SUBST([socketdir], [$with_socketdir])
AC_ARG_WITH([sesmanruntimedir],
[AS_HELP_STRING([--with-sesmanruntimedir=DIR],
[Use directory for sesman runtime data (default: RUNSTATEDIR/xrdp-sesman))])],
[Use directory for sesman runtime data (default: RUNSTATEDIR/xrdp-sesman)])],
[], [with_sesmanruntimedir="$runstatedir/xrdp-sesman"])
AC_SUBST([sesmanruntimedir], [$with_sesmanruntimedir])