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

/config/ac_rmsquery.m4

https://code.google.com/
m4 | 46 lines | 27 code | 3 blank | 16 comment | 0 complexity | aa87c73b3e9679c89db425ceae458326 MD5 | raw file
 1##*****************************************************************************
 2## $Id$
 3##*****************************************************************************
 4#  AUTHOR:
 5#    Jim Garlick <garlick@llnl.gov>
 6#
 7#  SYNOPSIS:
 8#    AC_RMSQUERY
 9#
10#  DESCRIPTION:
11#    Checks for whether to include rmsquery module
12#
13##*****************************************************************************
14
15AC_DEFUN([AC_RMSQUERY],
16[
17  #
18  # Check for whether to build rms module
19  # 
20  AC_MSG_CHECKING([for whether to build rms module])
21  AC_ARG_WITH([rms],
22    AC_HELP_STRING([--with-rms], 
23      [support running pdsh under RMS allocation]),
24      [ case "$withval" in
25        yes) ac_with_rms=yes ;;
26        no)  ac_with_rms=no ;;
27        *)   AC_MSG_RESULT([doh!])
28             AC_MSG_ERROR([bad value "$withval" for --with-rms]) ;;
29      esac
30    ]
31  )
32  AC_MSG_RESULT([${ac_with_rms=no}]) 
33
34  if test "$ac_with_rms" = "yes"; then
35    AC_PATH_PROG([RMSQUERY], [rmsquery], [], [/usr/bin:$PATH])
36    if test -n "$RMSQUERY"; then
37        ac_have_rmsquery=yes
38        AC_ADD_STATIC_MODULE("rms")
39        AC_DEFINE([HAVE_RMSQUERY], [1], [Define if you have rmsquery])
40        AC_DEFINE_UNQUOTED(_PATH_RMSQUERY, "$RMSQUERY", [Path to rmsquery.])
41    fi
42  fi
43
44  AC_SUBST(HAVE_RMSQUERY)
45  AC_SUBST(RMSQUERY)      
46])