mirror of
https://github.com/samba-team/samba.git
synced 2025-01-28 17:47:29 +03:00
2f1aafa2a7
- libreplace unsetenv() and strptime() replacements metze (This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9)
32 lines
873 B
Plaintext
32 lines
873 B
Plaintext
AC_LIBREPLACE_BROKEN_CHECKS
|
|
|
|
SMB_EXT_LIB(LIBREPLACE_EXT, [${LIBDL}])
|
|
SMB_ENABLE(LIBREPLACE_EXT)
|
|
|
|
# remove leading ./
|
|
LIBREPLACE_DIR=`echo ${libreplacedir} |sed -e 's/^\.\///g'`
|
|
|
|
# remove leading srcdir .. we are looking for the relative
|
|
# path within the samba source tree or wherever libreplace is.
|
|
# We need to make sure the object is not forced to end up in
|
|
# the source directory because we might be using a separate
|
|
# build directory.
|
|
LIBREPLACE_DIR=`echo ${LIBREPLACE_DIR} | sed -e "s|^$srcdir/||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])
|