Commit 8882d1fa authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

default dir
parent 0c37ab52
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -930,13 +930,16 @@ if test X"$OPT_SSL" != Xno; then
  fi

  if test "$OPENSSL_ENABLED" = "1"; then
    dnl when the ssl shared libs were found in a path that the run-time linker
    dnl doesn't search through, we need to add it to LD_LIBRARY_PATH to
    dnl prevent further configure tests to fail due to this
    if test -n "$LIB_OPENSSL"; then
       dnl when the ssl shared libs were found in a path that the run-time
       dnl linker doesn't search through, we need to add it to LD_LIBRARY_PATH
       dnl to prevent further configure tests to fail due to this

       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