mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Actually use custom libssh2 lib/header path if given
This commit is contained in:
5
configure
vendored
5
configure
vendored
@@ -6815,6 +6815,9 @@ if test "x$ac_cv_lib_ssh2_libssh2_version" = xyes; then :
|
|||||||
have_libssh2=yes
|
have_libssh2=yes
|
||||||
LIBSSH2_INC=$with_libssh2/include
|
LIBSSH2_INC=$with_libssh2/include
|
||||||
LIBSSH2_LIB=$with_libssh2/lib
|
LIBSSH2_LIB=$with_libssh2/lib
|
||||||
|
else
|
||||||
|
LDFLAGS=$_ldflags
|
||||||
|
CPPFLAGS=$_cppflags
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -6822,8 +6825,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
LDFLAGS=$_ldflags
|
|
||||||
CPPFLAGS=$_cppflags
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@@ -674,11 +674,11 @@ AC_HELP_STRING([--without-libssh2], [Compile without libssh2]),
|
|||||||
AC_CHECK_LIB(ssh2, libssh2_version,
|
AC_CHECK_LIB(ssh2, libssh2_version,
|
||||||
[have_libssh2=yes
|
[have_libssh2=yes
|
||||||
LIBSSH2_INC=$with_libssh2/include
|
LIBSSH2_INC=$with_libssh2/include
|
||||||
LIBSSH2_LIB=$with_libssh2/lib],,[-lm])
|
LIBSSH2_LIB=$with_libssh2/lib],
|
||||||
|
[LDFLAGS=$_ldflags
|
||||||
|
CPPFLAGS=$_cppflags],[-lm])
|
||||||
])
|
])
|
||||||
|
|
||||||
LDFLAGS=$_ldflags
|
|
||||||
CPPFLAGS=$_cppflags
|
|
||||||
;;
|
;;
|
||||||
esac]
|
esac]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user