Skip to content

Commit

Permalink
Merge pull request #2268 from matt335672/fix_autoconf_runstatedir
Browse files Browse the repository at this point in the history
Cater for missing --runstatedir in autoconf 2.69
  • Loading branch information
matt335672 authored May 18, 2022
2 parents 6686cbf + d77de66 commit 95f7a79
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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)])],
Expand All @@ -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])

Expand Down

0 comments on commit 95f7a79

Please sign in to comment.