]> arthur.barton.de Git - netatalk.git/commitdiff
Added file from trunk.
authorsrittau <srittau>
Tue, 12 Mar 2002 16:22:03 +0000 (16:22 +0000)
committersrittau <srittau>
Tue, 12 Mar 2002 16:22:03 +0000 (16:22 +0000)
macros/config-checks.m4 [new file with mode: 0644]

diff --git a/macros/config-checks.m4 b/macros/config-checks.m4
new file mode 100644 (file)
index 0000000..93cb4de
--- /dev/null
@@ -0,0 +1,30 @@
+dnl $Id: config-checks.m4,v 1.1.2.1 2002-03-12 16:22:03 srittau Exp $
+dnl Autoconf macro to set the configuration directories.
+
+AC_DEFUN([NETATALK_CONFIG_DIRS], [
+       PKGCONFDIR="${sysconfdir}/netatalk"
+
+       AC_ARG_WITH(pkgconfdir,
+               [  --with-pkgconfdir=DIR   package specific configuration in DIR
+                          [SYSCONF/netatalk]],
+                       [
+                       if test "x$withval" != "x"; then
+                               PKGCONFDIR="$withval"
+                       fi
+               ]
+       )
+
+       NLSDIR="${PKGCONFDIR}/nls"
+
+       AC_ARG_WITH(nls-dir,
+               [  --with-nls-dir=PATH     path to NLS files [PKGCONF/nls]],
+               [
+                       if test "x$withval" != "x"; then
+                               NLSDIR = "$withval"
+                       fi
+               ]
+       )
+
+       AC_SUBST(PKGCONFDIR)
+       AC_SUBST(NLSDIR)
+])