patch-configure 2.9 KB

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