source: branches/samba-3.3.x/source/lib/replace/samba.m4

Last change on this file was 206, checked in by Herwig Bauernfeind, 16 years ago

Import Samba 3.3 branch at 3.0.0 level (psmedley's port)

File size: 1015 bytes
Line 
1AC_LIBREPLACE_BROKEN_CHECKS
2AC_LIBREPLACE_NETWORK_CHECKS
3
4SMB_EXT_LIB(LIBREPLACE_EXT, [${LIBDL}])
5SMB_ENABLE(LIBREPLACE_EXT)
6
7SMB_EXT_LIB(LIBREPLACE_NETWORK, [${LIBREPLACE_NETWORK_LIBS}])
8SMB_ENABLE(LIBREPLACE_NETWORK)
9
10# remove leading ./
11LIBREPLACE_DIR=`echo ${libreplacedir} |sed -e 's/^\.\///g'`
12
13# remove leading srcdir .. we are looking for the relative
14# path within the samba source tree or wherever libreplace is.
15# We need to make sure the object is not forced to end up in
16# the source directory because we might be using a separate
17# build directory.
18LIBREPLACE_DIR=`echo ${LIBREPLACE_DIR} | sed -e "s|^$srcdir/||g"`
19
20LIBREPLACE_OBJS=""
21for obj in ${LIBREPLACEOBJ}; do
22 LIBREPLACE_OBJS="${LIBREPLACE_OBJS} ${LIBREPLACE_DIR}/${obj}"
23done
24
25SMB_SUBSYSTEM(LIBREPLACE,
26 [${LIBREPLACE_OBJS}],
27 [LIBREPLACE_EXT LIBREPLACE_NETWORK],
28 [-Ilib/replace])
29
30LIBREPLACE_HOSTCC_OBJS=`echo ${LIBREPLACE_OBJS} |sed -e 's/\.o/\.ho/g'`
31
32SMB_SUBSYSTEM(LIBREPLACE_HOSTCC,
33 [${LIBREPLACE_HOSTCC_OBJS}],
34 [],
35 [-Ilib/replace])
Note: See TracBrowser for help on using the repository browser.