1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

use LIB_PATH_VAR in selftest.sh if we have it

if we have LIB_PATH_VAR we should use it, otherwise we'll unobtrusively
complain about not having it and use the most likely LD_LIBRARY_PATH.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
Björn Jacke 2009-03-09 17:28:42 +01:00 committed by Jelmer Vernooij
parent f992416e23
commit 0d2de5380d

View File

@ -104,13 +104,14 @@ SAMBA4SHAREDDIR="$SAMBA4BINDIR/shared"
export SAMBA4SHAREDDIR export SAMBA4SHAREDDIR
export SMBTORTURE4 export SMBTORTURE4
if test x"$LD_LIBRARY_PATH" != x""; then if [ -z "$LIB_PATH_VAR" ] ; then
LD_LIBRARY_PATH="$BINDIR:$SAMBA4SHAREDDIR:$LD_LIBRARY_PATH" echo "Warning: LIB_PATH_VAR not set. Using best guess LD_LIBRARY_PATH." >&2
else LIB_PATH_VAR=LD_LIBRARY_PATH
LD_LIBRARY_PATH="$BINDIR:$SAMBA4SHAREDDIR" export LIB_PATH_VAR
fi fi
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH eval $LIB_PATH_VAR=$BINDIR:$SAMBA4SHAREDDIR:\$$LIB_PATH_VAR
export $LIB_PATH_VAR
## ##
## verify that we were built with --enable-socket-wrapper ## verify that we were built with --enable-socket-wrapper