sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 1 | # Process this file with autoconf to produce a configure script. |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 2 | AC_INIT(coregrind/vg_main.c) # give me a source file, any source file... |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 3 | AM_CONFIG_HEADER(config.h) |
jseward | 693028e | 2003-12-14 00:15:23 +0000 | [diff] [blame] | 4 | AM_INIT_AUTOMAKE(valgrind, 2.1.0) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 5 | |
gobry | b0ed467 | 2002-03-27 20:58:58 +0000 | [diff] [blame] | 6 | AM_MAINTAINER_MODE |
| 7 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 8 | # Checks for programs. |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 9 | CFLAGS="" |
| 10 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 11 | AC_PROG_LN_S |
| 12 | AC_PROG_CC |
| 13 | AC_PROG_CPP |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 14 | AC_PROG_CXX |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 15 | AC_PROG_RANLIB |
| 16 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 17 | # Check for the compiler support |
| 18 | if test "${GCC}" != "yes" ; then |
| 19 | AC_MSG_ERROR([Valgrind relies on GCC to be compiled]) |
| 20 | fi |
| 21 | |
sewardj | 2f68595 | 2002-12-22 19:32:23 +0000 | [diff] [blame] | 22 | # figure out where perl lives |
| 23 | AC_PATH_PROG(PERL, perl) |
| 24 | |
njn | 9315df3 | 2003-04-16 20:50:50 +0000 | [diff] [blame] | 25 | # figure out where gdb lives |
| 26 | AC_PATH_PROG(GDB, gdb) |
njn | 17b8535 | 2003-04-18 12:54:24 +0000 | [diff] [blame] | 27 | # autoheader tries to execute the 3rd string or something; I get warnings when |
| 28 | # it's defined. So just leave it undefined. --njn 2002-Apr-18 |
| 29 | AC_DEFINE_UNQUOTED(GDB_PATH, "$GDB", "") |
njn | 9315df3 | 2003-04-16 20:50:50 +0000 | [diff] [blame] | 30 | |
daywalker | 48ccca5 | 2002-04-15 00:31:58 +0000 | [diff] [blame] | 31 | # some older automake's don't have it so try something on our own |
| 32 | ifdef([AM_PROG_AS],[AM_PROG_AS], |
| 33 | [ |
gobry | 1be1985 | 2002-03-26 20:44:55 +0000 | [diff] [blame] | 34 | AS="${CC}" |
| 35 | AC_SUBST(AS) |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 36 | |
gobry | 1be1985 | 2002-03-26 20:44:55 +0000 | [diff] [blame] | 37 | ASFLAGS="" |
| 38 | AC_SUBST(ASFLAGS) |
daywalker | 48ccca5 | 2002-04-15 00:31:58 +0000 | [diff] [blame] | 39 | ]) |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 40 | |
| 41 | # This variable will collect the individual suppression files |
| 42 | # depending on the results of autoconf |
| 43 | |
| 44 | DEFAULT_SUPP="" |
| 45 | |
| 46 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 47 | # We don't want gcc 2.7 |
| 48 | AC_MSG_CHECKING([for a supported version of gcc]) |
| 49 | |
daywalker | 870ac4c | 2002-05-21 00:09:48 +0000 | [diff] [blame] | 50 | gcc_version=`${CC} --version | head -n 1` |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 51 | |
| 52 | case "${gcc_version}" in |
| 53 | gcc-2.7.*) |
| 54 | AC_MSG_RESULT([no (${gcc_version})]) |
| 55 | AC_MSG_ERROR([please use a recent (>= gcc-2.95) version of gcc]) |
| 56 | ;; |
| 57 | |
| 58 | *) |
| 59 | AC_MSG_RESULT([ok (${gcc_version})]) |
| 60 | ;; |
| 61 | esac |
| 62 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 63 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 64 | # Checks for the platform |
| 65 | AC_CANONICAL_HOST |
| 66 | |
| 67 | AC_MSG_CHECKING([for a supported CPU]) |
| 68 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 69 | case "${host_cpu}" in |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 70 | i?86) |
| 71 | AC_MSG_RESULT([ok (${host_cpu})]) |
| 72 | ;; |
| 73 | |
| 74 | *) |
| 75 | AC_MSG_RESULT([no (${host_cpu})]) |
| 76 | AC_MSG_ERROR([Valgrind is ix86 specific. Sorry]) |
| 77 | ;; |
| 78 | esac |
| 79 | |
| 80 | AC_MSG_CHECKING([for a supported OS]) |
| 81 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 82 | case "${host_os}" in |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 83 | *linux*) |
| 84 | AC_MSG_RESULT([ok (${host_os})]) |
| 85 | ;; |
| 86 | |
| 87 | *) |
| 88 | AC_MSG_RESULT([no (${host_os})]) |
| 89 | AC_MSG_ERROR([Valgrind is Linux specific. Sorry]) |
| 90 | ;; |
| 91 | esac |
| 92 | |
| 93 | |
| 94 | # Ok, this is linux. Check the kernel version |
| 95 | AC_MSG_CHECKING([for the kernel version]) |
| 96 | |
| 97 | kernel=`uname -r` |
| 98 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 99 | case "${kernel}" in |
daywalker | 4fda9bf | 2003-08-10 13:37:01 +0000 | [diff] [blame] | 100 | 2.6.*) |
| 101 | AC_MSG_RESULT([2.6 family (${kernel})]) |
| 102 | AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x]) |
sewardj | 2c21624 | 2002-12-14 23:49:42 +0000 | [diff] [blame] | 103 | ;; |
| 104 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 105 | 2.4.*) |
| 106 | AC_MSG_RESULT([2.4 family (${kernel})]) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 107 | AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x]) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 108 | ;; |
| 109 | |
| 110 | 2.2.*) |
| 111 | AC_MSG_RESULT([2.2 family (${kernel})]) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 112 | AC_DEFINE([KERNEL_2_2], 1, [Define to 1 if you're using Linux 2.2.x]) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 113 | ;; |
| 114 | |
| 115 | *) |
| 116 | AC_MSG_RESULT([unsupported (${kernel})]) |
jsgf | 855d93d | 2003-10-13 22:26:55 +0000 | [diff] [blame] | 117 | AC_MSG_ERROR([Valgrind works on kernels 2.2, 2.4, 2.6]) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 118 | ;; |
| 119 | esac |
| 120 | |
| 121 | AC_SUBST(DEFAULT_SUPP) |
| 122 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 123 | glibc="" |
| 124 | |
| 125 | AC_EGREP_CPP([GLIBC_21], [ |
| 126 | #include <features.h> |
| 127 | #ifdef __GNU_LIBRARY__ |
| 128 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 1) |
| 129 | GLIBC_21 |
| 130 | #endif |
| 131 | #endif |
| 132 | ], |
| 133 | glibc="2.1") |
| 134 | |
| 135 | AC_EGREP_CPP([GLIBC_22], [ |
| 136 | #include <features.h> |
| 137 | #ifdef __GNU_LIBRARY__ |
| 138 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2) |
| 139 | GLIBC_22 |
| 140 | #endif |
| 141 | #endif |
| 142 | ], |
| 143 | glibc="2.2") |
| 144 | |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 145 | AC_EGREP_CPP([GLIBC_23], [ |
| 146 | #include <features.h> |
| 147 | #ifdef __GNU_LIBRARY__ |
| 148 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 3) |
| 149 | GLIBC_23 |
| 150 | #endif |
| 151 | #endif |
| 152 | ], |
| 153 | glibc="2.3") |
| 154 | |
daywalker | e9212b3 | 2003-06-15 22:39:15 +0000 | [diff] [blame] | 155 | # Ok, this is linux. Check the kernel version |
| 156 | AC_MSG_CHECKING([the glibc version]) |
| 157 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 158 | case "${glibc}" in |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 159 | 2.1) |
| 160 | AC_MSG_RESULT(2.1 family) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 161 | AC_DEFINE([GLIBC_2_1], 1, [Define to 1 if you're using glibc 2.1.x]) |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 162 | DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.1.supp" |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 163 | ;; |
| 164 | |
| 165 | 2.2) |
| 166 | AC_MSG_RESULT(2.2 family) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 167 | AC_DEFINE([GLIBC_2_2], 1, [Define to 1 if you're using glibc 2.2.x]) |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 168 | DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.2.supp" |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 169 | ;; |
| 170 | |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 171 | 2.3) |
| 172 | AC_MSG_RESULT(2.3 family) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 173 | AC_DEFINE([GLIBC_2_3], 1, [Define to 1 if you're using glibc 2.3.x]) |
daywalker | 63f6f78 | 2003-05-27 00:19:52 +0000 | [diff] [blame] | 174 | DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.3.supp" |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 175 | ;; |
| 176 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 177 | *) |
| 178 | AC_MSG_RESULT(unsupported version) |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 179 | AC_MSG_ERROR([Valgrind requires the glibc version 2.1, 2.2 or 2.3]) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 180 | ;; |
| 181 | esac |
| 182 | |
sewardj | 3e909ce | 2002-06-03 13:27:15 +0000 | [diff] [blame] | 183 | # APIs introduced in recent glibc versions |
| 184 | |
| 185 | AC_MSG_CHECKING([whether sched_param has a sched_priority member]) |
| 186 | AC_CACHE_VAL(vg_have_sched_priority, |
| 187 | [ |
| 188 | AC_TRY_COMPILE([#include <pthread.h>],[ |
| 189 | struct sched_param p; p.sched_priority=1;], |
| 190 | vg_have_sched_priority=yes, |
| 191 | vg_have_sched_priority=no) |
| 192 | ]) |
| 193 | AC_MSG_RESULT($vg_have_sched_priority) |
| 194 | if test "$vg_have_sched_priority" = yes; then |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 195 | AC_DEFINE([HAVE_SCHED_PRIORITY], 1, [pthread / sched_priority exists]) |
sewardj | 3e909ce | 2002-06-03 13:27:15 +0000 | [diff] [blame] | 196 | fi |
| 197 | |
| 198 | AC_MSG_CHECKING([whether nfds_t is defined]) |
| 199 | AC_CACHE_VAL(vg_have_nfds_t, |
| 200 | [ |
| 201 | AC_TRY_COMPILE([#include <sys/poll.h>],[ |
| 202 | nfds_t i=0;], |
| 203 | vg_have_nfds_t=yes, |
| 204 | vg_have_nfds_t=no) |
| 205 | ]) |
| 206 | AC_MSG_RESULT($vg_have_nfds_t) |
| 207 | if test "$vg_have_nfds_t" = yes; then |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 208 | AC_DEFINE([HAVE_NFDS_T], 1, [nfds_t exists]) |
sewardj | 3e909ce | 2002-06-03 13:27:15 +0000 | [diff] [blame] | 209 | fi |
| 210 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 211 | # try to detect the XFree version |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 212 | # JRS 2002-06-17: this is completely bogus because it |
| 213 | # detects the server version, whereas we need to know the |
| 214 | # client library version. So what follows is hacked to |
| 215 | # use all the X supp files regardless of what is detected. |
| 216 | # This is really stoooopid and should be fixed properly. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 217 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 218 | AC_PATH_X |
| 219 | |
| 220 | if test "${no_x}" != 'yes' ; then |
| 221 | |
| 222 | AC_MSG_CHECKING([XFree version]) |
| 223 | |
| 224 | cat<<EOF > conftest.c |
| 225 | #include <X11/Xlib.h> |
| 226 | |
| 227 | int main (int argc, char * argv []) |
| 228 | { |
| 229 | Display * display = XOpenDisplay (NULL); |
| 230 | |
| 231 | if (display) { |
| 232 | printf ("%s version=%d\n", ServerVendor (display), VendorRelease (display)); |
| 233 | } |
| 234 | |
| 235 | return 0; |
| 236 | } |
| 237 | EOF |
| 238 | |
| 239 | ${CC} -o conftest conftest.c -I${x_includes} -L${x_libraries} -lX11 >&5 2>&1 |
| 240 | |
| 241 | if test "$?" != 0 ; then |
| 242 | AC_MSG_RESULT([cannot compile test program]) |
| 243 | else |
| 244 | xfree=`./conftest` |
| 245 | |
| 246 | case "${xfree}" in |
| 247 | *XFree86*) |
| 248 | ;; |
| 249 | |
| 250 | *) AC_MSG_RESULT([not a XFree86 server]) |
| 251 | ;; |
| 252 | esac |
| 253 | |
| 254 | case "${xfree}" in |
| 255 | |
| 256 | *version=4*) |
| 257 | AC_MSG_RESULT([XFree 4.x family]) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 258 | AC_DEFINE([XFREE_4], 1, [Define to 1 if you're using XFree 4.x]) |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 259 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 260 | # haaaaaaack! |
| 261 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 262 | ;; |
| 263 | |
| 264 | *version=3*) |
| 265 | AC_MSG_RESULT([XFree 3.x family]) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 266 | AC_DEFINE([XFREE_3], 1, [Define to 1 if you're using XFree86 3.x]) |
sewardj | 19e6a4d | 2002-05-22 11:58:25 +0000 | [diff] [blame] | 267 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 268 | # haaaaaaack! |
| 269 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 270 | ;; |
| 271 | |
| 272 | *) AC_MSG_RESULT([unknown XFree86 server (${xfree})]) |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 273 | # haaaaaaack! |
| 274 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" |
| 275 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 276 | ;; |
| 277 | esac |
| 278 | fi |
| 279 | |
| 280 | rm -f conftest conftest.c |
| 281 | fi |
| 282 | |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 283 | |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 284 | # check if the GNU as supports CFI directives |
| 285 | AC_MSG_CHECKING([if gas accepts .cfi]) |
mueller | ece14bd | 2003-10-31 03:43:48 +0000 | [diff] [blame] | 286 | AC_TRY_LINK(, [ |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 287 | |
| 288 | __asm__ __volatile__ (".cfi_startproc\n" |
| 289 | ".cfi_adjust_cfa_offset 0x0\n" |
| 290 | ".cfi_endproc\n"); |
| 291 | ], |
| 292 | [ |
| 293 | AC_DEFINE_UNQUOTED([HAVE_GAS_CFI], 1, [Define if your GNU as supports .cfi]) |
| 294 | AC_MSG_RESULT(yes) |
| 295 | ], |
| 296 | AC_MSG_RESULT(no) |
| 297 | ) |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 298 | |
sewardj | 5b754b4 | 2002-06-03 22:53:35 +0000 | [diff] [blame] | 299 | # does this compiler support -mpreferred-stack-boundary=2 ? |
| 300 | AC_MSG_CHECKING([if gcc accepts -mpreferred-stack-boundary]) |
| 301 | |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 302 | safe_CFLAGS=$CFLAGS |
sewardj | 5b754b4 | 2002-06-03 22:53:35 +0000 | [diff] [blame] | 303 | CFLAGS="-mpreferred-stack-boundary=2" |
| 304 | |
| 305 | AC_TRY_COMPILE(, [ |
| 306 | |
| 307 | int main () { return 0 ; } |
| 308 | |
| 309 | ], |
| 310 | [ |
| 311 | PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2" |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 312 | AC_MSG_RESULT([yes]) |
sewardj | 5b754b4 | 2002-06-03 22:53:35 +0000 | [diff] [blame] | 313 | ], [ |
| 314 | PREFERRED_STACK_BOUNDARY="" |
| 315 | AC_MSG_RESULT([no]) |
| 316 | ]) |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 317 | CFLAGS=$safe_CFLAGS |
sewardj | 5b754b4 | 2002-06-03 22:53:35 +0000 | [diff] [blame] | 318 | |
| 319 | AC_SUBST(PREFERRED_STACK_BOUNDARY) |
| 320 | |
| 321 | |
| 322 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 323 | # Checks for header files. |
| 324 | AC_HEADER_STDC |
sewardj | a83005f | 2002-06-13 16:07:51 +0000 | [diff] [blame] | 325 | AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h termios.h unistd.h utime.h]) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 326 | |
| 327 | # Checks for typedefs, structures, and compiler characteristics. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 328 | AC_TYPE_UID_T |
| 329 | AC_TYPE_OFF_T |
| 330 | AC_TYPE_SIZE_T |
| 331 | AC_HEADER_TIME |
| 332 | |
| 333 | # Checks for library functions. |
| 334 | AC_FUNC_MEMCMP |
| 335 | AC_FUNC_MMAP |
| 336 | AC_TYPE_SIGNAL |
| 337 | |
| 338 | AC_CHECK_FUNCS([floor memchr memset mkdir strchr strdup strpbrk strrchr strstr]) |
| 339 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 340 | AC_OUTPUT( |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 341 | Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 342 | valgrind.spec |
mueller | bddd607 | 2003-11-19 21:50:07 +0000 | [diff] [blame] | 343 | valgrind.pc |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 344 | docs/Makefile |
| 345 | tests/Makefile |
njn | c2e7f48 | 2002-09-27 08:44:17 +0000 | [diff] [blame] | 346 | tests/vg_regtest |
njn25 | 1ffab94 | 2002-09-23 16:42:19 +0000 | [diff] [blame] | 347 | tests/unused/Makefile |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 348 | include/Makefile |
njn | 7a6e746 | 2002-11-09 17:53:30 +0000 | [diff] [blame] | 349 | auxprogs/Makefile |
njn25 | ab72603 | 2002-09-23 16:24:41 +0000 | [diff] [blame] | 350 | coregrind/Makefile |
| 351 | coregrind/demangle/Makefile |
| 352 | coregrind/docs/Makefile |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 353 | coregrind/x86/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 354 | addrcheck/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 355 | addrcheck/tests/Makefile |
njn | 7da8fa7 | 2002-10-03 10:38:40 +0000 | [diff] [blame] | 356 | addrcheck/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 357 | memcheck/Makefile |
| 358 | memcheck/tests/Makefile |
| 359 | memcheck/docs/Makefile |
| 360 | cachegrind/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 361 | cachegrind/tests/Makefile |
| 362 | cachegrind/docs/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 363 | cachegrind/cg_annotate |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 364 | corecheck/Makefile |
| 365 | corecheck/tests/Makefile |
njn | 83157fc | 2002-10-03 10:07:34 +0000 | [diff] [blame] | 366 | corecheck/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 367 | helgrind/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 368 | helgrind/tests/Makefile |
njn | 83157fc | 2002-10-03 10:07:34 +0000 | [diff] [blame] | 369 | helgrind/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 370 | lackey/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 371 | lackey/tests/Makefile |
njn | 83157fc | 2002-10-03 10:07:34 +0000 | [diff] [blame] | 372 | lackey/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 373 | none/Makefile |
| 374 | none/tests/Makefile |
njn | 9bc8c00 | 2002-10-02 13:49:13 +0000 | [diff] [blame] | 375 | none/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 376 | ) |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 377 | |
| 378 | cat<<EOF |
| 379 | |
| 380 | Using the following suppressions by default: |
| 381 | |
| 382 | ${DEFAULT_SUPP} |
| 383 | EOF |
| 384 | |
| 385 | cat<<EOF > default.supp |
| 386 | # This is a generated file, composed of the following suppression rules: |
| 387 | # |
| 388 | # ${DEFAULT_SUPP} |
| 389 | # |
| 390 | |
| 391 | EOF |
| 392 | |
| 393 | for file in ${DEFAULT_SUPP} ; do |
| 394 | cat ${srcdir}/$file >> default.supp |
| 395 | done |