summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-16 11:40:52 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:33 +0100
commit413e992ae4a5641acbad3c0ad2b88ddd00f56714 (patch)
treea129e395dfab9ba92d6fb95207be55d463f7f6d7 /source4
parente4763f1163da2cea56c4b81603c88f5010860af9 (diff)
downloadsamba-413e992ae4a5641acbad3c0ad2b88ddd00f56714.tar.gz
samba-413e992ae4a5641acbad3c0ad2b88ddd00f56714.tar.bz2
samba-413e992ae4a5641acbad3c0ad2b88ddd00f56714.zip
r25998: Add test for run time library path environment variable.
(This used to be commit b2355857baf4d9dad0d9d6a465744be11bbb9beb)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/libreplace_ld.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace_ld.m4 b/source4/lib/replace/libreplace_ld.m4
index cef0089cd1..8bac16094e 100644
--- a/source4/lib/replace/libreplace_ld.m4
+++ b/source4/lib/replace/libreplace_ld.m4
@@ -249,3 +249,32 @@ AC_DEFUN([AC_LIBREPLACE_MDLD_FLAGS],
AC_SUBST(MDLD_FLAGS)
])
+
+AC_DEFUN([AC_LIBREPLACE_RUNTIME_LIB_PATH_VAR],
+[
+ case "$host_os" in
+ *linux*)
+ LIB_PATH_VAR=LD_LIBRARY_PATH
+ ;;
+ *solaris*)
+ LIB_PATH_VAR=LD_LIBRARY_PATH
+ ;;
+ *hpux*)
+ LIB_PATH_VAR=SHLIB_PATH
+ ;;
+ *tru64*)
+ LIB_PATH_VAR=LD_LIBRARY_PATH
+ ;;
+ *aix*)
+ LIB_PATH_VAR=LIB_PATH
+ ;;
+ *irix*)
+ LIB_PATH_VAR=LD_LIBRARY_PATH
+ ;;
+ *darwin*)
+ LIB_PATH_VAR=DYLD_LIBRARY_PATH
+ ;;
+ esac
+
+ AC_SUBST(LIB_PATH_VAR)
+])