1dnl $Id: config-checks.m4,v 1.6 2005-04-28 20:50:05 bfernhomberg Exp $ 2dnl Autoconf macro to set the configuration directories. 3 4AC_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 18 SERVERTEXT="${PKGCONFDIR}/msg" 19 20 AC_ARG_WITH(message-dir, 21 [ --with-message-dir=PATH path to server message files [[PKGCONF/msg]]], 22 [ 23 if test x"$withval" = x"no"; then 24 AC_MSG_WARN([*** message-dir is mandatory and cannot be disabled, using default ***]) 25 elif test "x$withval" != "x" && test x"$withval" != x"yes"; then 26 SERVERTEXT="$withval" 27 fi 28 ] 29 ) 30 31 AC_SUBST(PKGCONFDIR) 32 AC_SUBST(SERVERTEXT) 33]) 34