aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-07 22:13:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-07 22:13:40 +0000
commit241b2b4ae30200fb544f193f7b821e8ed679dc6e (patch)
tree259df45f02116274645aabb777173e47f29f200d
parent14d9b56937b4e8314698fb5a9c5ad5134e38c444 (diff)
set LD_LIBRARY_PATH when GnuTLS has been found
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5688cd840..5fe7c1943 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1006,11 +1006,13 @@ if test "$OPENSSL_ENABLED" != "1"; then
addlib=`libgnutls-config --libs`
addcflags=`libgnutls-config --cflags`
version=`libgnutls-config --version`
+ gtlsprefix=`libgnutls-config --prefix`
fi
else
addlib="-L$OPT_GNUTLS/lib -lgnutls"
addcflags="-I$OPT_GNUTLS/include"
version=`$OPT_GNUTLS/bin/libgnutls-config --version`
+ gtlsprefix=$OPT_GNUTLS
fi
CLEANLDFLAGS="$LDFLAGS"
@@ -1035,6 +1037,14 @@ if test "$OPENSSL_ENABLED" != "1"; then
if test "x$USE_GNUTLS" = "xyes"; then
AC_MSG_NOTICE([detected GnuTLS version $version])
+
+ dnl when shared libs were found in a path that the run-time
+ dnl linker doesn't search through, we need to add it to
+ dnl LD_LIBRARY_PATH to prevent further configure tests to fail
+ dnl due to this
+
+ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlsprefix/lib$libsuff"
+ export LD_LIBRARY_PATH
fi
fi dnl GNUTLS not disabled