blob: b68c53665f967e8a05c528c777d04a12e51c6b96 [file] [log] [blame]
sewardjde4a1d02002-03-22 01:27:54 +00001# Process this file with autoconf to produce a configure script.
sewardjc62cc062005-03-19 23:45:04 +00002AC_INIT(Valgrind, 3.0.0.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#
13# AS_HELP_STRING([--with-vex], [Vex directory (must be specified!)]),
14#
njn8738c282004-11-23 16:31:56 +000015AC_ARG_WITH(vex,
sewardj2a99cf62004-11-24 10:44:19 +000016 [ --with-vex=/path/to/vex/dir Vex directory (must be specified!)],
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[
sewardj2a99cf62004-11-24 10:44:19 +000023 AC_MSG_ERROR([You must specify --with-vex=/path/to/vex/dir])
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)
cerion85665ca2005-06-20 15:51:07 +0000113VG_ARCH_ALL="amd64 arm ppc32 x86"
nethercote2b72e942004-10-25 14:05:56 +0000114AC_SUBST(KICKSTART_BASE)
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"
nethercote2b72e942004-10-25 14:05:56 +0000123 KICKSTART_BASE="0xb0000000"
sewardjfbd78b22005-06-19 16:14:06 +0000124 ARCH_CORE_AM_CFLAGS="@FLAG_M32@ @PREFERRED_STACK_BOUNDARY@"
sewardj535c50f2005-06-04 23:14:53 +0000125 ARCH_TOOL_AM_CFLAGS="@FLAG_M32@ @PREFERRED_STACK_BOUNDARY@"
126 ARCH_CORE_AM_CCASFLAGS="@FLAG_M32@"
sewardjde4a1d02002-03-22 01:27:54 +0000127 ;;
128
njnfe408942004-11-23 17:52:24 +0000129 x86_64)
130 AC_MSG_RESULT([ok (${host_cpu})])
131 VG_ARCH="amd64"
njnc6168192004-11-29 13:54:10 +0000132 # XXX: relocations under amd64's "small model" are 32-bit signed
njnfe408942004-11-23 17:52:24 +0000133 # quantities; therefore going above 0x7fffffff doesn't work... this is
134 # a problem.
135 KICKSTART_BASE="0x70000000"
sewardjfbd78b22005-06-19 16:14:06 +0000136 ARCH_CORE_AM_CFLAGS="-m64 -fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@"
njnc6168192004-11-29 13:54:10 +0000137 # XXX: need to use -fpic, otherwise when linking tools I get this error
138 # message:
139 # relocation R_X86_64_32 can not be used when making a shared object;
140 # recompile with -fPIC
141 #
142 # I don't understand... --njn
tom0064ee32005-05-17 16:13:15 +0000143 ARCH_TOOL_AM_CFLAGS="-m64 -fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@ -fpic"
144 ARCH_CORE_AM_CCASFLAGS="-m64"
njnfe408942004-11-23 17:52:24 +0000145 ;;
146
sewardj3e38ce02004-11-23 01:17:29 +0000147 arm*)
148 AC_MSG_RESULT([ok (${host_cpu})])
149 VG_ARCH="arm"
150 KICKSTART_BASE="0xb0000000"
sewardjfbd78b22005-06-19 16:14:06 +0000151 ARCH_CORE_AM_CFLAGS="-fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@"
sewardj3e38ce02004-11-23 01:17:29 +0000152 ARCH_TOOL_AM_CFLAGS="-fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@"
153 ARCH_CORE_AM_CCASFLAGS=""
154 ;;
155
nethercote9bcc9062004-10-13 13:50:01 +0000156 powerpc*)
cerion85665ca2005-06-20 15:51:07 +0000157 AC_MSG_RESULT([ok (${host_cpu})])
158 VG_ARCH="ppc32"
sewardjed0c4cb2005-06-21 10:07:25 +0000159 KICKSTART_BASE="0x70000000"
sewardjfbd78b22005-06-19 16:14:06 +0000160 ARCH_CORE_AM_CFLAGS=""
nethercotecf4d9972004-10-25 15:21:00 +0000161 ARCH_TOOL_AM_CFLAGS="-fpic"
nethercote8df0a402004-10-25 19:20:14 +0000162 ARCH_CORE_AM_CCASFLAGS="-Wa,-maltivec"
nethercote9bcc9062004-10-13 13:50:01 +0000163 ;;
164
sewardjde4a1d02002-03-22 01:27:54 +0000165 *)
166 AC_MSG_RESULT([no (${host_cpu})])
nethercote81d5c662004-10-13 13:18:51 +0000167 AC_MSG_ERROR([Unsupported host architecture. Sorry])
sewardjde4a1d02002-03-22 01:27:54 +0000168 ;;
169esac
170
171AC_MSG_CHECKING([for a supported OS])
nethercote888ecb72004-08-23 14:54:40 +0000172AC_SUBST(VG_OS)
njna5f1bcd2004-11-27 16:47:42 +0000173AC_SUBST(VG_OS_ALL)
174VG_OS_ALL="linux"
sewardjde4a1d02002-03-22 01:27:54 +0000175
gobrye721a522002-03-22 13:38:30 +0000176case "${host_os}" in
mueller8c68e042004-01-03 15:21:14 +0000177 *linux*)
sewardjde4a1d02002-03-22 01:27:54 +0000178 AC_MSG_RESULT([ok (${host_os})])
nethercote888ecb72004-08-23 14:54:40 +0000179 VG_OS="linux"
mueller8c68e042004-01-03 15:21:14 +0000180
181 # Ok, this is linux. Check the kernel version
182 AC_MSG_CHECKING([for the kernel version])
183
184 kernel=`uname -r`
185
186 case "${kernel}" in
187 2.6.*)
188 AC_MSG_RESULT([2.6 family (${kernel})])
189 AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
190 ;;
191
192 2.4.*)
193 AC_MSG_RESULT([2.4 family (${kernel})])
194 AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
195 ;;
196
mueller8c68e042004-01-03 15:21:14 +0000197 *)
198 AC_MSG_RESULT([unsupported (${kernel})])
nethercote4fa681f2004-11-08 17:51:39 +0000199 AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
mueller8c68e042004-01-03 15:21:14 +0000200 ;;
201 esac
202
203 ;;
204
205 *freebsd*)
206 AC_MSG_RESULT([ok (${host_os})])
nethercote888ecb72004-08-23 14:54:40 +0000207 VG_OS="freebsd"
sewardjde4a1d02002-03-22 01:27:54 +0000208 ;;
209
210 *)
211 AC_MSG_RESULT([no (${host_os})])
mueller8c68e042004-01-03 15:21:14 +0000212 AC_MSG_ERROR([Valgrind is operating system specific. Sorry. Please consider doing a port.])
sewardjde4a1d02002-03-22 01:27:54 +0000213 ;;
214esac
215
nethercote888ecb72004-08-23 14:54:40 +0000216AC_MSG_CHECKING([for a supported CPU/OS combination])
217AC_SUBST(VG_PLATFORM)
njna5f1bcd2004-11-27 16:47:42 +0000218AC_SUBST(VG_PLATFORM_ALL)
cerion85665ca2005-06-20 15:51:07 +0000219VG_PLATFORM_ALL="amd64-linux arm-linux ppc32-linux x86-linux"
nethercote888ecb72004-08-23 14:54:40 +0000220
221VG_PLATFORM="$VG_ARCH-$VG_OS"
222
223case $VG_PLATFORM in
cerion85665ca2005-06-20 15:51:07 +0000224 x86-linux|amd64-linux|arm-linux|ppc32-linux)
sewardj3e38ce02004-11-23 01:17:29 +0000225 AC_MSG_RESULT([ok (${host_cpu}-${host_os})])
226 ;;
227
nethercote888ecb72004-08-23 14:54:40 +0000228 *)
229 AC_MSG_RESULT([no (${host_cpu}-${host_os})])
sewardj3e38ce02004-11-23 01:17:29 +0000230 AC_MSG_ERROR([Valgrind is platform specific. Sorry. Please consider doing a port.])
nethercote888ecb72004-08-23 14:54:40 +0000231 ;;
232esac
sewardjde4a1d02002-03-22 01:27:54 +0000233
sewardjde4a1d02002-03-22 01:27:54 +0000234AC_SUBST(DEFAULT_SUPP)
235
sewardjde4a1d02002-03-22 01:27:54 +0000236glibc=""
237
238AC_EGREP_CPP([GLIBC_21], [
239#include <features.h>
240#ifdef __GNU_LIBRARY__
241 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 1)
242 GLIBC_21
243 #endif
244#endif
245],
246glibc="2.1")
247
248AC_EGREP_CPP([GLIBC_22], [
249#include <features.h>
250#ifdef __GNU_LIBRARY__
251 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2)
252 GLIBC_22
253 #endif
254#endif
255],
256glibc="2.2")
257
sewardj08c7f012002-10-07 23:56:55 +0000258AC_EGREP_CPP([GLIBC_23], [
259#include <features.h>
260#ifdef __GNU_LIBRARY__
261 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 3)
262 GLIBC_23
263 #endif
264#endif
265],
266glibc="2.3")
267
daywalkere9212b32003-06-15 22:39:15 +0000268AC_MSG_CHECKING([the glibc version])
269
gobrye721a522002-03-22 13:38:30 +0000270case "${glibc}" in
sewardjde4a1d02002-03-22 01:27:54 +0000271 2.1)
272 AC_MSG_RESULT(2.1 family)
daywalker418c7482002-10-16 13:09:26 +0000273 AC_DEFINE([GLIBC_2_1], 1, [Define to 1 if you're using glibc 2.1.x])
gobry3b777892002-04-04 09:18:39 +0000274 DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.1.supp"
sewardjde4a1d02002-03-22 01:27:54 +0000275 ;;
276
277 2.2)
278 AC_MSG_RESULT(2.2 family)
daywalker418c7482002-10-16 13:09:26 +0000279 AC_DEFINE([GLIBC_2_2], 1, [Define to 1 if you're using glibc 2.2.x])
gobry3b777892002-04-04 09:18:39 +0000280 DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.2.supp"
sewardjde4a1d02002-03-22 01:27:54 +0000281 ;;
282
sewardj08c7f012002-10-07 23:56:55 +0000283 2.3)
284 AC_MSG_RESULT(2.3 family)
daywalker418c7482002-10-16 13:09:26 +0000285 AC_DEFINE([GLIBC_2_3], 1, [Define to 1 if you're using glibc 2.3.x])
daywalker63f6f782003-05-27 00:19:52 +0000286 DEFAULT_SUPP="${DEFAULT_SUPP} glibc-2.3.supp"
sewardj08c7f012002-10-07 23:56:55 +0000287 ;;
288
sewardjde4a1d02002-03-22 01:27:54 +0000289 *)
290 AC_MSG_RESULT(unsupported version)
sewardj08c7f012002-10-07 23:56:55 +0000291 AC_MSG_ERROR([Valgrind requires the glibc version 2.1, 2.2 or 2.3])
sewardjde4a1d02002-03-22 01:27:54 +0000292 ;;
293esac
294
sewardj535c50f2005-06-04 23:14:53 +0000295
nethercote3d260f62004-10-31 19:39:18 +0000296# We don't know how to detect the X client library version
297# (detecting the server version is easy, bu no help). So we
298# just use a hack: always include the suppressions for both
299# versions 3 and 4.
gobrye721a522002-03-22 13:38:30 +0000300AC_PATH_X
gobrye721a522002-03-22 13:38:30 +0000301if test "${no_x}" != 'yes' ; then
nethercote3d260f62004-10-31 19:39:18 +0000302 DEFAULT_SUPP="${DEFAULT_SUPP} xfree-4.supp"
303 DEFAULT_SUPP="${DEFAULT_SUPP} xfree-3.supp"
gobrye721a522002-03-22 13:38:30 +0000304fi
305
sewardj2e10a682003-04-07 19:36:41 +0000306
sewardj535c50f2005-06-04 23:14:53 +0000307# does this compiler support -m32 ?
308AC_MSG_CHECKING([if gcc accepts -m32])
309
310safe_CFLAGS=$CFLAGS
311CFLAGS="-m32"
312
313AC_TRY_COMPILE(, [
314int main () { return 0 ; }
315],
316[
317FLAG_M32="-m32"
318AC_MSG_RESULT([yes])
319], [
320FLAG_M32=""
321AC_MSG_RESULT([no])
322])
323CFLAGS=$safe_CFLAGS
324
325AC_SUBST(FLAG_M32)
326
327
sewardj5b754b42002-06-03 22:53:35 +0000328# does this compiler support -mpreferred-stack-boundary=2 ?
329AC_MSG_CHECKING([if gcc accepts -mpreferred-stack-boundary])
330
daywalker3664f562003-10-17 13:43:46 +0000331safe_CFLAGS=$CFLAGS
sewardj5b754b42002-06-03 22:53:35 +0000332CFLAGS="-mpreferred-stack-boundary=2"
333
334AC_TRY_COMPILE(, [
sewardj5b754b42002-06-03 22:53:35 +0000335int main () { return 0 ; }
sewardj5b754b42002-06-03 22:53:35 +0000336],
337[
338PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
daywalker3664f562003-10-17 13:43:46 +0000339AC_MSG_RESULT([yes])
sewardj5b754b42002-06-03 22:53:35 +0000340], [
341PREFERRED_STACK_BOUNDARY=""
342AC_MSG_RESULT([no])
343])
daywalker3664f562003-10-17 13:43:46 +0000344CFLAGS=$safe_CFLAGS
sewardj5b754b42002-06-03 22:53:35 +0000345
346AC_SUBST(PREFERRED_STACK_BOUNDARY)
347
sewardj535c50f2005-06-04 23:14:53 +0000348
sewardjb5f6f512005-03-10 23:59:00 +0000349# does this compiler support -Wno-pointer-sign ?
350AC_MSG_CHECKING([if gcc accepts -Wno-pointer-sign ])
351
352safe_CFLAGS=$CFLAGS
353CFLAGS="-Wno-pointer-sign"
354
355AC_TRY_COMPILE(, [
356int main () { return 0 ; }
357],
358[
359no_pointer_sign=yes
360AC_MSG_RESULT([yes])
361], [
362no_pointer_sign=no
363AC_MSG_RESULT([no])
364])
365CFLAGS=$safe_CFLAGS
366
367if test x$no_pointer_sign = xyes; then
368 CFLAGS="$CFLAGS -Wno-pointer-sign"
369fi
370
sewardj535c50f2005-06-04 23:14:53 +0000371
sewardjb5f6f512005-03-10 23:59:00 +0000372# Check for TLS support in the compiler and linker
373AC_CACHE_CHECK([for TLS support], vg_cv_tls,
374 [AC_ARG_ENABLE(tls, [ --enable-tls platform supports TLS],
375 [vg_cv_tls=$enableval],
376 [AC_RUN_IFELSE([AC_LANG_PROGRAM([[static __thread int foo;]],
377 [[return foo;]])],
378 [vg_cv_tls=yes],
379 [vg_cv_tls=no])])])
380
381if test "$vg_cv_tls" = yes; then
382AC_DEFINE([HAVE_TLS], 1, [can use __thread to define thread-local variables])
383fi
sewardj5b754b42002-06-03 22:53:35 +0000384
sewardj535c50f2005-06-04 23:14:53 +0000385
nethercote7f390022004-10-25 17:18:24 +0000386# Check for PIE support in the compiler and linker
tom78604412005-05-17 16:11:40 +0000387AC_SUBST(PIE_AM_CFLAGS)
nethercote7f390022004-10-25 17:18:24 +0000388AC_CACHE_CHECK([for PIE support], vg_cv_pie,
sewardjb5f6f512005-03-10 23:59:00 +0000389 [AC_ARG_ENABLE(pie, [ --enable-pie platform supports PIE linking],
390 [vg_cv_pie=$enableval],
391 [safe_CFLAGS=$CFLAGS
392 CFLAGS="$CFLAGS -fpie"
393 safe_LDFLAGS=$LDFLAGS
394 LDFLAGS="$LDFLAGS -pie"
395 AC_TRY_LINK([int foo;],
396 [],
397 [vg_cv_pie=yes],
398 [vg_cv_pie=no])
399 CFLAGS=$safe_CFLAGS
400 LDFLAGS=$safe_LDFLAGS])])
nethercote7f390022004-10-25 17:18:24 +0000401if test "$vg_cv_pie" = yes; then
402AC_DEFINE([HAVE_PIE], 1, [can create position-independent executables])
tom78604412005-05-17 16:11:40 +0000403PIE_AM_CFLAGS="-fpie"
nethercote7f390022004-10-25 17:18:24 +0000404fi
405AM_CONDITIONAL(USE_PIE, test "$vg_cv_pie" = "yes")
406
sewardj5b754b42002-06-03 22:53:35 +0000407
sewardjde4a1d02002-03-22 01:27:54 +0000408# Checks for header files.
409AC_HEADER_STDC
nethercote3d260f62004-10-31 19:39:18 +0000410AC_CHECK_HEADERS([sys/endian.h endian.h mqueue.h])
sewardjde4a1d02002-03-22 01:27:54 +0000411
sewardj535c50f2005-06-04 23:14:53 +0000412
sewardjde4a1d02002-03-22 01:27:54 +0000413# Checks for typedefs, structures, and compiler characteristics.
sewardjde4a1d02002-03-22 01:27:54 +0000414AC_TYPE_UID_T
415AC_TYPE_OFF_T
416AC_TYPE_SIZE_T
417AC_HEADER_TIME
418
sewardj535c50f2005-06-04 23:14:53 +0000419
sewardjde4a1d02002-03-22 01:27:54 +0000420# Checks for library functions.
421AC_FUNC_MEMCMP
422AC_FUNC_MMAP
423AC_TYPE_SIGNAL
424
thughesbeb6eb92004-06-14 12:33:43 +0000425AC_CHECK_FUNCS([floor memchr memset mkdir strchr strdup strpbrk strrchr strstr semtimedop])
sewardjde4a1d02002-03-22 01:27:54 +0000426
gobrye721a522002-03-22 13:38:30 +0000427AC_OUTPUT(
sewardjde4a1d02002-03-22 01:27:54 +0000428 Makefile
njn25cac76cb2002-09-23 11:21:57 +0000429 valgrind.spec
muellerbddd6072003-11-19 21:50:07 +0000430 valgrind.pc
njn254d542432002-09-23 16:09:39 +0000431 docs/Makefile
njn3e986b22004-11-30 10:43:45 +0000432 docs/lib/Makefile
433 docs/images/Makefile
434 docs/xml/Makefile
njn254d542432002-09-23 16:09:39 +0000435 tests/Makefile
njnc2e7f482002-09-27 08:44:17 +0000436 tests/vg_regtest
njn251ffab942002-09-23 16:42:19 +0000437 tests/unused/Makefile
njn254d542432002-09-23 16:09:39 +0000438 include/Makefile
njn7a6e7462002-11-09 17:53:30 +0000439 auxprogs/Makefile
njn25ab726032002-09-23 16:24:41 +0000440 coregrind/Makefile
sewardj55f9d1a2005-04-25 11:11:44 +0000441 coregrind/m_aspacemgr/Makefile
njnea27e462005-05-31 02:38:09 +0000442 coregrind/m_debuginfo/Makefile
njn36b66df2005-05-12 05:13:04 +0000443 coregrind/m_demangle/Makefile
444 coregrind/m_dispatch/Makefile
njn717cde52005-05-10 02:47:21 +0000445 coregrind/m_replacemalloc/Makefile
njn278b3d62005-05-30 23:20:51 +0000446 coregrind/m_scheduler/Makefile
njn2521d322005-05-08 14:45:13 +0000447 coregrind/m_sigframe/Makefile
njn8a4eeaf2005-06-17 22:27:21 +0000448 coregrind/m_syswrap/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000449 addrcheck/Makefile
njnf2df9b52002-10-04 11:35:47 +0000450 addrcheck/tests/Makefile
njn7da8fa72002-10-03 10:38:40 +0000451 addrcheck/docs/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000452 memcheck/Makefile
453 memcheck/tests/Makefile
njnc6168192004-11-29 13:54:10 +0000454 memcheck/tests/amd64/Makefile
njnca0518d2004-11-26 19:34:36 +0000455 memcheck/tests/arm/Makefile
cerion85665ca2005-06-20 15:51:07 +0000456 memcheck/tests/ppc32/Makefile
njnc6168192004-11-29 13:54:10 +0000457 memcheck/tests/x86/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000458 memcheck/docs/Makefile
459 cachegrind/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000460 cachegrind/tests/Makefile
njnc6168192004-11-29 13:54:10 +0000461 cachegrind/tests/amd64/Makefile
njnca0518d2004-11-26 19:34:36 +0000462 cachegrind/tests/arm/Makefile
cerion85665ca2005-06-20 15:51:07 +0000463 cachegrind/tests/ppc32/Makefile
njnc6168192004-11-29 13:54:10 +0000464 cachegrind/tests/x86/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000465 cachegrind/docs/Makefile
njnf2df9b52002-10-04 11:35:47 +0000466 cachegrind/cg_annotate
njn25cac76cb2002-09-23 11:21:57 +0000467 helgrind/Makefile
njnf2df9b52002-10-04 11:35:47 +0000468 helgrind/tests/Makefile
njn83157fc2002-10-03 10:07:34 +0000469 helgrind/docs/Makefile
nethercotec9f36922004-02-14 16:40:02 +0000470 massif/Makefile
471 massif/hp2ps/Makefile
472 massif/tests/Makefile
473 massif/docs/Makefile
474 corecheck/Makefile
475 corecheck/tests/Makefile
476 corecheck/docs/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000477 lackey/Makefile
njnf2df9b52002-10-04 11:35:47 +0000478 lackey/tests/Makefile
njn83157fc2002-10-03 10:07:34 +0000479 lackey/docs/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000480 none/Makefile
481 none/tests/Makefile
njnc6168192004-11-29 13:54:10 +0000482 none/tests/amd64/Makefile
njnca0518d2004-11-26 19:34:36 +0000483 none/tests/arm/Makefile
cerion85665ca2005-06-20 15:51:07 +0000484 none/tests/ppc32/Makefile
njnc6168192004-11-29 13:54:10 +0000485 none/tests/x86/Makefile
njn9bc8c002002-10-02 13:49:13 +0000486 none/docs/Makefile
njn25cac76cb2002-09-23 11:21:57 +0000487)
gobry3b777892002-04-04 09:18:39 +0000488
489cat<<EOF
490
491Using the following suppressions by default:
492
493 ${DEFAULT_SUPP}
494EOF
495
496cat<<EOF > default.supp
497# This is a generated file, composed of the following suppression rules:
498#
499# ${DEFAULT_SUPP}
500#
501
502EOF
503
504for file in ${DEFAULT_SUPP} ; do
505 cat ${srcdir}/$file >> default.supp
506done