patch-ncat_configure 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --- nmap-5.00.orig/ncat/configure 2009-06-11 08:15:24.000000000 +0200
  2. +++ nmap-5.00/ncat/configure 2009-07-20 20:47:33.391408119 +0200
  3. @@ -7044,90 +7044,6 @@ fi
  4. fi
  5. -if test $have_libpcap = yes; then
  6. - if test "${LIBPCAP_INC+set}" = "set"; then
  7. - _cflags=$CXXFLAGS
  8. - _ldflags=$LDFLAGS
  9. -
  10. - CPPFLAGS="-I$LIBPCAP_INC $CPPFLAGS"
  11. - LDFLAGS="-L$LIBPCAP_LIB $LDFLAGS"
  12. - fi
  13. -
  14. - # link with -lpcap for the purposes of this test
  15. - LIBS_OLD="$LIBS"
  16. - LIBS="$LIBS -lpcap"
  17. - { $as_echo "$as_me:$LINENO: checking if libpcap version is recent enough" >&5
  18. -$as_echo_n "checking if libpcap version is recent enough... " >&6; }
  19. - if test "$cross_compiling" = yes; then
  20. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  21. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22. -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23. -See \`config.log' for more details." >&5
  24. -$as_echo "$as_me: error: cannot run test program while cross compiling
  25. -See \`config.log' for more details." >&2;}
  26. - { (exit 1); exit 1; }; }; }
  27. -else
  28. - cat >conftest.$ac_ext <<_ACEOF
  29. -/* confdefs.h. */
  30. -_ACEOF
  31. -cat confdefs.h >>conftest.$ac_ext
  32. -cat >>conftest.$ac_ext <<_ACEOF
  33. -/* end confdefs.h. */
  34. -
  35. -#include <stdio.h>
  36. -extern char pcap_version[];
  37. -int main() {
  38. - int major, minor1, minor2;
  39. - sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
  40. - if (major > 0)
  41. - exit(0);
  42. - if (minor1 < 9)
  43. - exit(1);
  44. - if (minor2 < 4)
  45. - exit(1);
  46. - exit(0);
  47. -}
  48. -_ACEOF
  49. -rm -f conftest$ac_exeext
  50. -if { (ac_try="$ac_link"
  51. -case "(($ac_try" in
  52. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  53. - *) ac_try_echo=$ac_try;;
  54. -esac
  55. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  56. -$as_echo "$ac_try_echo") >&5
  57. - (eval "$ac_link") 2>&5
  58. - ac_status=$?
  59. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  60. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  61. - { (case "(($ac_try" in
  62. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  63. - *) ac_try_echo=$ac_try;;
  64. -esac
  65. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  66. -$as_echo "$ac_try_echo") >&5
  67. - (eval "$ac_try") 2>&5
  68. - ac_status=$?
  69. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  70. - (exit $ac_status); }; }; then
  71. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  72. -$as_echo "yes" >&6; }; have_libpcap=yes
  73. -else
  74. - $as_echo "$as_me: program exited with status $ac_status" >&5
  75. -$as_echo "$as_me: failed program was:" >&5
  76. -sed 's/^/| /' conftest.$ac_ext >&5
  77. -
  78. -( exit $ac_status )
  79. -{ $as_echo "$as_me:$LINENO: result: no" >&5
  80. -$as_echo "no" >&6; }; have_libpcap=no
  81. -fi
  82. -rm -rf conftest.dSYM
  83. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  84. -fi
  85. -
  86. -
  87. -LIBS="$LIBS_OLD"
  88. -fi
  89. PCAP_LIBS="-lpcap"
  90. if test $have_libpcap = yes; then