Configure check for smbwrapper

Tim Potter tpot at acsys.anu.edu.au
Fri Nov 20 05:07:07 GMT 1998


And the winner is:

###############################################
# test for LD_PRELOAD functionality
AC_CACHE_CHECK([for LD_PRELOAD],samba_cv_HAVE_LD_PRELOAD,[
$CC $CFLAGS -c ${srcdir-.}/tests/ld_preload.c > /dev/null 2>&1
$CC $LDSHFLAGS $CFLAGS -o ld_preload_lib1.so
${srcdir-.}/tests/ld_preload_lib1.c > /dev/null 2>&1
$CC $LDSHFLAGS $CFLAGS -o ld_preload_lib2.so
${srcdir-.}/tests/ld_preload_lib2.c > /dev/null 2>&1
$CC $CFLAGS $CPPFLAGS -o conftest ld_preload.o ./ld_preload_lib1.so > /dev/null 2>&1
LD_PRELOAD=./ld_preload_lib2.so; export LD_PRELOAD
if ./conftest; then
  samba_cv_HAVE_LD_PRELOAD=yes
else
  samba_cv_HAVE_LD_PRELOAD=no
fi
rm -f conftest ld_preload.o ld_preload_lib[12].so
])

if test x"$samba_cv_HAVE_LD_PRELOAD" = x"yes"; then
  AC_DEFINE(HAVE_LD_PRELOAD)
fi

I guess I should also add a test to the "conditions under which smbwrapper
should not be built" to test for this given the original message was about
smbwrapper not working.


Tim.



More information about the samba-technical mailing list