diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-12-03 09:19:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-12-03 09:19:23 +0000 |
commit | b9af0d89d5e28912a10a5f9501961996559a80d2 (patch) | |
tree | 647b5447a9426c55942639f7bcaa29f7bca6d364 /configure.ac | |
parent | 6f2afe0c304b9ad2f287db1068833d1ea35bc15d (diff) |
fix the libssh2 include path somewhat when --with-libssh2 is used and added
a warning output if no OpenSSL was found
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index acfe44edd..379f35a31 100644 --- a/configure.ac +++ b/configure.ac @@ -1072,11 +1072,11 @@ if test X"$OPT_LIBSSH2" != Xno; then PREFIX_LIBSSH2= ;; *) - dnl check the given --with-libssh2 spot + dnl use the given --with-libssh2 spot PREFIX_LIBSSH2=$OPT_LIBSSH2 LIB_LIBSSH2="$PREFIX_LIBSSH2/lib$libsuff" LDFLAGS="$LDFLAGS -L$LIB_LIBSSH2" - CPPFLAGS="$CPPFLAGS -I$PREFIX_LIBSSH2/include/libssh2 -I$PREFIX_LIBSSH2/include" + CPPFLAGS="$CPPFLAGS -I$PREFIX_LIBSSH2/include" ;; esac @@ -1095,6 +1095,8 @@ if test X"$OPT_LIBSSH2" != Xno; then test "$LIBSSH2_ENABLED" != "1"; then AC_MSG_ERROR([libSSH2 libs and/or directories were not found where specified!]) fi + else + AC_MSG_WARN([without the use of OpenSSL libs, libssh2 cannot work]) fi if test "$LIBSSH2_ENABLED" = "1"; then |