]> arthur.barton.de Git - netatalk.git/blob - macros/admingrp-check.m4
apply parts of the netbsd build patch by Patrick Welche <prlw1@newn.cam.ac.uk>, mostl...
[netatalk.git] / macros / admingrp-check.m4
1 dnl $Id: admingrp-check.m4,v 1.1 2003-12-15 06:56:33 srittau Exp $
2 dnl Autoconf macro to check whether admin group support should be enabled
3
4 AC_DEFUN([NETATALK_ADMINGRP_CHECK], [
5         admingrp=yes
6         AC_MSG_CHECKING([for administrative group support])
7         AC_ARG_ENABLE(admin-group,
8                 [  --disable-admin-group   disable admin group], [
9                         if test "x$enableval" = "xno"; then
10                                 admingrp=no
11                         fi
12                 ]
13         )
14
15         AC_DEFINE_UNQUOTED(ADMIN_GRP,
16                 `test "x$admingrp" = "xyes"`,
17         [Define if the admin group should be enabled]
18         )
19
20         if test "x$admingrp" = "xyes"; then
21                 AC_MSG_RESULT([yes])
22         else
23                 AC_MSG_RESULT([no])
24         fi
25 ])
26