]> arthur.barton.de Git - netatalk.git/blob - macros/config-checks.m4
Fixes to configure process for server messaging.
[netatalk.git] / macros / config-checks.m4
1 dnl $Id: config-checks.m4,v 1.3 2002-04-29 06:23:58 morgana 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="${PKGCONFDIR}/nls"
18
19         AC_ARG_WITH(nls-dir,
20                 [  --with-nls-dir=PATH     path to NLS files [PKGCONF/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"; then
34                                 SERVERTEXT="$withval"
35                                 cat >> confdefs.h <<EOF
36 #define SERVERTEXT "$withval"
37 EOF
38                         fi
39                 ]
40         )
41
42         AC_SUBST(PKGCONFDIR)
43         AC_SUBST(NLSDIR)
44         AC_SUBST(SERVERTEXT)
45 ])