Gentoo Archives: gentoo-commits

From: "Arun Raghavan (ford_prefect)" <ford_prefect@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/orc/files: orc-0.4.9-make-valgrind-optional.patch
Date: Wed, 08 Sep 2010 17:51:09
Message-Id: 20100908175104.36EEB20054@flycatcher.gentoo.org
1 ford_prefect 10/09/08 17:51:04
2
3 Added: orc-0.4.9-make-valgrind-optional.patch
4 Log:
5 Bump to 0.4.9
6
7 (Portage version: 2.2_rc74/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-lang/orc/files/orc-0.4.9-make-valgrind-optional.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/orc/files/orc-0.4.9-make-valgrind-optional.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/orc/files/orc-0.4.9-make-valgrind-optional.patch?rev=1.1&content-type=text/plain
14
15 Index: orc-0.4.9-make-valgrind-optional.patch
16 ===================================================================
17 From 81d0728db9d7442407c0d308ff1501d5778a14ed Mon Sep 17 00:00:00 2001
18 From: Arun Raghavan <ford_prefect@g.o>
19 Date: Wed, 8 Sep 2010 22:59:53 +0530
20 Subject: [PATCH] configure: Make valgrind header check optional
21
22 ---
23 configure.ac | 11 ++++++++++-
24 1 files changed, 10 insertions(+), 1 deletions(-)
25
26 diff --git a/configure.ac b/configure.ac
27 index 417b56b..ecfd2d4 100644
28 --- a/configure.ac
29 +++ b/configure.ac
30 @@ -84,7 +84,16 @@ if test "$orc_cv_monotonic_clock" = "yes"; then
31 AC_DEFINE(HAVE_MONOTONIC_CLOCK,1,[Defined if we have a monotonic clock])
32 fi
33
34 -AC_CHECK_HEADERS([valgrind/valgrind.h])
35 +AC_ARG_ENABLE([valgrind],
36 + AC_HELP_STRING([--enable-valgrind],[enable valgrind support (default: auto)]),
37 + [], [enable_valgrind=auto])
38 +if test "x${enable_valgrind}" != "xno"; then
39 + AC_CHECK_HEADERS([valgrind/valgrind.h],
40 + [found_valgrind_h=yes], [found_valgrind_h=no])
41 + if test "x${enable_valgrind}" = "xyes" -a "x${found_valgrind_h}" = "no"; then
42 + AC_MSG_ERROR([Valgrind support requested, but valgrind/valgrind.h not found. Have you installed the valgrind development package?])
43 + fi
44 +fi
45
46 AS_COMPILER_FLAG(-Wall, ORC_CFLAGS="$ORC_CFLAGS -Wall")
47 if test "x$ORC_CVS" = "xyes"
48 --
49 1.7.2.2