blob: d7da4451dc272f3747e5fe80afc08103950e3332 [file] [log] [blame]
sewardjde4a1d02002-03-22 01:27:54 +00001# Process this file with autoconf to produce a configure script.
sewardj278c1fc2005-09-28 11:51:17 +00002AC_INIT(Valgrind, 3.1.SVN, valgrind-users@lists.sourceforge.net)
njn04e16982005-05-31 00:23:43 +00003AC_CONFIG_SRCDIR(coregrind/m_main.c)
sewardjde4a1d02002-03-22 01:27:54 +00004AM_CONFIG_HEADER(config.h)
thughes6dbad732004-08-29 09:46:38 +00005AM_INIT_AUTOMAKE
sewardjde4a1d02002-03-22 01:27:54 +00006
gobryb0ed4672002-03-27 20:58:58 +00007AM_MAINTAINER_MODE
8
njn8738c282004-11-23 16:31:56 +00009# Where is VEX ?
njnfe408942004-11-23 17:52:24 +000010# Nb: For the 2nd arg, the help string, AS_HELP_STRING is the proper way, but
11# older autoconfs don't support it... here's what it would say:
12#
sewardj85a9dca2005-07-26 10:42:57 +000013# AS_HELP_STRING([--with-vex], [Vex directory]),
njnfe408942004-11-23 17:52:24 +000014#
njn8738c282004-11-23 16:31:56 +000015AC_ARG_WITH(vex,
sewardj85a9dca2005-07-26 10:42:57 +000016 [ --with-vex=/path/to/vex/dir Vex directory],
njn8738c282004-11-23 16:31:56 +000017[
18 AC_CHECK_FILE($withval/pub/libvex.h,
19 [VEX_DIR=$withval],
20 [AC_MSG_ERROR([Directory '$withval' does not exist, or does not contain Vex])])
21],
22[
njn17adf1e2005-09-16 03:59:37 +000023 VEX_DIR='$(top_srcdir)/VEX'
njn8738c282004-11-23 16:31:56 +000024])
sewardj50629ec2004-11-22 13:44:11 +000025AC_SUBST(VEX_DIR)
26
njn657d9512005-06-24 15:20:52 +000027# "make distcheck" first builds a tarball, then extracts it.
28# Then it creates a build directory different from the extracted sources
29# (called _build), and issues
30#
31# ../configure $(DISTCHECK_CONFIGURE_FLAGS)
32#
33# and then builds, runs "make check", installs using DESTDIR, runs make
34# installcheck, uninstalls, checks whether the installed base is empty
35# again, then does yet another "make dist" and compares the resulting
36# tarball with the one it started off with for identical content. Then it
37# tests "make distclean" for no leftover files.
38#
39# So this line means: when doing "make dist", use the same --with-vex value
40# that you used when running configure to configure this tree in the first
41# place.
42AC_SUBST([DISTCHECK_CONFIGURE_FLAGS], [--with-vex=$VEX_DIR])
43
sewardjde4a1d02002-03-22 01:27:54 +000044# Checks for programs.
sewardjb5f6f512005-03-10 23:59:00 +000045CFLAGS="-Wno-long-long"
gobrye721a522002-03-22 13:38:30 +000046
sewardjde4a1d02002-03-22 01:27:54 +000047AC_PROG_LN_S
48AC_PROG_CC
njnca0518d2004-11-26 19:34:36 +000049##AM_PROG_CC_C_O
sewardjde4a1d02002-03-22 01:27:54 +000050AC_PROG_CPP
njn25e49d8e72002-09-23 09:36:25 +000051AC_PROG_CXX
sewardjde4a1d02002-03-22 01:27:54 +000052AC_PROG_RANLIB
53
gobrye721a522002-03-22 13:38:30 +000054# Check for the compiler support
55if test "${GCC}" != "yes" ; then
56 AC_MSG_ERROR([Valgrind relies on GCC to be compiled])
57fi
58
sewardj2f685952002-12-22 19:32:23 +000059# figure out where perl lives
60AC_PATH_PROG(PERL, perl)
61
njn9315df32003-04-16 20:50:50 +000062# figure out where gdb lives
63AC_PATH_PROG(GDB, gdb)
njnfe408942004-11-23 17:52:24 +000064AC_DEFINE_UNQUOTED(GDB_PATH, "$GDB", [path to GDB])
njn9315df32003-04-16 20:50:50 +000065
daywalker48ccca52002-04-15 00:31:58 +000066# some older automake's don't have it so try something on our own
67ifdef([AM_PROG_AS],[AM_PROG_AS],
68[
gobry1be19852002-03-26 20:44:55 +000069AS="${CC}"
70AC_SUBST(AS)
gobry3b777892002-04-04 09:18:39 +000071
gobry1be19852002-03-26 20:44:55 +000072ASFLAGS=""
73AC_SUBST(ASFLAGS)
daywalker48ccca52002-04-15 00:31:58 +000074])
gobry3b777892002-04-04 09:18:39 +000075
76# This variable will collect the individual suppression files
77# depending on the results of autoconf
78
79DEFAULT_SUPP=""
80
81
sewardj535c50f2005-06-04 23:14:53 +000082# We don't want gcc < 3.0
gobrye721a522002-03-22 13:38:30 +000083AC_MSG_CHECKING([for a supported version of gcc])
84
daywalker870ac4c2002-05-21 00:09:48 +000085gcc_version=`${CC} --version | head -n 1`
gobrye721a522002-03-22 13:38:30 +000086
87case "${gcc_version}" in
88 gcc-2.7.*)
89 AC_MSG_RESULT([no (${gcc_version})])
sewardj535c50f2005-06-04 23:14:53 +000090 AC_MSG_ERROR([please use a recent (>= gcc-3.0) version of gcc])
91 ;;
92 gcc-2.8.*)
93 AC_MSG_RESULT([no (${gcc_version})])
94 AC_MSG_ERROR([please use a recent (>= gcc-3.0) version of gcc])
95 ;;
96 gcc-2.9*)
97 AC_MSG_RESULT([no (${gcc_version})])
98 AC_MSG_ERROR([please use a recent (>= gcc-3.0) version of gcc])
gobrye721a522002-03-22 13:38:30 +000099 ;;
100
101 *)
102 AC_MSG_RESULT([ok (${gcc_version})])
103 ;;
104esac
105
gobrye721a522002-03-22 13:38:30 +0000106
sewardjde4a1d02002-03-22 01:27:54 +0000107# Checks for the platform
108AC_CANONICAL_HOST
109
110AC_MSG_CHECKING([for a supported CPU])
nethercote888ecb72004-08-23 14:54:40 +0000111AC_SUBST(VG_ARCH)
njna5f1bcd2004-11-27 16:47:42 +0000112AC_SUBST(VG_ARCH_ALL)
njn4a830152005-07-02 23:13:59 +0000113VG_ARCH_ALL="amd64 ppc32 x86"
sewardj45f4e7c2005-09-27 19:20:21 +0000114AC_SUBST(VALT_LOAD_ADDRESS)
nethercotecf4d9972004-10-25 15:21:00 +0000115AC_SUBST(ARCH_CORE_AM_CFLAGS)
116AC_SUBST(ARCH_TOOL_AM_CFLAGS)
nethercote8df0a402004-10-25 19:20:14 +0000117AC_SUBST(ARCH_CORE_AM_CCASFLAGS)
sewardjde4a1d02002-03-22 01:27:54 +0000118
gobrye721a522002-03-22 13:38:30 +0000119case "${host_cpu}" in
sewardjde4a1d02002-03-22 01:27:54 +0000120 i?86)
121 AC_MSG_RESULT([ok (${host_cpu})])
nethercote888ecb72004-08-23 14:54:40 +0000122 VG_ARCH="x86"
sewardj45f4e7c2005-09-27 19:20:21 +0000123 valt_load_address_normal="0xb0000000"
124 valt_load_address_inner="0xa0000000"
sewardjfbd78b22005-06-19 16:14:06 +0000125 ARCH_CORE_AM_CFLAGS="@FLAG_M32@ @PREFERRED_STACK_BOUNDARY@"
sewardj535c50f2005-06-04 23:14:53 +0000126 ARCH_TOOL_AM_CFLAGS="@FLAG_M32@ @PREFERRED_STACK_BOUNDARY@"
127 ARCH_CORE_AM_CCASFLAGS="@FLAG_M32@"
sewardjde4a1d02002-03-22 01:27:54 +0000128 ;;
129
njnfe408942004-11-23 17:52:24 +0000130 x86_64)
131 AC_MSG_RESULT([ok (${host_cpu})])
132 VG_ARCH="amd64"
njnc6168192004-11-29 13:54:10 +0000133 # XXX: relocations under amd64's "small model" are 32-bit signed
njnfe408942004-11-23 17:52:24 +0000134 # quantities; therefore going above 0x7fffffff doesn't work... this is
135 # a problem.
sewardj45f4e7c2005-09-27 19:20:21 +0000136 valt_load_address_normal="0x70000000"
137 valt_load_address_inner="0x60000000"
sewardjfbd78b22005-06-19 16:14:06 +0000138 ARCH_CORE_AM_CFLAGS="-m64 -fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@"
njnc6168192004-11-29 13:54:10 +0000139 # XXX: need to use -fpic, otherwise when linking tools I get this error
140 # message:
141 # relocation R_X86_64_32 can not be used when making a shared object;
142 # recompile with -fPIC
143 #
144 # I don't understand... --njn
tom0064ee32005-05-17 16:13:15 +0000145 ARCH_TOOL_AM_CFLAGS="-m64 -fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@ -fpic"
146 ARCH_CORE_AM_CCASFLAGS="-m64"
njnfe408942004-11-23 17:52:24 +0000147 ;;
148
nethercote9bcc9062004-10-13 13:50:01 +0000149 powerpc*)
cerion85665ca2005-06-20 15:51:07 +0000150 AC_MSG_RESULT([ok (${host_cpu})])
151 VG_ARCH="ppc32"
sewardj45f4e7c2005-09-27 19:20:21 +0000152 valt_load_address_normal="0x70000000"
153 valt_load_address_inner="0x60000000"
sewardjfbd78b22005-06-19 16:14:06 +0000154 ARCH_CORE_AM_CFLAGS=""
nethercotecf4d9972004-10-25 15:21:00 +0000155 ARCH_TOOL_AM_CFLAGS="-fpic"
nethercote8df0a402004-10-25 19:20:14 +0000156 ARCH_CORE_AM_CCASFLAGS="-Wa,-maltivec"
nethercote9bcc9062004-10-13 13:50:01 +0000157 ;;
158
sewardjde4a1d02002-03-22 01:27:54 +0000159 *)
160 AC_MSG_RESULT([no (${host_cpu})])
nethercote81d5c662004-10-13 13:18:51 +0000161 AC_MSG_ERROR([Unsupported host architecture. Sorry])
sewardjde4a1d02002-03-22 01:27:54 +0000162 ;;
163esac
164
sewardj45f4e7c2005-09-27 19:20:21 +0000165# Check if this should be built as an inner Valgrind, to be run within
166# another Valgrind. Choose the load address accordingly.
167AC_CACHE_CHECK([enable use as an inner Valgrind], vg_cv_inner,
168 [AC_ARG_ENABLE(inner, [ --enable-inner enables self-hosting],
169 [vg_cv_inner=$enableval],
170 [vg_cv_inner=no])])
171if test "$vg_cv_inner" = yes; then
172 AC_DEFINE([ENABLE_INNER], 1, [configured to run as an inner Valgrind])
173 VALT_LOAD_ADDRESS=$valt_load_address_inner
174else
175 VALT_LOAD_ADDRESS=$valt_load_address_normal
176fi
177
sewardjde4a1d02002-03-22 01:27:54 +0000178AC_MSG_CHECKING([for a supported OS])
nethercote888ecb72004-08-23 14:54:40 +0000179AC_SUBST(VG_OS)
njna5f1bcd2004-11-27 16:47:42 +0000180AC_SUBST(VG_OS_ALL)
181VG_OS_ALL="linux"
sewardjde4a1d02002-03-22 01:27:54 +0000182
gobrye721a522002-03-22 13:38:30 +0000183case "${host_os}" in
mueller8c68e042004-01-03 15:21:14 +0000184 *linux*)
sewardjde4a1d02002-03-22 01:27:54 +0000185 AC_MSG_RESULT([ok (${host_os})])
nethercote888ecb72004-08-23 14:54:40 +0000186 VG_OS="linux"
mueller8c68e042004-01-03 15:21:14 +0000187
188 # Ok, this is linux. Check the kernel version
189 AC_MSG_CHECKING([for the kernel version])
190
191 kernel=`uname -r`
192
193 case "${kernel}" in
194 2.6.*)
195 AC_MSG_RESULT([2.6 family (${kernel})])
196 AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
197 ;;
198
199 2.4.*)
200 AC_MSG_RESULT([2.4 family (${kernel})])
201 AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
202 ;;
203
mueller8c68e042004-01-03 15:21:14 +0000204 *)
205 AC_MSG_RESULT([unsupported (${kernel})])
nethercote4fa681f2004-11-08 17:51:39 +0000206 AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
mueller8c68e042004-01-03 15:21:14 +0000207 ;;
208 esac
209
210 ;;
211
212 *freebsd*)
213 AC_MSG_RESULT([ok (${host_os})])
nethercote888ecb72004-08-23 14:54:40 +0000214 VG_OS="freebsd"
sewardjde4a1d02002-03-22 01:27:54 +0000215 ;;
216
217 *)
218 AC_MSG_RESULT([no (${host_os})])
mueller8c68e042004-01-03 15:21:14 +0000219 AC_MSG_ERROR([Valgrind is operating system specific. Sorry. Please consider doing a port.])
sewardjde4a1d02002-03-22 01:27:54 +0000220 ;;
221esac
222
nethercote888ecb72004-08-23 14:54:40 +0000223AC_MSG_CHECKING([for a supported CPU/OS combination])
224AC_SUBST(VG_PLATFORM)
njna5f1bcd2004-11-27 16:47:42 +0000225AC_SUBST(VG_PLATFORM_ALL)
njn4a830152005-07-02 23:13:59 +0000226VG_PLATFORM_ALL="amd64-linux ppc32-linux x86-linux"
nethercote888ecb72004-08-23 14:54:40 +0000227
228VG_PLATFORM="$VG_ARCH-$VG_OS"
229
230case $VG_PLATFORM in
njn4a830152005-07-02 23:13:59 +0000231 x86-linux|amd64-linux|ppc32-linux)
sewardj3e38ce02004-11-23 01:17:29 +0000232 AC_MSG_RESULT([ok (${host_cpu}-${host_os})])
233 ;;
234
nethercote888ecb72004-08-23 14:54:40 +0000235 *)
236 AC_MSG_RESULT([no (${host_cpu}-${host_os})])
sewardj3e38ce02004-11-23 01:17:29 +0000237 AC_MSG_ERROR([Valgrind is platform specific. Sorry. Please consider doing a port.])
nethercote888ecb72004-08-23 14:54:40 +0000238 ;;
239esac
sewardjde4a1d02002-03-22 01:27:54 +0000240
sewardjde4a1d02002-03-22 01:27:54 +0000241AC_SUBST(DEFAULT_SUPP)
242
sewardjde4a1d02002-03-22 01:27:54 +0000243glibc=""
244
sewardjde4a1d02002-03-22 01:27:54 +0000245AC_EGREP_CPP([GLIBC_22], [
246#include <features.h>
247#ifdef __GNU_LIBRARY__
248 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2)
249 GLIBC_22
250 #endif
251#endif
252],
253glibc="2.2")
254
sewardj08c7f012002-10-07 23:56:55 +0000255AC_EGREP_CPP([GLIBC_23], [
256#include <features.h>
257#ifdef __GNU_LIBRARY__
258 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 3)
259 GLIBC_23
260 #endif
261#endif
262],
263glibc="2.3")
264
njn781dba52005-06-30 04:06:38 +0000265AC_EGREP_CPP([GLIBC_24], [
266#include <features.h>
267#ifdef __GNU_LIBRARY__
268 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 4)
269 GLIBC_24
270 #endif
271#endif
272],
273glibc="2.4")
274
daywalkere9212b32003-06-15 22:39:15 +0000275AC_MSG_CHECKING([the glibc version])
276
gobrye721a522002-03-22 13:38:30 +0000277case "${glibc}" in
sewardjde4a1d02002-03-22 01:27:54 +0000278 2.2)
279 AC_MSG_RESULT(2.2 family)
daywalker418c7482002-10-16 13:09:26 +0000280 AC_DEFINE([GLIBC_2_2], 1, [Define to 1 if you're using glibc 2.2.x])
gobry3b777892002-04-04 09:18:39 +0000281 DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.2.supp"
sewardjde4a1d02002-03-22 01:27:54 +0000282 ;;
283
sewardj08c7f012002-10-07 23:56:55 +0000284 2.3)
285 AC_MSG_RESULT(2.3 family)
daywalker418c7482002-10-16 13:09:26 +0000286 AC_DEFINE([GLIBC_2_3], 1, [Define to 1 if you're using glibc 2.3.x])
daywalker63f6f782003-05-27 00:19:52 +0000287 DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.3.supp"
sewardj08c7f012002-10-07 23:56:55 +0000288 ;;
289
njn781dba52005-06-30 04:06:38 +0000290 2.4)
291 AC_MSG_RESULT(2.4 family)
292 AC_DEFINE([GLIBC_2_4], 1, [Define to 1 if you're using glibc 2.4.x])
293 DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.4.supp"
294 ;;
295
sewardjde4a1d02002-03-22 01:27:54 +0000296 *)
297 AC_MSG_RESULT(unsupported version)
sewardj3080a862005-07-03 10:18:33 +0000298 AC_MSG_ERROR([Valgrind requires glibc version 2.2, 2.3 or 2.4])
sewardjde4a1d02002-03-22 01:27:54 +0000299 ;;
300esac
301
sewardj535c50f2005-06-04 23:14:53 +0000302
nethercote3d260f62004-10-31 19:39:18 +0000303# We don't know how to detect the X client library version
304# (detecting the server version is easy, bu no help). So we
305# just use a hack: always include the suppressions for both
306# versions 3 and 4.
gobrye721a522002-03-22 13:38:30 +0000307AC_PATH_X
gobrye721a522002-03-22 13:38:30 +0000308if test "${no_x}" != 'yes' ; then
nethercote3d260f62004-10-31 19:39:18 +0000309 DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp"
310 DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp"
gobrye721a522002-03-22 13:38:30 +0000311fi
312
sewardj2e10a682003-04-07 19:36:41 +0000313
sewardj535c50f2005-06-04 23:14:53 +0000314# does this compiler support -m32 ?
315AC_MSG_CHECKING([if gcc accepts -m32])
316
317safe_CFLAGS=$CFLAGS
318CFLAGS="-m32"
319
320AC_TRY_COMPILE(, [
321int main () { return 0 ; }
322],
323[
324FLAG_M32="-m32"
325AC_MSG_RESULT([yes])
326], [
327FLAG_M32=""
328AC_MSG_RESULT([no])
329])
330CFLAGS=$safe_CFLAGS
331
332AC_SUBST(FLAG_M32)
333
334
sewardj67f1fcc2005-07-03 10:41:02 +0000335# does this compiler support -mmmx ?
336AC_MSG_CHECKING([if gcc accepts -mmmx])
337
338safe_CFLAGS=$CFLAGS
339CFLAGS="-mmmx"
340
341AC_TRY_COMPILE(, [
342int main () { return 0 ; }
343],
344[
345FLAG_MMMX="-mmmx"
346AC_MSG_RESULT([yes])
347], [
348FLAG_MMMX=""
349AC_MSG_RESULT([no])
350])
351CFLAGS=$safe_CFLAGS
352
353AC_SUBST(FLAG_MMMX)
354
355
356# does this compiler support -msse ?
357AC_MSG_CHECKING([if gcc accepts -msse])
358
359safe_CFLAGS=$CFLAGS
360CFLAGS="-msse"
361
362AC_TRY_COMPILE(, [
363int main () { return 0 ; }
364],
365[
366FLAG_MSSE="-msse"
367AC_MSG_RESULT([yes])
368], [
369FLAG_MSSE=""
370AC_MSG_RESULT([no])
371])
372CFLAGS=$safe_CFLAGS
373
374AC_SUBST(FLAG_MSSE)
375
376
sewardj5b754b42002-06-03 22:53:35 +0000377# does this compiler support -mpreferred-stack-boundary=2 ?
378AC_MSG_CHECKING([if gcc accepts -mpreferred-stack-boundary])
379
daywalker3664f562003-10-17 13:43:46 +0000380safe_CFLAGS=$CFLAGS
sewardj5b754b42002-06-03 22:53:35 +0000381CFLAGS="-mpreferred-stack-boundary=2"
382
383AC_TRY_COMPILE(, [
sewardj5b754b42002-06-03 22:53:35 +0000384int main () { return 0 ; }
sewardj5b754b42002-06-03 22:53:35 +0000385],
386[
387PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
daywalker3664f562003-10-17 13:43:46 +0000388AC_MSG_RESULT([yes])
sewardj5b754b42002-06-03 22:53:35 +0000389], [
390PREFERRED_STACK_BOUNDARY=""
391AC_MSG_RESULT([no])
392])
daywalker3664f562003-10-17 13:43:46 +0000393CFLAGS=$safe_CFLAGS
sewardj5b754b42002-06-03 22:53:35 +0000394
395AC_SUBST(PREFERRED_STACK_BOUNDARY)
396
sewardj535c50f2005-06-04 23:14:53 +0000397
sewardjb5f6f512005-03-10 23:59:00 +0000398# does this compiler support -Wno-pointer-sign ?
399AC_MSG_CHECKING([if gcc accepts -Wno-pointer-sign ])
400
401safe_CFLAGS=$CFLAGS
402CFLAGS="-Wno-pointer-sign"
403
404AC_TRY_COMPILE(, [
405int main () { return 0 ; }
406],
407[
408no_pointer_sign=yes
409AC_MSG_RESULT([yes])
410], [
411no_pointer_sign=no
412AC_MSG_RESULT([no])
413])
414CFLAGS=$safe_CFLAGS
415
416if test x$no_pointer_sign = xyes; then
417 CFLAGS="$CFLAGS -Wno-pointer-sign"
418fi
419
sewardj535c50f2005-06-04 23:14:53 +0000420
sewardjb5f6f512005-03-10 23:59:00 +0000421# Check for TLS support in the compiler and linker
422AC_CACHE_CHECK([for TLS support], vg_cv_tls,
423 [AC_ARG_ENABLE(tls, [ --enable-tls platform supports TLS],
424 [vg_cv_tls=$enableval],
425 [AC_RUN_IFELSE([AC_LANG_PROGRAM([[static __thread int foo;]],
426 [[return foo;]])],
427 [vg_cv_tls=yes],
428 [vg_cv_tls=no])])])
429
430if test "$vg_cv_tls" = yes; then
431AC_DEFINE([HAVE_TLS], 1, [can use __thread to define thread-local variables])
432fi
sewardj5b754b42002-06-03 22:53:35 +0000433
sewardj535c50f2005-06-04 23:14:53 +0000434
sewardjde4a1d02002-03-22 01:27:54 +0000435# Checks for header files.
436AC_HEADER_STDC
nethercote3d260f62004-10-31 19:39:18 +0000437AC_CHECK_HEADERS([sys/endian.h endian.h mqueue.h])
sewardjde4a1d02002-03-22 01:27:54 +0000438
sewardj535c50f2005-06-04 23:14:53 +0000439
sewardjde4a1d02002-03-22 01:27:54 +0000440# Checks for typedefs, structures, and compiler characteristics.
sewardjde4a1d02002-03-22 01:27:54 +0000441AC_TYPE_UID_T
442AC_TYPE_OFF_T
443AC_TYPE_SIZE_T
444AC_HEADER_TIME
445
sewardj535c50f2005-06-04 23:14:53 +0000446
sewardjde4a1d02002-03-22 01:27:54 +0000447# Checks for library functions.
448AC_FUNC_MEMCMP
449AC_FUNC_MMAP
450AC_TYPE_SIGNAL
451
thughesbeb6eb92004-06-14 12:33:43 +0000452AC_CHECK_FUNCS([floor memchr memset mkdir strchr strdup strpbrk strrchr strstr semtimedop])
sewardjde4a1d02002-03-22 01:27:54 +0000453
gobrye721a522002-03-22 13:38:30 +0000454AC_OUTPUT(
sewardjde4a1d02002-03-22 01:27:54 +0000455 Makefile
njn25cac76cb2002-09-23 11:21:57 +0000456 valgrind.spec
muellerbddd6072003-11-19 21:50:07 +0000457 valgrind.pc
njn254d542432002-09-23 16:09:39 +0000458 docs/Makefile
njn3e986b22004-11-30 10:43:45 +0000459 docs/lib/Makefile
460 docs/images/Makefile
njnf7c00b12005-07-19 21:46:19 +0000461 docs/internals/Makefile
njn3e986b22004-11-30 10:43:45 +0000462 docs/xml/Makefile
njn254d542432002-09-23 16:09:39 +0000463 tests/Makefile
njnc2e7f482002-09-27 08:44:17 +0000464 tests/vg_regtest
njn254d542432002-09-23 16:09:39 +0000465 include/Makefile
njn7a6e7462002-11-09 17:53:30 +0000466 auxprogs/Makefile
njn25ab726032002-09-23 16:24:41 +0000467 coregrind/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000468 addrcheck/Makefile
njnf2df9b52002-10-04 11:35:47 +0000469 addrcheck/tests/Makefile
njn7da8fa72002-10-03 10:38:40 +0000470 addrcheck/docs/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000471 memcheck/Makefile
472 memcheck/tests/Makefile
njnc6168192004-11-29 13:54:10 +0000473 memcheck/tests/amd64/Makefile
cerion85665ca2005-06-20 15:51:07 +0000474 memcheck/tests/ppc32/Makefile
njnc6168192004-11-29 13:54:10 +0000475 memcheck/tests/x86/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000476 memcheck/docs/Makefile
477 cachegrind/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000478 cachegrind/tests/Makefile
njnc6168192004-11-29 13:54:10 +0000479 cachegrind/tests/amd64/Makefile
cerion85665ca2005-06-20 15:51:07 +0000480 cachegrind/tests/ppc32/Makefile
njnc6168192004-11-29 13:54:10 +0000481 cachegrind/tests/x86/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000482 cachegrind/docs/Makefile
njnf2df9b52002-10-04 11:35:47 +0000483 cachegrind/cg_annotate
njn25cac76cb2002-09-23 11:21:57 +0000484 helgrind/Makefile
njnf2df9b52002-10-04 11:35:47 +0000485 helgrind/tests/Makefile
njn83157fc2002-10-03 10:07:34 +0000486 helgrind/docs/Makefile
nethercotec9f36922004-02-14 16:40:02 +0000487 massif/Makefile
488 massif/hp2ps/Makefile
489 massif/tests/Makefile
490 massif/docs/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000491 lackey/Makefile
njnf2df9b52002-10-04 11:35:47 +0000492 lackey/tests/Makefile
njn83157fc2002-10-03 10:07:34 +0000493 lackey/docs/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000494 none/Makefile
495 none/tests/Makefile
njnc6168192004-11-29 13:54:10 +0000496 none/tests/amd64/Makefile
cerion85665ca2005-06-20 15:51:07 +0000497 none/tests/ppc32/Makefile
njnc6168192004-11-29 13:54:10 +0000498 none/tests/x86/Makefile
njn9bc8c002002-10-02 13:49:13 +0000499 none/docs/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000500)
gobry3b777892002-04-04 09:18:39 +0000501
502cat<<EOF
503
504Using the following suppressions by default:
505
506 ${DEFAULT_SUPP}
507EOF
508
509cat<<EOF > default.supp
510# This is a generated file, composed of the following suppression rules:
511#
512# ${DEFAULT_SUPP}
513#
514
515EOF
516
517for file in ${DEFAULT_SUPP} ; do
518 cat ${srcdir}/$file >> default.supp
519done