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

/config/ac_pam.m4

https://code.google.com/
m4 | 35 lines | 16 code | 1 blank | 18 comment | 0 complexity | dbec47d4b6a2d1149d2132b6be2c90e7 MD5 | raw file
 1##*****************************************************************************
 2## $Id$
 3##*****************************************************************************
 4#  AUTHOR:
 5#    Jim Garlick <garlick@llnl.gov>
 6#
 7#  SYNOPSIS:
 8#    AC_PAM
 9#
10#  DESCRIPTION:
11#    Checks for pam support. 
12#
13#  WARNINGS:
14#    This macro must be placed after AC_PROG_CC or equivalent.
15##*****************************************************************************
16
17AC_DEFUN([AC_PAM],
18[
19  #
20  # Default is to have pam built
21  #
22  AC_MSG_CHECKING([for whether to build with pam support])
23  AC_ARG_WITH([pam],
24    AC_HELP_STRING([--without-pam],
25      [Do not build qshell/mqshell with pam support]),
26    [ case "$withval" in
27        no)  ac_with_pam=no ;;
28        yes) ac_with_pam=yes ;;
29        *)   AC_MSG_RESULT([doh!])
30             AC_MSG_ERROR([bad value "$withval" for --with-pam]) ;;
31      esac
32    ]
33  )
34  AC_MSG_RESULT([${ac_with_pam=yes}])
35])