]> arthur.barton.de Git - netatalk.git/blob - macros/config-checks.m4
Writing metadata xattr on directories with sticky bit set, FR#94
[netatalk.git] / macros / config-checks.m4
1 dnl Autoconf macro to set the configuration directories.
2
3 AC_DEFUN([AC_NETATALK_CONFIG_DIRS], [
4         PKGCONFDIR="${sysconfdir}"
5
6         AC_ARG_WITH(pkgconfdir,
7                 [  --with-pkgconfdir=DIR   package specific configuration in DIR
8                           [[$sysconfdir]]],
9                 [
10                         if test "x$withval" != "x"; then
11                                 PKGCONFDIR="$withval"
12                         fi
13                 ]
14         )
15
16
17         SERVERTEXT="${localstatedir}/netatalk/msg"
18
19         AC_ARG_WITH(message-dir,
20                 [  --with-message-dir=PATH path to server message files [[$localstatedir/netatalk/msg/]]],
21                 [
22                         if test x"$withval" = x"no";  then 
23                                 AC_MSG_WARN([message-dir is mandatory and cannot be disabled, using default])
24                         elif test "x$withval" != "x" && test x"$withval" != x"yes"; then
25                                 SERVERTEXT="$withval"
26                         fi
27                 ]
28         )
29
30         AC_SUBST(PKGCONFDIR)
31         AC_SUBST(SERVERTEXT)
32 ])