/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. AC_DEFUN([AC_RMSQUERY],
  15. [
  16. #
  17. # Check for whether to build rms module
  18. #
  19. AC_MSG_CHECKING([for whether to build rms module])
  20. AC_ARG_WITH([rms],
  21. AC_HELP_STRING([--with-rms],
  22. [support running pdsh under RMS allocation]),
  23. [ case "$withval" in
  24. yes) ac_with_rms=yes ;;
  25. no) ac_with_rms=no ;;
  26. *) AC_MSG_RESULT([doh!])
  27. AC_MSG_ERROR([bad value "$withval" for --with-rms]) ;;
  28. esac
  29. ]
  30. )
  31. AC_MSG_RESULT([${ac_with_rms=no}])
  32. if test "$ac_with_rms" = "yes"; then
  33. AC_PATH_PROG([RMSQUERY], [rmsquery], [], [/usr/bin:$PATH])
  34. if test -n "$RMSQUERY"; then
  35. ac_have_rmsquery=yes
  36. AC_ADD_STATIC_MODULE("rms")
  37. AC_DEFINE([HAVE_RMSQUERY], [1], [Define if you have rmsquery])
  38. AC_DEFINE_UNQUOTED(_PATH_RMSQUERY, "$RMSQUERY", [Path to rmsquery.])
  39. fi
  40. fi
  41. AC_SUBST(HAVE_RMSQUERY)
  42. AC_SUBST(RMSQUERY)
  43. ])