avoid adding a blank dir to the LD_LIBRARY_PATH when OpenSSL is found in a

default dir
This commit is contained in:
Daniel Stenberg 2005-08-21 21:15:07 +00:00
Родитель 0c37ab5255
Коммит 8882d1fa1b
1 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -930,12 +930,15 @@ if test X"$OPT_SSL" != Xno; then
fi fi
if test "$OPENSSL_ENABLED" = "1"; then if test "$OPENSSL_ENABLED" = "1"; then
dnl when the ssl shared libs were found in a path that the run-time linker if test -n "$LIB_OPENSSL"; then
dnl doesn't search through, we need to add it to LD_LIBRARY_PATH to dnl when the ssl shared libs were found in a path that the run-time
dnl prevent further configure tests to fail due to this dnl linker doesn't search through, we need to add it to LD_LIBRARY_PATH
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL" dnl to prevent further configure tests to fail due to this
export LD_LIBRARY_PATH
AC_MSG_NOTICE([Added $LIB_OPENSSL to LD_LIBRARY_PATH]) LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
export LD_LIBRARY_PATH
AC_MSG_NOTICE([Added $LIB_OPENSSL to LD_LIBRARY_PATH])
fi
fi fi
fi fi