Lines 1-3
Link Here
|
|
|
1 |
# Replace gcc with $CXX |
2 |
# |
3 |
# Fix libssh2 detection |
4 |
# https://github.com/nmap/nmap/commit/53e4e92e32721b1fa4490fbcd7ea6bb62f283839 |
5 |
|
1 |
--- configure.orig 2017-07-31 19:09:47 UTC |
6 |
--- configure.orig 2017-07-31 19:09:47 UTC |
2 |
+++ configure |
7 |
+++ configure |
3 |
@@ -2583,7 +2583,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLA |
8 |
@@ -2583,7 +2583,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLA |
Lines 18-20
Link Here
|
18 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
23 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
19 |
$as_echo_n "checking for $ac_word... " >&6; } |
24 |
$as_echo_n "checking for $ac_word... " >&6; } |
20 |
if ${ac_cv_prog_CC+:} false; then : |
25 |
if ${ac_cv_prog_CC+:} false; then : |
|
|
26 |
@@ -6801,8 +6801,7 @@ if test "${with_libssh2+set}" = set; the |
27 |
CPPFLAGS="-I$with_libssh2/include $CPPFLAGS" |
28 |
LDFLAGS="-L$with_libssh2/lib $LDFLAGS" |
29 |
|
30 |
- ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "-lm |
31 |
-" |
32 |
+ ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default" |
33 |
if test "x$ac_cv_header_libssh2_h" = xyes; then : |
34 |
|
35 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_version in -lssh2" >&5 |
36 |
@@ -6811,7 +6810,7 @@ if ${ac_cv_lib_ssh2_libssh2_version+:} f |
37 |
$as_echo_n "(cached) " >&6 |
38 |
else |
39 |
ac_check_lib_save_LIBS=$LIBS |
40 |
-LIBS="-lssh2 $LIBS" |
41 |
+LIBS="-lssh2 -lm $LIBS" |
42 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
43 |
/* end confdefs.h. */ |
44 |
|