aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r--tests/Makefile.am12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 960b14bc2..b2fa56704 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -62,11 +62,17 @@ inittests.stamp: inittests
then \
seen=1; \
else \
- echo -n ":"; \
+ printf ":"; \
fi; \
- echo -n $${i} | sed 's/^-L//'; \
+ printf "%s" "$${i}" | sed 's/^-L//'; \
fi; \
- done) \
+ done; \
+ if test $$seen != 0 \
+ && test x$${LD_LIBRARY_PATH} != x; \
+ then \
+ printf ":"; \
+ fi; \
+ printf "%s" "$${LD_LIBRARY_PATH}") \
srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
echo timestamp >./inittests.stamp