summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 1244843c..6c95d024 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,9 +53,9 @@ AC_ARG_WITH([sysconfig],
)
AC_ARG_WITH([runtimedir],
- [AS_HELP_STRING([--with-runtimedir=PATH], [path for runtime files @<:@LOCALSTATEDIR/run@:>@])],
- [runtimedir="$with_runtimedir"],
- [runtimedir="\$(localstatedir)/run"]
+ [AS_HELP_STRING([--with-runtimedir=PATH], [run-state data, obsolete variant of --runstatedir])],
+ [runstatedir="$with_runtimedir"],
+ []
)
AC_ARG_WITH([iproutedir],
@@ -91,7 +91,11 @@ esac
AC_SUBST([objdir])
AC_SUBST([exedir])
AC_SUBST([srcdir_rel_mf])
-AC_SUBST([runtimedir])
+
+# Workaround for older Autoconfs that do not define runstatedir
+AS_IF([test -z "${runstatedir}"], [runstatedir='${localstatedir}/run'])
+AC_SUBST([runstatedir])
+
if test "$enable_ipv6" = yes ; then
ip=ipv6
@@ -112,7 +116,7 @@ if test "$enable_debug" = yes ; then
CONTROL_SOCKET="bird$SUFFIX.ctl"
else
CONFIG_FILE="\$(sysconfdir)/bird$SUFFIX.conf"
- CONTROL_SOCKET="$runtimedir/bird$SUFFIX.ctl"
+ CONTROL_SOCKET="\$(runstatedir)/bird.ctl"
fi
AC_SUBST([CONFIG_FILE])
AC_SUBST([CONTROL_SOCKET])