Explorar o código

build: Allow changing default logdir

Guillem Jover %!s(int64=16) %!d(string=hai) anos
pai
achega
a484f009a0
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      configure.ac

+ 11 - 0
configure.ac

@@ -69,6 +69,17 @@ AC_ARG_WITH(admindir,
 esac])
 esac])
 AC_SUBST(admindir)
 AC_SUBST(admindir)
 
 
+# Allow alternate log directory
+logdir="${localstatedir}/log"
+AC_ARG_WITH(logdir,
+	AS_HELP_STRING([--with-logdir=DIR],
+		       [system logging directory [[LOCALSTATEDIR/log]]]),
+[case "$with_logdir" in
+      "") AC_MSG_ERROR([invalid logdir specified]) ;;
+      *) logdir="$with_logdir" ;;
+esac])
+AC_SUBST(logdir)
+
 
 
 # Checks for programs.
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_CC