summary refs log tree commit diff
path: root/pkgs/development/tools/misc/callgrind/prefix.patch
blob: 854ddc58ad33ad46cc6af257d052f51c3ea7b9ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
diff -rc callgrind-0.10.1-orig/callgrind.in callgrind-0.10.1/callgrind.in
*** callgrind-0.10.1-orig/callgrind.in	2005-11-14 03:21:14.000000000 +0100
--- callgrind-0.10.1/callgrind.in	2006-01-31 13:35:59.000000000 +0100
***************
*** 11,14 ****
          esac
  esac
  
! exec @VG_BINDIR@/valgrind --tool=callgrind $*
--- 11,14 ----
          esac
  esac
  
! VALGRIND_LIB=@prefix@/lib/valgrind/ exec @VG_BINDIR@/valgrind --tool=callgrind "$@"
diff -rc callgrind-0.10.1-orig/configure callgrind-0.10.1/configure
*** callgrind-0.10.1-orig/configure	2005-11-25 02:00:26.000000000 +0100
--- callgrind-0.10.1/configure	2006-01-31 13:41:48.000000000 +0100
***************
*** 3461,3467 ****
     { (exit 1); exit 1; }; }
    fi
  else
!   vg_exec=`which $prefix/bin/valgrind`
    if test "x$vg_exec" = "x"; then
      echo "$as_me:$LINENO: result: not found in $prefix/bin" >&5
  echo "${ECHO_T}not found in $prefix/bin" >&6
--- 3461,3467 ----
     { (exit 1); exit 1; }; }
    fi
  else
!   vg_exec=`which valgrind`
    if test "x$vg_exec" = "x"; then
      echo "$as_me:$LINENO: result: not found in $prefix/bin" >&5
  echo "${ECHO_T}not found in $prefix/bin" >&6
***************
*** 3484,3493 ****
  
  
  
! VG_BINDIR="$prefix/bin"
  
  cat >>confdefs.h <<_ACEOF
! #define VG_PREFIX "$prefix"
  _ACEOF
  
  
--- 3484,3493 ----
  
  
  
! VG_BINDIR="$vg_binpath"
  
  cat >>confdefs.h <<_ACEOF
! #define VG_PREFIX "$ac_default_prefix"
  _ACEOF
  
  
***************
*** 3495,3501 ****
  use_pkg_config="yes"
  echo "$as_me:$LINENO: checking for valgrind version" >&5
  echo $ECHO_N "checking for valgrind version... $ECHO_C" >&6
! vg_version=`$prefix/bin/valgrind --version`
  case "${vg_version}" in
      valgrind-3.1.*)
  	CG_SRCDIR=build31
--- 3495,3501 ----
  use_pkg_config="yes"
  echo "$as_me:$LINENO: checking for valgrind version" >&5
  echo $ECHO_N "checking for valgrind version... $ECHO_C" >&6
! vg_version=`$vg_binpath/valgrind --version`
  case "${vg_version}" in
      valgrind-3.1.*)
  	CG_SRCDIR=build31
***************
*** 3522,3528 ****
  echo "${ECHO_T}${vg_version}" >&6
  
  # get architecture from .pc file
! eval "pkgdir=$libdir/pkgconfig"
  echo "$as_me:$LINENO: checking for arch/os used in valgrind installation" >&5
  echo $ECHO_N "checking for arch/os used in valgrind installation... $ECHO_C" >&6
  
--- 3522,3528 ----
  echo "${ECHO_T}${vg_version}" >&6
  
  # get architecture from .pc file
! eval "pkgdir=$ac_default_prefix/lib/pkgconfig"
  echo "$as_me:$LINENO: checking for arch/os used in valgrind installation" >&5
  echo $ECHO_N "checking for arch/os used in valgrind installation... $ECHO_C" >&6