~drizzle-trunk/drizzle/development

1099.1.1 by Monty Taylor
pandora-build v0.23
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.
1126.6.8 by Monty Taylor
pandora-build v0.62 - cleaned up some copyright header mistakes. Merged in trond's innodb detection.
6
dnl This file is free software; Sun Microsystems
1099.1.1 by Monty Taylor
pandora-build v0.23
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
12
AC_DEFUN([PANDORA_WITH_R],[
13
    dnl Check for GNU R
14
    AC_ARG_WITH([r], 
15
    [AS_HELP_STRING([--with-r],
16
      [Build R Bindings @<:@default=yes@:>@])],
17
    [with_r=$withval], 
18
    [with_r=yes])
19
20
  AS_IF([test "x$with_r" != "xno"],[
21
22
    PKG_CHECK_MODULES([R], [libR], [
23
      with_r=yes
24
    ],[
25
      with_r=no
26
    ])
27
28
   AC_SUBST(R_CFLAGS)
29
   AC_SUBST(R_LIBS)
30
  ])
31
  AM_CONDITIONAL(BUILD_R, test "$with_r" = "yes")
32
33
])