~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_with_r.m4

Merge Revision revid:marko.makela@oracle.com-20100505101406-u4low2x26q6itck0 from MySQL InnoDB

Original revid:marko.makela@oracle.com-20100505101406-u4low2x26q6itck0

Original Authors: Marko Mäkelä <marko.makela@oracle.com>
Original commit message:
Merge from mysql-5.1-innodb:

  ------------------------------------------------------------
  revno: 3446
  revision-id: marko.makela@oracle.com-20100505100507-6kcd2hf32hruxbv7
  parent: marko.makela@oracle.com-20100505095328-vetnl0flhmhao7p5
  committer: Marko Mäkelä <marko.makela@oracle.com>
  branch nick: 5.1-innodb
  timestamp: Wed 2010-05-05 13:05:07 +0300
  message:
    Add Valgrind diagnostics to track down Bug #38999.
  ------------------------------------------------------------

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
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
])