source: trunk-3.0/source/lib/talloc/libtalloc.m4@ 102

Last change on this file since 102 was 1, checked in by Paul Smedley, 18 years ago

Initial code import

File size: 877 bytes
Line 
1dnl find the talloc sources. This is meant to work both for
2dnl talloc standalone builds, and builds of packages using talloc
3tallocdir=""
4tallocpaths="$srcdir $srcdir/lib/talloc $srcdir/talloc $srcdir/../talloc"
5for d in $tallocpaths; do
6 if test -f "$d/talloc.c"; then
7 tallocdir="$d"
8 AC_SUBST(tallocdir)
9 break;
10 fi
11done
12if test x"$tallocdir" = "x"; then
13 AC_MSG_ERROR([cannot find talloc source in $tallocpaths])
14fi
15TALLOCOBJ="talloc.o"
16AC_SUBST(TALLOCOBJ)
17
18AC_CHECK_SIZEOF(size_t,cross)
19AC_CHECK_SIZEOF(void *,cross)
20
21if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
22 AC_WARN([size_t cannot represent the amount of used memory of a process])
23 AC_WARN([please report this to <samba-technical@samba.org>])
24 AC_WARN([sizeof(size_t) = $ac_cv_sizeof_size_t])
25 AC_WARN([sizeof(void *) = $ac_cv_sizeof_void_p])
26 AC_ERROR([sizeof(size_t) < sizeof(void *)])
27fi
Note: See TracBrowser for help on using the repository browser.