summaryrefslogtreecommitdiff
path: root/source4/lib/replace/samba.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 09:47:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:31 -0500
commit0584c108dbf6072d28b97ca3dcd70ef25ff4359c (patch)
tree8b1cbae13edaa2a17ac4e4401db447ff57219037 /source4/lib/replace/samba.m4
parentc447b8a199cc61221b99f4582d714bac3774ae1b (diff)
downloadsamba-0584c108dbf6072d28b97ca3dcd70ef25ff4359c.tar.gz
samba-0584c108dbf6072d28b97ca3dcd70ef25ff4359c.tar.bz2
samba-0584c108dbf6072d28b97ca3dcd70ef25ff4359c.zip
r18450: - autogenerate the OBJ_FILES for LIBREPLACE
- remove samba specific stuff from libreplace - and include the readdir replacement stuff in the standalone builds metze (This used to be commit 3cac61152ef9a32313d7f7e5d38651f03a31f251)
Diffstat (limited to 'source4/lib/replace/samba.m4')
-rw-r--r--source4/lib/replace/samba.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/source4/lib/replace/samba.m4 b/source4/lib/replace/samba.m4
new file mode 100644
index 0000000000..c6c5e63b7f
--- /dev/null
+++ b/source4/lib/replace/samba.m4
@@ -0,0 +1,23 @@
+m4_include(lib/replace/libreplace.m4)
+
+SMB_EXT_LIB(LIBREPLACE_EXT, [${LIBDL}])
+SMB_ENABLE(LIBREPLACE_EXT)
+
+LIBREPLACE_DIR=`echo ${libreplacedir} |sed -e 's/^\.\///g'`
+
+LIBREPLACE_OBJS=""
+for obj in ${LIBREPLACEOBJ}; do
+ LIBREPLACE_OBJS="${LIBREPLACE_OBJS} ${LIBREPLACE_DIR}/${obj}"
+done
+
+SMB_SUBSYSTEM(LIBREPLACE,
+ [${LIBREPLACE_OBJS}],
+ [LIBREPLACE_EXT],
+ [-Ilib/replace])
+
+LIBREPLACE_HOSTCC_OBJS=`echo ${LIBREPLACE_OBJS} |sed -e 's/\.o/\.ho/g'`
+
+SMB_SUBSYSTEM(LIBREPLACE_HOSTCC,
+ [${LIBREPLACE_HOSTCC_OBJS}],
+ [],
+ [-Ilib/replace])