1 dnl find the talloc sources. This is meant to work both for
2 dnl talloc standalone builds, and builds of packages using talloc
4 tallocpaths=". lib/talloc talloc ../talloc ../lib/talloc"
5 for d in $tallocpaths; do
6 if test -f "$srcdir/$d/talloc.c"; then
12 if test x"$tallocdir" = "x"; then
13 AC_MSG_ERROR([cannot find talloc source in $tallocpaths])
18 TALLOC_CFLAGS="-I$srcdir/$tallocdir"
19 AC_SUBST(TALLOC_CFLAGS)
24 AC_CHECK_SIZEOF(size_t,cross)
25 AC_CHECK_SIZEOF(void *,cross)
27 if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
28 AC_WARN([size_t cannot represent the amount of used memory of a process])
29 AC_WARN([please report this to <samba-technical@samba.org>])
30 AC_WARN([sizeof(size_t) = $ac_cv_sizeof_size_t])
31 AC_WARN([sizeof(void *) = $ac_cv_sizeof_void_p])
32 AC_ERROR([sizeof(size_t) < sizeof(void *)])
35 if test x"$VERSIONSCRIPT" != "x"; then
36 EXPORTSFILE=talloc.exports