r18083: i should sleep more ....
[samba.git] / source / lib / talloc / libtalloc.m4
1 dnl find the talloc sources. This is meant to work both for 
2 dnl talloc standalone builds, and builds of packages using talloc
3 tallocdir=""
4 for d in "$srcdir" "$srcdir/lib/talloc" "$srcdir/talloc" "$srcdir/../talloc"; do
5         if test -f "$d/talloc.c"; then
6                 tallocdir="$d"          
7                 AC_SUBST(tallocdir)
8                 break;
9         fi
10 done
11 TALLOCOBJ="talloc.o"
12 AC_SUBST(TALLOCOBJ)
13
14 AC_CHECK_SIZEOF(size_t,cross)
15 AC_CHECK_SIZEOF(void *,cross)
16
17 if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
18         AC_WARN([size_t cannot represent the amount of used memory of a process])
19         AC_WARN([please report this to <samba-technical@samba.org>])
20         AC_WARN([sizeof(size_t) = $ac_cv_sizeof_size_t])
21         AC_WARN([sizeof(void *) = $ac_cv_sizeof_void_p])
22         AC_ERROR([sizeof(size_t) < sizeof(void *)])
23 fi