* wrap/python/tests/run.in: Define DYLD_LIBRARY_PATH so that

Darwin finds non-installed libraries.
Report from Akim Demaille.
This commit is contained in:
Alexandre Duret-Lutz 2004-11-28 13:52:27 +00:00
parent 39ffa27338
commit b61fab1eb0
2 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,9 @@
2004-11-28 Alexandre Duret-Lutz <adl@src.lip6.fr>
* wrap/python/tests/run.in: Define DYLD_LIBRARY_PATH so that
Darwin finds non-installed libraries.
Report from Akim Demaille.
* src/tgbatest/ltl2tgba.cc (syntax): Mention gv04 in help text.
2004-11-27 Alexandre Duret-Lutz <adl@src.lip6.fr>

View file

@ -25,13 +25,19 @@
# unset, be quiet.
test -n "$srcdir" && test -z "$VERBOSE" && exec >/dev/null 2>&1
test -z "$1" && PYTHONPATH=..:@srcdir@/.. exec @PYTHON@
# Darwin needs some help in figuring out where non-installed libtool
# libraries are (on this platform libtool encodes the expected final
# path of dependent libraries in each library).
modpath='../.libs:@top_builddir@/src/.libs:@top_builddir@/buddy/src/.libs'
test -z "$1" &&
PYTHONPATH='..:@srcdir@/..' DYLD_LIBRARY_PATH=$modpath exec @PYTHON@
case $1 in
*.py)
PYTHONPATH=..:@srcdir@/.. exec @PYTHON@ "$@";;
PYTHONPATH='..:@srcdir@/..' DYLD_LIBRARY_PATH=$modpath exec @PYTHON@ "$@";;
*.test)
sh -x "$@";;
exec sh -x "$@";;
*)
echo "Unknown extension" >&2
exit 2;;