patch-configure 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. $Id$
  2. --- dsniff-2.4.orig/configure 2001-03-19 07:52:37.000000000 +0100
  3. +++ dsniff-2.4/configure 2011-03-11 21:41:08.000000000 +0100
  4. @@ -16,6 +16,8 @@ ac_help="$ac_help
  5. ac_help="$ac_help
  6. --with-db=DIR use Berkeley DB (with --enable-compat185) in DIR"
  7. ac_help="$ac_help
  8. + --with-gdbm=DIR use GNU DBM in DIR"
  9. +ac_help="$ac_help
  10. --with-libpcap=DIR use libpcap in DIR"
  11. ac_help="$ac_help
  12. --with-libnet=DIR use libnet in DIR"
  13. @@ -3025,13 +3027,13 @@ if test "${with_libpcap+set}" = set; the
  14. ;;
  15. *)
  16. echo "$ac_t""$withval" 1>&6
  17. - if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
  18. + if test -f $withval/include/pcap.h -a -f $withval/lib/libpcap.so; then
  19. owd=`pwd`
  20. if cd $withval; then withval=`pwd`; cd $owd; fi
  21. - PCAPINC="-I$withval -I$withval/bpf"
  22. - PCAPLIB="-L$withval -lpcap"
  23. + PCAPINC="-I$withval/include -I$withval/include/bpf"
  24. + PCAPLIB="-L$withval/lib -lpcap"
  25. elif test -f $withval/include/pcap.h -a \
  26. - -f $withval/include/net/bpf.h -a \
  27. + -f $withval/include/pcap-bpf.h -a \
  28. -f $withval/lib/libpcap.a; then
  29. owd=`pwd`
  30. if cd $withval; then withval=`pwd`; cd $owd; fi
  31. @@ -3059,7 +3061,40 @@ else
  32. fi
  33. +echo $ac_n "checking for libgdbm""... $ac_c" 1>&6
  34. +echo "configure:3059: checking for libgdbm" >&5
  35. +# Check whether --with-gdbm or --without-gdbm was given.
  36. +if test "${with_gdbm+set}" = set; then
  37. + withval="$with_gdbm"
  38. + case "$withval" in
  39. + yes|no)
  40. + echo "$ac_t""no" 1>&6
  41. + ;;
  42. + *)
  43. + echo "$ac_t""$withval" 1>&6
  44. + if test -f $withval/include/gdbm.h -a -f $withval/lib/libgdbm.so; then
  45. + owd=`pwd`
  46. + if cd $withval; then withval=`pwd`; cd $owd; fi
  47. + DBINC="-I$withval/include"
  48. + DBLIB="-L$withval/lib -lgdbm"
  49. + else
  50. + { echo "configure: error: gdbm.h or libgdbm.so not found in $withval" 1>&2; exit 1; }
  51. + fi
  52. + ;;
  53. + esac
  54. +else
  55. + if test -f ${prefix}/include/gdbm.h; then
  56. + LNETINC="-I${prefix}/include"
  57. + LNETLIB="-L${prefix}/lib -lgdbm"
  58. + elif test -f /usr/include/gdbm.h; then
  59. + LNETLIB="-lgdbm"
  60. + else
  61. + echo "$ac_t""no" 1>&6
  62. + { echo "configure: error: libgdbm not found" 1>&2; exit 1; }
  63. + fi
  64. + echo "$ac_t""yes" 1>&6
  65. +fi
  66. echo $ac_n "checking for libnet""... $ac_c" 1>&6
  67. @@ -3073,7 +3108,7 @@ if test "${with_libnet+set}" = set; then
  68. ;;
  69. *)
  70. echo "$ac_t""$withval" 1>&6
  71. - if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a; then
  72. + if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.so; then
  73. owd=`pwd`
  74. if cd $withval; then withval=`pwd`; cd $owd; fi
  75. if test -f $withval/bin/libnet-config; then
  76. @@ -3086,7 +3121,7 @@ if test "${with_libnet+set}" = set; then
  77. LNETINC="-I$withval/include"
  78. LNETLIB="-L$withval/lib -lnet"
  79. else
  80. - { echo "configure: error: libnet.h or libnet.a not found in $withval" 1>&2; exit 1; }
  81. + { echo "configure: error: libnet.h or libnet.so not found in $withval" 1>&2; exit 1; }
  82. fi
  83. ;;
  84. esac
  85. @@ -3120,18 +3155,18 @@ if test "${with_libnids+set}" = set; the
  86. ;;
  87. *)
  88. echo "$ac_t""$withval" 1>&6
  89. - if test -f $withval/src/nids.h -a -f $withval/src/libnids.a; then
  90. + if test -f $withval/include/nids.h -a -f $withval/lib/libnids.so; then
  91. owd=`pwd`
  92. if cd $withval; then withval=`pwd`; cd $owd; fi
  93. - NIDSINC="-I$withval/src"
  94. - NIDSLIB="-L$withval/src -lnids"
  95. - elif test -f $withval/include/nids.h -a -f $withval/lib/libnids.a; then
  96. + NIDSINC="-I$withval/include"
  97. + NIDSLIB="-L$withval/lib -lnids"
  98. + elif test -f $withval/include/nids.h -a -f $withval/lib/libnids.so; then
  99. owd=`pwd`
  100. if cd $withval; then withval=`pwd`; cd $owd; fi
  101. NIDSINC="-I$withval/include"
  102. NIDSLIB="-L$withval/lib -lnids"
  103. else
  104. - { echo "configure: error: nids.h or libnids.a not found in $withval" 1>&2; exit 1; }
  105. + { echo "configure: error: nids.h or libnids.so not found in $withval" 1>&2; exit 1; }
  106. fi
  107. ;;
  108. esac
  109. @@ -3183,19 +3218,19 @@ if test "${with_openssl+set}" = set; the
  110. ;;
  111. *)
  112. echo "$ac_t""$withval" 1>&6
  113. - if test -f $withval/include/openssl/ssl.h -a -f $withval/libssl.a; then
  114. + if test -f $withval/include/openssl/ssl.h -a -f $withval/lib/libssl.so; then
  115. owd=`pwd`
  116. if cd $withval; then withval=`pwd`; cd $owd; fi
  117. SSLINC="-I$withval/include"
  118. - SSLLIB="-L$withval -lssl -lcrypto"
  119. + SSLLIB="-L$withval/lib -lssl -lcrypto"
  120. elif test -f $withval/include/openssl/ssl.h -a \
  121. - -f $withval/lib/libssl.a; then
  122. + -f $withval/lib/libssl.so; then
  123. owd=`pwd`
  124. if cd $withval; then withval=`pwd`; cd $owd; fi
  125. SSLINC="-I$withval/include"
  126. SSLLIB="-L$withval/lib -lssl -lcrypto"
  127. else
  128. - { echo "configure: error: ssl.h or libssl.a not found in $withval" 1>&2; exit 1; }
  129. + { echo "configure: error: ssl.h or libssl.so not found in $withval" 1>&2; exit 1; }
  130. fi
  131. WEBMITM="webmitm"
  132. ;;