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) |
sewardj | e5521a5 | 2003-04-23 21:17:24 +0000 | [diff] [blame^] | 4 | AM_INIT_AUTOMAKE(valgrind, cvs-head-2003-04-23) |
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 |
sewardj | 2c21624 | 2002-12-14 23:49:42 +0000 | [diff] [blame] | 100 | 2.5.*) |
| 101 | AC_MSG_RESULT([2.5 family (${kernel})]) |
| 102 | AC_DEFINE([KERNEL_2_5], 1, [Define to 1 if you're using Linux 2.5.x]) |
| 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})]) |
| 117 | AC_MSG_ERROR([Valgrind works on kernels 2.2 and 2.4]) |
| 118 | ;; |
| 119 | esac |
| 120 | |
| 121 | AC_SUBST(DEFAULT_SUPP) |
| 122 | |
| 123 | |
| 124 | # Ok, this is linux. Check the kernel version |
| 125 | AC_MSG_CHECKING([the glibc version]) |
| 126 | |
| 127 | glibc="" |
| 128 | |
| 129 | AC_EGREP_CPP([GLIBC_21], [ |
| 130 | #include <features.h> |
| 131 | #ifdef __GNU_LIBRARY__ |
| 132 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 1) |
| 133 | GLIBC_21 |
| 134 | #endif |
| 135 | #endif |
| 136 | ], |
| 137 | glibc="2.1") |
| 138 | |
| 139 | AC_EGREP_CPP([GLIBC_22], [ |
| 140 | #include <features.h> |
| 141 | #ifdef __GNU_LIBRARY__ |
| 142 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2) |
| 143 | GLIBC_22 |
| 144 | #endif |
| 145 | #endif |
| 146 | ], |
| 147 | glibc="2.2") |
| 148 | |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 149 | AC_EGREP_CPP([GLIBC_23], [ |
| 150 | #include <features.h> |
| 151 | #ifdef __GNU_LIBRARY__ |
| 152 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 3) |
| 153 | GLIBC_23 |
| 154 | #endif |
| 155 | #endif |
| 156 | ], |
| 157 | glibc="2.3") |
| 158 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 159 | case "${glibc}" in |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 160 | 2.1) |
| 161 | AC_MSG_RESULT(2.1 family) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 162 | 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] | 163 | DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.1.supp" |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 164 | ;; |
| 165 | |
| 166 | 2.2) |
| 167 | AC_MSG_RESULT(2.2 family) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 168 | 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] | 169 | DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.2.supp" |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 170 | ;; |
| 171 | |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 172 | 2.3) |
| 173 | AC_MSG_RESULT(2.3 family) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 174 | 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] | 175 | ## Use the same suppression for as for 2.2. |
| 176 | ## This is a horrible hack that should be gotten |
| 177 | ## rid of. JRS, 20021007. |
| 178 | DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.2.supp" |
| 179 | ;; |
| 180 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 181 | *) |
| 182 | AC_MSG_RESULT(unsupported version) |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 183 | 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] | 184 | ;; |
| 185 | esac |
| 186 | |
sewardj | 3e909ce | 2002-06-03 13:27:15 +0000 | [diff] [blame] | 187 | # APIs introduced in recent glibc versions |
| 188 | |
| 189 | AC_MSG_CHECKING([whether sched_param has a sched_priority member]) |
| 190 | AC_CACHE_VAL(vg_have_sched_priority, |
| 191 | [ |
| 192 | AC_TRY_COMPILE([#include <pthread.h>],[ |
| 193 | struct sched_param p; p.sched_priority=1;], |
| 194 | vg_have_sched_priority=yes, |
| 195 | vg_have_sched_priority=no) |
| 196 | ]) |
| 197 | AC_MSG_RESULT($vg_have_sched_priority) |
| 198 | if test "$vg_have_sched_priority" = yes; then |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 199 | AC_DEFINE([HAVE_SCHED_PRIORITY], 1, [pthread / sched_priority exists]) |
sewardj | 3e909ce | 2002-06-03 13:27:15 +0000 | [diff] [blame] | 200 | fi |
| 201 | |
| 202 | AC_MSG_CHECKING([whether nfds_t is defined]) |
| 203 | AC_CACHE_VAL(vg_have_nfds_t, |
| 204 | [ |
| 205 | AC_TRY_COMPILE([#include <sys/poll.h>],[ |
| 206 | nfds_t i=0;], |
| 207 | vg_have_nfds_t=yes, |
| 208 | vg_have_nfds_t=no) |
| 209 | ]) |
| 210 | AC_MSG_RESULT($vg_have_nfds_t) |
| 211 | if test "$vg_have_nfds_t" = yes; then |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 212 | AC_DEFINE([HAVE_NFDS_T], 1, [nfds_t exists]) |
sewardj | 3e909ce | 2002-06-03 13:27:15 +0000 | [diff] [blame] | 213 | fi |
| 214 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 215 | # try to detect the XFree version |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 216 | # JRS 2002-06-17: this is completely bogus because it |
| 217 | # detects the server version, whereas we need to know the |
| 218 | # client library version. So what follows is hacked to |
| 219 | # use all the X supp files regardless of what is detected. |
| 220 | # This is really stoooopid and should be fixed properly. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 221 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 222 | AC_PATH_X |
| 223 | |
| 224 | if test "${no_x}" != 'yes' ; then |
| 225 | |
| 226 | AC_MSG_CHECKING([XFree version]) |
| 227 | |
| 228 | cat<<EOF > conftest.c |
| 229 | #include <X11/Xlib.h> |
| 230 | |
| 231 | int main (int argc, char * argv []) |
| 232 | { |
| 233 | Display * display = XOpenDisplay (NULL); |
| 234 | |
| 235 | if (display) { |
| 236 | printf ("%s version=%d\n", ServerVendor (display), VendorRelease (display)); |
| 237 | } |
| 238 | |
| 239 | return 0; |
| 240 | } |
| 241 | EOF |
| 242 | |
| 243 | ${CC} -o conftest conftest.c -I${x_includes} -L${x_libraries} -lX11 >&5 2>&1 |
| 244 | |
| 245 | if test "$?" != 0 ; then |
| 246 | AC_MSG_RESULT([cannot compile test program]) |
| 247 | else |
| 248 | xfree=`./conftest` |
| 249 | |
| 250 | case "${xfree}" in |
| 251 | *XFree86*) |
| 252 | ;; |
| 253 | |
| 254 | *) AC_MSG_RESULT([not a XFree86 server]) |
| 255 | ;; |
| 256 | esac |
| 257 | |
| 258 | case "${xfree}" in |
| 259 | |
| 260 | *version=4*) |
| 261 | AC_MSG_RESULT([XFree 4.x family]) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 262 | 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] | 263 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 264 | # haaaaaaack! |
| 265 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 266 | ;; |
| 267 | |
| 268 | *version=3*) |
| 269 | AC_MSG_RESULT([XFree 3.x family]) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 270 | 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] | 271 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 272 | # haaaaaaack! |
| 273 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 274 | ;; |
| 275 | |
| 276 | *) AC_MSG_RESULT([unknown XFree86 server (${xfree})]) |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 277 | # haaaaaaack! |
| 278 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" |
| 279 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 280 | ;; |
| 281 | esac |
| 282 | fi |
| 283 | |
| 284 | rm -f conftest conftest.c |
| 285 | fi |
| 286 | |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 287 | |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 288 | AC_MSG_CHECKING([if this is an NPTL-based system]) |
daywalker | 6cb58cf | 2003-04-17 16:58:03 +0000 | [diff] [blame] | 289 | safe_LIBS="$LIBS" |
| 290 | LIBS="$LIBS -lpthread" |
daywalker | 94ece2f | 2003-04-17 17:38:45 +0000 | [diff] [blame] | 291 | AC_TRY_RUN([ |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 292 | #include <pthread.h> |
| 293 | #include <stdio.h> |
| 294 | int main (int argc, char * argv []) |
| 295 | { |
| 296 | int ret; |
| 297 | pthread_mutexattr_t mutexattr; |
| 298 | ret = pthread_mutexattr_init (&mutexattr); |
| 299 | if (ret == 0) { |
| 300 | ret = pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED); |
| 301 | if (ret == 0) /* nptl */ |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 302 | return 0; |
daywalker | 6cb58cf | 2003-04-17 16:58:03 +0000 | [diff] [blame] | 303 | else /* not nptl */ |
| 304 | return 1; |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 305 | } |
| 306 | return 1; |
| 307 | } |
daywalker | 6cb58cf | 2003-04-17 16:58:03 +0000 | [diff] [blame] | 308 | ], |
| 309 | [ |
| 310 | NPTL_THREADING="yes" |
| 311 | AC_MSG_RESULT([yes]) |
| 312 | ], |
| 313 | [ |
| 314 | NPTL_THREADING="no" |
| 315 | AC_MSG_RESULT([no]) |
| 316 | ], |
| 317 | [ |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 318 | AC_MSG_RESULT([couldn't run test program]) |
| 319 | NPTL_THREADING="no" |
daywalker | 6cb58cf | 2003-04-17 16:58:03 +0000 | [diff] [blame] | 320 | ]) |
| 321 | LIBS=$safe_LIBS |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 322 | |
| 323 | AC_SUBST(NPTL_THREADING) |
| 324 | |
| 325 | |
sewardj | 5b754b4 | 2002-06-03 22:53:35 +0000 | [diff] [blame] | 326 | # does this compiler support -mpreferred-stack-boundary=2 ? |
| 327 | AC_MSG_CHECKING([if gcc accepts -mpreferred-stack-boundary]) |
| 328 | |
| 329 | CFLAGS="-mpreferred-stack-boundary=2" |
| 330 | |
| 331 | AC_TRY_COMPILE(, [ |
| 332 | |
| 333 | int main () { return 0 ; } |
| 334 | |
| 335 | ], |
| 336 | [ |
| 337 | PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2" |
| 338 | AC_MSG_RESULT([$PREFERRED_STACK_BOUNDARY]) |
| 339 | ], [ |
| 340 | PREFERRED_STACK_BOUNDARY="" |
| 341 | AC_MSG_RESULT([no]) |
| 342 | ]) |
| 343 | |
| 344 | AC_SUBST(PREFERRED_STACK_BOUNDARY) |
| 345 | |
| 346 | |
| 347 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 348 | # Checks for header files. |
| 349 | AC_HEADER_STDC |
sewardj | a83005f | 2002-06-13 16:07:51 +0000 | [diff] [blame] | 350 | 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] | 351 | |
| 352 | # Checks for typedefs, structures, and compiler characteristics. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 353 | AC_TYPE_UID_T |
| 354 | AC_TYPE_OFF_T |
| 355 | AC_TYPE_SIZE_T |
| 356 | AC_HEADER_TIME |
| 357 | |
| 358 | # Checks for library functions. |
| 359 | AC_FUNC_MEMCMP |
| 360 | AC_FUNC_MMAP |
| 361 | AC_TYPE_SIGNAL |
| 362 | |
| 363 | AC_CHECK_FUNCS([floor memchr memset mkdir strchr strdup strpbrk strrchr strstr]) |
| 364 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 365 | AC_OUTPUT( |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 366 | Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 367 | valgrind.spec |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 368 | docs/Makefile |
| 369 | tests/Makefile |
njn | c2e7f48 | 2002-09-27 08:44:17 +0000 | [diff] [blame] | 370 | tests/vg_regtest |
njn25 | 1ffab94 | 2002-09-23 16:42:19 +0000 | [diff] [blame] | 371 | tests/unused/Makefile |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 372 | include/Makefile |
njn | 7a6e746 | 2002-11-09 17:53:30 +0000 | [diff] [blame] | 373 | auxprogs/Makefile |
njn25 | ab72603 | 2002-09-23 16:24:41 +0000 | [diff] [blame] | 374 | coregrind/Makefile |
| 375 | coregrind/demangle/Makefile |
| 376 | coregrind/docs/Makefile |
| 377 | coregrind/valgrind |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 378 | addrcheck/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 379 | addrcheck/tests/Makefile |
njn | 7da8fa7 | 2002-10-03 10:38:40 +0000 | [diff] [blame] | 380 | addrcheck/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 381 | memcheck/Makefile |
| 382 | memcheck/tests/Makefile |
| 383 | memcheck/docs/Makefile |
| 384 | cachegrind/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 385 | cachegrind/tests/Makefile |
| 386 | cachegrind/docs/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 387 | cachegrind/cg_annotate |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 388 | corecheck/Makefile |
| 389 | corecheck/tests/Makefile |
njn | 83157fc | 2002-10-03 10:07:34 +0000 | [diff] [blame] | 390 | corecheck/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 391 | helgrind/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 392 | helgrind/tests/Makefile |
njn | 83157fc | 2002-10-03 10:07:34 +0000 | [diff] [blame] | 393 | helgrind/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 394 | lackey/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 395 | lackey/tests/Makefile |
njn | 83157fc | 2002-10-03 10:07:34 +0000 | [diff] [blame] | 396 | lackey/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 397 | none/Makefile |
| 398 | none/tests/Makefile |
njn | 9bc8c00 | 2002-10-02 13:49:13 +0000 | [diff] [blame] | 399 | none/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 400 | ) |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 401 | |
| 402 | cat<<EOF |
| 403 | |
| 404 | Using the following suppressions by default: |
| 405 | |
| 406 | ${DEFAULT_SUPP} |
| 407 | EOF |
| 408 | |
| 409 | cat<<EOF > default.supp |
| 410 | # This is a generated file, composed of the following suppression rules: |
| 411 | # |
| 412 | # ${DEFAULT_SUPP} |
| 413 | # |
| 414 | |
| 415 | EOF |
| 416 | |
| 417 | for file in ${DEFAULT_SUPP} ; do |
| 418 | cat ${srcdir}/$file >> default.supp |
| 419 | done |