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