Signed-off-by: Pawel Wieczorkiewicz pwieczorkiewicz@suse.de Signed-off-by: Sebastian Krahmer krahmer@suse.com --- configure.ac | 8 ++++++++ teamd/teamd.h | 2 ++ 2 files changed, 10 insertions(+)
diff --git a/configure.ac b/configure.ac index 1115e95..302a11a 100644 --- a/configure.ac +++ b/configure.ac @@ -101,6 +101,14 @@ AC_ARG_ENABLE([zmq], fi fi
+AC_ARG_WITH([run-dir], + [AS_HELP_STRING([--with-run-dir@<:@=DIR@:>@], [Teamd run time directory @<:@default=${localstatedir}@:>@])], + [case "$withval" in + yes|no|"") ;; + *) AC_DEFINE_UNQUOTED(TEAMD_RUN_DIR, "${withval}/", [TEAMD RUN DIR.]) ;; + esac] +) + AC_CHECK_PROGS([DOXYGEN], [doxygen]) if test -z "$DOXYGEN"; then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support]) diff --git a/teamd/teamd.h b/teamd/teamd.h index 845ca18..d8ab6c8 100644 --- a/teamd/teamd.h +++ b/teamd/teamd.h @@ -67,7 +67,9 @@ static inline void TEAMD_BUG_ON(bool condition) TEAMD_BUG(); }
+#ifndef TEAMD_RUN_DIR #define TEAMD_RUN_DIR "/var/run/teamd/" +#endif
static inline int teamd_make_rundir(void) {