pandora_with_r.m4 842 B

123456789101112131415161718192021222324252627282930313233
  1. dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
  2. dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
  3. dnl
  4. dnl pandora-build: A pedantic build system
  5. dnl Copyright (C) 2009 Sun Microsystems, Inc.
  6. dnl This file is free software; Sun Microsystems
  7. dnl gives unlimited permission to copy and/or distribute it,
  8. dnl with or without modifications, as long as this notice is preserved.
  9. dnl
  10. dnl From Monty Taylor
  11. AC_DEFUN([PANDORA_WITH_R],[
  12. dnl Check for GNU R
  13. AC_ARG_WITH([r],
  14. [AS_HELP_STRING([--with-r],
  15. [Build R Bindings @<:@default=yes@:>@])],
  16. [with_r=$withval],
  17. [with_r=yes])
  18. AS_IF([test "x$with_r" != "xno"],[
  19. PKG_CHECK_MODULES([R], [libR], [
  20. with_r=yes
  21. ],[
  22. with_r=no
  23. ])
  24. AC_SUBST(R_CFLAGS)
  25. AC_SUBST(R_LIBS)
  26. ])
  27. AM_CONDITIONAL(BUILD_R, test "$with_r" = "yes")
  28. ])