]> arthur.barton.de Git - netatalk.git/blob - macros/config-checks.m4
DB3 patch check fix by Stefan Muenkner.
[netatalk.git] / macros / config-checks.m4
1 dnl $Id: config-checks.m4,v 1.5 2003-06-06 19:45:51 srittau Exp $
2 dnl Autoconf macro to set the configuration directories.
3
4 AC_DEFUN([NETATALK_CONFIG_DIRS], [
5         PKGCONFDIR="${sysconfdir}/netatalk"
6
7         AC_ARG_WITH(pkgconfdir,
8                 [  --with-pkgconfdir=DIR   package specific configuration in DIR
9                           [SYSCONF/netatalk]],
10                 [
11                         if test "x$withval" != "x"; then
12                                 PKGCONFDIR="$withval"
13                         fi
14                 ]
15         )
16
17         NLSDIR="${datadir}/netatalk/nls"
18
19         AC_ARG_WITH(nls-dir,
20                 [  --with-nls-dir=PATH     path to NLS files [DATA/netatalk/nls]],
21                 [
22                         if test "x$withval" != "x"; then
23                                 NLSDIR="$withval"
24                         fi
25                 ]
26         )
27
28         SERVERTEXT="${PKGCONFDIR}/msg"
29
30         AC_ARG_WITH(message-dir,
31                 [  --with-message-dir=PATH path to server message files [PKGCONF/msg]],
32                 [
33                         if test x"$withval" = x"no";  then 
34                                 AC_MSG_WARN([*** message-dir is mandatory and cannot be disabled, using default ***])
35                         elif test "x$withval" != "x" && test x"$withval" != x"yes"; then
36                                 SERVERTEXT="$withval"
37                         fi
38                 ]
39         )
40
41         AC_SUBST(PKGCONFDIR)
42         AC_SUBST(NLSDIR)
43         AC_SUBST(SERVERTEXT)
44 ])