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) |
nethercote | 14fa0a7 | 2004-04-12 09:09:29 +0000 | [diff] [blame] | 4 | AM_INIT_AUTOMAKE(valgrind, 2.1.2.CVS) |
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]) |
mueller | 8c68e04 | 2004-01-03 15:21:14 +0000 | [diff] [blame] | 81 | AC_SUBST(VG_PLATFORM) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 82 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 83 | case "${host_os}" in |
mueller | 8c68e04 | 2004-01-03 15:21:14 +0000 | [diff] [blame] | 84 | *linux*) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 85 | AC_MSG_RESULT([ok (${host_os})]) |
mueller | 8c68e04 | 2004-01-03 15:21:14 +0000 | [diff] [blame] | 86 | VG_PLATFORM="x86-linux" |
| 87 | |
| 88 | # Ok, this is linux. Check the kernel version |
| 89 | AC_MSG_CHECKING([for the kernel version]) |
| 90 | |
| 91 | kernel=`uname -r` |
| 92 | |
| 93 | case "${kernel}" in |
| 94 | 2.6.*) |
| 95 | AC_MSG_RESULT([2.6 family (${kernel})]) |
| 96 | AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x]) |
| 97 | ;; |
| 98 | |
| 99 | 2.4.*) |
| 100 | AC_MSG_RESULT([2.4 family (${kernel})]) |
| 101 | AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x]) |
| 102 | ;; |
| 103 | |
| 104 | 2.2.*) |
| 105 | AC_MSG_RESULT([2.2 family (${kernel})]) |
| 106 | AC_DEFINE([KERNEL_2_2], 1, [Define to 1 if you're using Linux 2.2.x]) |
| 107 | ;; |
| 108 | |
| 109 | *) |
| 110 | AC_MSG_RESULT([unsupported (${kernel})]) |
| 111 | AC_MSG_ERROR([Valgrind works on kernels 2.2, 2.4, 2.6]) |
| 112 | ;; |
| 113 | esac |
| 114 | |
| 115 | ;; |
| 116 | |
| 117 | *freebsd*) |
| 118 | AC_MSG_RESULT([ok (${host_os})]) |
| 119 | VG_PLATFORM="x86-freebsd" |
| 120 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 121 | ;; |
| 122 | |
| 123 | *) |
| 124 | AC_MSG_RESULT([no (${host_os})]) |
mueller | 8c68e04 | 2004-01-03 15:21:14 +0000 | [diff] [blame] | 125 | AC_MSG_ERROR([Valgrind is operating system specific. Sorry. Please consider doing a port.]) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 126 | ;; |
| 127 | esac |
| 128 | |
| 129 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 130 | AC_SUBST(DEFAULT_SUPP) |
| 131 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 132 | glibc="" |
| 133 | |
| 134 | AC_EGREP_CPP([GLIBC_21], [ |
| 135 | #include <features.h> |
| 136 | #ifdef __GNU_LIBRARY__ |
| 137 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 1) |
| 138 | GLIBC_21 |
| 139 | #endif |
| 140 | #endif |
| 141 | ], |
| 142 | glibc="2.1") |
| 143 | |
| 144 | AC_EGREP_CPP([GLIBC_22], [ |
| 145 | #include <features.h> |
| 146 | #ifdef __GNU_LIBRARY__ |
| 147 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2) |
| 148 | GLIBC_22 |
| 149 | #endif |
| 150 | #endif |
| 151 | ], |
| 152 | glibc="2.2") |
| 153 | |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 154 | AC_EGREP_CPP([GLIBC_23], [ |
| 155 | #include <features.h> |
| 156 | #ifdef __GNU_LIBRARY__ |
| 157 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 3) |
| 158 | GLIBC_23 |
| 159 | #endif |
| 160 | #endif |
| 161 | ], |
| 162 | glibc="2.3") |
| 163 | |
daywalker | e9212b3 | 2003-06-15 22:39:15 +0000 | [diff] [blame] | 164 | # Ok, this is linux. Check the kernel version |
| 165 | AC_MSG_CHECKING([the glibc version]) |
| 166 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 167 | case "${glibc}" in |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 168 | 2.1) |
| 169 | AC_MSG_RESULT(2.1 family) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 170 | 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] | 171 | DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.1.supp" |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 172 | ;; |
| 173 | |
| 174 | 2.2) |
| 175 | AC_MSG_RESULT(2.2 family) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 176 | 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] | 177 | DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.2.supp" |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 178 | ;; |
| 179 | |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 180 | 2.3) |
| 181 | AC_MSG_RESULT(2.3 family) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 182 | 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] | 183 | DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.3.supp" |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 184 | ;; |
| 185 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 186 | *) |
| 187 | AC_MSG_RESULT(unsupported version) |
sewardj | 08c7f01 | 2002-10-07 23:56:55 +0000 | [diff] [blame] | 188 | 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] | 189 | ;; |
| 190 | esac |
| 191 | |
sewardj | 3e909ce | 2002-06-03 13:27:15 +0000 | [diff] [blame] | 192 | # APIs introduced in recent glibc versions |
| 193 | |
| 194 | AC_MSG_CHECKING([whether sched_param has a sched_priority member]) |
| 195 | AC_CACHE_VAL(vg_have_sched_priority, |
| 196 | [ |
| 197 | AC_TRY_COMPILE([#include <pthread.h>],[ |
| 198 | struct sched_param p; p.sched_priority=1;], |
| 199 | vg_have_sched_priority=yes, |
| 200 | vg_have_sched_priority=no) |
| 201 | ]) |
| 202 | AC_MSG_RESULT($vg_have_sched_priority) |
| 203 | if test "$vg_have_sched_priority" = yes; then |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 204 | AC_DEFINE([HAVE_SCHED_PRIORITY], 1, [pthread / sched_priority exists]) |
sewardj | 3e909ce | 2002-06-03 13:27:15 +0000 | [diff] [blame] | 205 | fi |
| 206 | |
| 207 | AC_MSG_CHECKING([whether nfds_t is defined]) |
| 208 | AC_CACHE_VAL(vg_have_nfds_t, |
| 209 | [ |
| 210 | AC_TRY_COMPILE([#include <sys/poll.h>],[ |
| 211 | nfds_t i=0;], |
| 212 | vg_have_nfds_t=yes, |
| 213 | vg_have_nfds_t=no) |
| 214 | ]) |
| 215 | AC_MSG_RESULT($vg_have_nfds_t) |
| 216 | if test "$vg_have_nfds_t" = yes; then |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 217 | AC_DEFINE([HAVE_NFDS_T], 1, [nfds_t exists]) |
sewardj | 3e909ce | 2002-06-03 13:27:15 +0000 | [diff] [blame] | 218 | fi |
| 219 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 220 | # try to detect the XFree version |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 221 | # JRS 2002-06-17: this is completely bogus because it |
| 222 | # detects the server version, whereas we need to know the |
| 223 | # client library version. So what follows is hacked to |
| 224 | # use all the X supp files regardless of what is detected. |
| 225 | # This is really stoooopid and should be fixed properly. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 226 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 227 | AC_PATH_X |
| 228 | |
| 229 | if test "${no_x}" != 'yes' ; then |
| 230 | |
| 231 | AC_MSG_CHECKING([XFree version]) |
| 232 | |
| 233 | cat<<EOF > conftest.c |
| 234 | #include <X11/Xlib.h> |
| 235 | |
| 236 | int main (int argc, char * argv []) |
| 237 | { |
| 238 | Display * display = XOpenDisplay (NULL); |
| 239 | |
| 240 | if (display) { |
| 241 | printf ("%s version=%d\n", ServerVendor (display), VendorRelease (display)); |
| 242 | } |
| 243 | |
| 244 | return 0; |
| 245 | } |
| 246 | EOF |
| 247 | |
| 248 | ${CC} -o conftest conftest.c -I${x_includes} -L${x_libraries} -lX11 >&5 2>&1 |
| 249 | |
| 250 | if test "$?" != 0 ; then |
| 251 | AC_MSG_RESULT([cannot compile test program]) |
| 252 | else |
| 253 | xfree=`./conftest` |
| 254 | |
| 255 | case "${xfree}" in |
| 256 | *XFree86*) |
| 257 | ;; |
| 258 | |
| 259 | *) AC_MSG_RESULT([not a XFree86 server]) |
| 260 | ;; |
| 261 | esac |
| 262 | |
| 263 | case "${xfree}" in |
| 264 | |
| 265 | *version=4*) |
| 266 | AC_MSG_RESULT([XFree 4.x family]) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 267 | 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] | 268 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 269 | # haaaaaaack! |
| 270 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 271 | ;; |
| 272 | |
| 273 | *version=3*) |
| 274 | AC_MSG_RESULT([XFree 3.x family]) |
daywalker | 418c748 | 2002-10-16 13:09:26 +0000 | [diff] [blame] | 275 | 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] | 276 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 277 | # haaaaaaack! |
| 278 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 279 | ;; |
| 280 | |
| 281 | *) AC_MSG_RESULT([unknown XFree86 server (${xfree})]) |
sewardj | 8ce25cd | 2002-06-18 01:05:58 +0000 | [diff] [blame] | 282 | # haaaaaaack! |
| 283 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp" |
| 284 | DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp" |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 285 | ;; |
| 286 | esac |
| 287 | fi |
| 288 | |
| 289 | rm -f conftest conftest.c |
| 290 | fi |
| 291 | |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 292 | |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 293 | # check if the GNU as supports CFI directives |
| 294 | AC_MSG_CHECKING([if gas accepts .cfi]) |
mueller | ece14bd | 2003-10-31 03:43:48 +0000 | [diff] [blame] | 295 | AC_TRY_LINK(, [ |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 296 | |
| 297 | __asm__ __volatile__ (".cfi_startproc\n" |
| 298 | ".cfi_adjust_cfa_offset 0x0\n" |
| 299 | ".cfi_endproc\n"); |
| 300 | ], |
| 301 | [ |
| 302 | AC_DEFINE_UNQUOTED([HAVE_GAS_CFI], 1, [Define if your GNU as supports .cfi]) |
| 303 | AC_MSG_RESULT(yes) |
| 304 | ], |
| 305 | AC_MSG_RESULT(no) |
| 306 | ) |
sewardj | 2e10a68 | 2003-04-07 19:36:41 +0000 | [diff] [blame] | 307 | |
sewardj | 5b754b4 | 2002-06-03 22:53:35 +0000 | [diff] [blame] | 308 | # does this compiler support -mpreferred-stack-boundary=2 ? |
| 309 | AC_MSG_CHECKING([if gcc accepts -mpreferred-stack-boundary]) |
| 310 | |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 311 | safe_CFLAGS=$CFLAGS |
sewardj | 5b754b4 | 2002-06-03 22:53:35 +0000 | [diff] [blame] | 312 | CFLAGS="-mpreferred-stack-boundary=2" |
| 313 | |
| 314 | AC_TRY_COMPILE(, [ |
| 315 | |
| 316 | int main () { return 0 ; } |
| 317 | |
| 318 | ], |
| 319 | [ |
| 320 | PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2" |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 321 | AC_MSG_RESULT([yes]) |
sewardj | 5b754b4 | 2002-06-03 22:53:35 +0000 | [diff] [blame] | 322 | ], [ |
| 323 | PREFERRED_STACK_BOUNDARY="" |
| 324 | AC_MSG_RESULT([no]) |
| 325 | ]) |
daywalker | 3664f56 | 2003-10-17 13:43:46 +0000 | [diff] [blame] | 326 | CFLAGS=$safe_CFLAGS |
sewardj | 5b754b4 | 2002-06-03 22:53:35 +0000 | [diff] [blame] | 327 | |
| 328 | AC_SUBST(PREFERRED_STACK_BOUNDARY) |
| 329 | |
| 330 | |
| 331 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 332 | # Checks for header files. |
| 333 | AC_HEADER_STDC |
thughes | be81171 | 2004-06-17 23:04:58 +0000 | [diff] [blame^] | 334 | AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h sys/endian.h endian.h termios.h unistd.h utime.h linux/fb.h linux/mii.h]) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 335 | |
| 336 | # Checks for typedefs, structures, and compiler characteristics. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 337 | AC_TYPE_UID_T |
| 338 | AC_TYPE_OFF_T |
| 339 | AC_TYPE_SIZE_T |
| 340 | AC_HEADER_TIME |
thughes | ebed998 | 2004-06-12 17:25:25 +0000 | [diff] [blame] | 341 | AC_CHECK_TYPES(__pthread_unwind_buf_t,,,[#include <pthread.h>]) |
thughes | be81171 | 2004-06-17 23:04:58 +0000 | [diff] [blame^] | 342 | AC_CHECK_TYPES(u16,,,[#include <linux/mii.h>]) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 343 | |
| 344 | # Checks for library functions. |
| 345 | AC_FUNC_MEMCMP |
| 346 | AC_FUNC_MMAP |
| 347 | AC_TYPE_SIGNAL |
| 348 | |
thughes | beb6eb9 | 2004-06-14 12:33:43 +0000 | [diff] [blame] | 349 | AC_CHECK_FUNCS([floor memchr memset mkdir strchr strdup strpbrk strrchr strstr semtimedop]) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 350 | |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 351 | AC_OUTPUT( |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 352 | Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 353 | valgrind.spec |
mueller | bddd607 | 2003-11-19 21:50:07 +0000 | [diff] [blame] | 354 | valgrind.pc |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 355 | docs/Makefile |
| 356 | tests/Makefile |
njn | c2e7f48 | 2002-09-27 08:44:17 +0000 | [diff] [blame] | 357 | tests/vg_regtest |
njn25 | 1ffab94 | 2002-09-23 16:42:19 +0000 | [diff] [blame] | 358 | tests/unused/Makefile |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 359 | include/Makefile |
njn | 7a6e746 | 2002-11-09 17:53:30 +0000 | [diff] [blame] | 360 | auxprogs/Makefile |
njn25 | ab72603 | 2002-09-23 16:24:41 +0000 | [diff] [blame] | 361 | coregrind/Makefile |
| 362 | coregrind/demangle/Makefile |
| 363 | coregrind/docs/Makefile |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 364 | coregrind/x86/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 365 | addrcheck/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 366 | addrcheck/tests/Makefile |
njn | 7da8fa7 | 2002-10-03 10:38:40 +0000 | [diff] [blame] | 367 | addrcheck/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 368 | memcheck/Makefile |
| 369 | memcheck/tests/Makefile |
| 370 | memcheck/docs/Makefile |
| 371 | cachegrind/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 372 | cachegrind/tests/Makefile |
| 373 | cachegrind/docs/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 374 | cachegrind/cg_annotate |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 375 | helgrind/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 376 | helgrind/tests/Makefile |
njn | 83157fc | 2002-10-03 10:07:34 +0000 | [diff] [blame] | 377 | helgrind/docs/Makefile |
nethercote | c9f3692 | 2004-02-14 16:40:02 +0000 | [diff] [blame] | 378 | massif/Makefile |
| 379 | massif/hp2ps/Makefile |
| 380 | massif/tests/Makefile |
| 381 | massif/docs/Makefile |
| 382 | corecheck/Makefile |
| 383 | corecheck/tests/Makefile |
| 384 | corecheck/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 385 | lackey/Makefile |
njn | f2df9b5 | 2002-10-04 11:35:47 +0000 | [diff] [blame] | 386 | lackey/tests/Makefile |
njn | 83157fc | 2002-10-03 10:07:34 +0000 | [diff] [blame] | 387 | lackey/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 388 | none/Makefile |
| 389 | none/tests/Makefile |
njn | 9bc8c00 | 2002-10-02 13:49:13 +0000 | [diff] [blame] | 390 | none/docs/Makefile |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 391 | ) |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 392 | |
| 393 | cat<<EOF |
| 394 | |
| 395 | Using the following suppressions by default: |
| 396 | |
| 397 | ${DEFAULT_SUPP} |
| 398 | EOF |
| 399 | |
| 400 | cat<<EOF > default.supp |
| 401 | # This is a generated file, composed of the following suppression rules: |
| 402 | # |
| 403 | # ${DEFAULT_SUPP} |
| 404 | # |
| 405 | |
| 406 | EOF |
| 407 | |
| 408 | for file in ${DEFAULT_SUPP} ; do |
| 409 | cat ${srcdir}/$file >> default.supp |
| 410 | done |