source: branches/samba-3.5.x/lib/talloc/libtalloc.m4@ 773

Last change on this file since 773 was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 1.0 KB
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=". lib/talloc talloc ../talloc ../lib/talloc"
5for d in $tallocpaths; do
6 if test -f "$srcdir/$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
15TALLOC_OBJ="talloc.o"
16AC_SUBST(TALLOC_OBJ)
17
18TALLOC_CFLAGS="-I$srcdir/$tallocdir"
19AC_SUBST(TALLOC_CFLAGS)
20
21TALLOC_LIBS=""
22AC_SUBST(TALLOC_LIBS)
23
24AC_CHECK_SIZEOF(size_t,cross)
25AC_CHECK_SIZEOF(void *,cross)
26
27if 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 *)])
33fi
34
35if test x"$VERSIONSCRIPT" != "x"; then
36 EXPORTSFILE=talloc.exports
37 AC_SUBST(EXPORTSFILE)
38fi
Note: See TracBrowser for help on using the repository browser.