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