Skip to content

Commit

Permalink
build: configure: have --with-runstatedir overrule --runstatedir
Browse files Browse the repository at this point in the history
and log that there was runstatedir defined already
  • Loading branch information
wenningerk committed Dec 9, 2021
1 parent 6bb085f commit ff38c41
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,13 @@ expand_path_option oldincludedir
expand_path_option infodir
expand_path_option mandir

AS_IF([test x"${runstatedir}" = x""], [runstatedir="${sbd_runstatedir}"])
AS_IF([test x"${runstatedir}" = x""], [runstatedir="${sbd_runstatedir}"],
[test x"${sbd_runstatedir}" != x""], [
echo "--with-runstatedir=${sbd_runstatedir} is taking precedence"
echo "over runstatedir=${runstatedir}."
echo "Consider using --runstatedir=${sbd_runstatedir} directly or let it"
echo "go with the default."
runstatedir="${sbd_runstatedir}"])
expand_path_option runstatedir "${localstatedir}/run"
AC_SUBST(runstatedir)

Expand Down

0 comments on commit ff38c41

Please sign in to comment.