PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/config/ac_netgroup.m4

https://code.google.com/
m4 | 39 lines | 19 code | 2 blank | 18 comment | 0 complexity | c57317891577a3ec4faab82547ce41fa MD5 | raw file
 1##*****************************************************************************
 2## $Id: ac_dshgroup.m4 771 2004-02-11 00:12:20Z grondo $
 3##*****************************************************************************
 4#  AUTHOR:
 5#    Mark Grondona <mgrondona@llnl.gov>
 6#
 7#  SYNOPSIS:
 8#    AC_NETGROUP
 9#
10#  DESCRIPTION:
11#    Checks for whether to include the standard dshgroup module.
12#
13#  WARNINGS:
14#    This macro must be placed after AC_PROG_CC or equivalent.
15##*****************************************************************************
16
17AC_DEFUN([AC_NETGROUP],
18[
19  #
20  # Check for whether to include the dshgroup module
21  #
22  AC_MSG_CHECKING([for whether to build netgroup module])
23  AC_ARG_WITH([netgroup],
24    AC_HELP_STRING([--with-netgroup], 
25	  [Build netgroup module for netgroups support]),
26    [ case "$withval" in
27        no)  ac_with_netgroup=no ;;
28        yes) ac_with_netgroup=yes ;;
29        *)   AC_MSG_RESULT([doh!])
30             AC_MSG_ERROR([bad value "$withval" for --with-netgroup]) ;;
31      esac
32    ]
33  )
34  AC_MSG_RESULT([${ac_with_netgroup=no}])
35   
36  if test "$ac_with_netgroup" = "yes"; then
37      AC_ADD_STATIC_MODULE("netgroup")
38  fi
39])