Fresh pull from upstream
[librecmc/librecmc.git] / package / network / utils / tcpdump / patches / 001-remove_pcap_debug.patch
1 --- a/configure
2 +++ b/configure
3 @@ -6260,97 +6260,6 @@ $as_echo "no" >&6; }
4      fi
5  fi
6  
7 -#
8 -# Check for special debugging functions
9 -#
10 -for ac_func in pcap_set_parser_debug
11 -do :
12 -  ac_fn_c_check_func "$LINENO" "pcap_set_parser_debug" "ac_cv_func_pcap_set_parser_debug"
13 -if test "x$ac_cv_func_pcap_set_parser_debug" = xyes; then :
14 -  cat >>confdefs.h <<_ACEOF
15 -#define HAVE_PCAP_SET_PARSER_DEBUG 1
16 -_ACEOF
17 -
18 -fi
19 -done
20 -
21 -if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then
22 -       #
23 -       # OK, we don't have pcap_set_parser_debug() to set the libpcap
24 -       # filter expression parser debug flag; can we directly set the
25 -       # flag?
26 -       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5
27 -$as_echo_n "checking whether pcap_debug is defined by libpcap... " >&6; }
28 -       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29 -/* end confdefs.h.  */
30 -
31 -int
32 -main ()
33 -{
34 -
35 -               extern int pcap_debug;
36 -
37 -               return pcap_debug;
38 -
39 -  ;
40 -  return 0;
41 -}
42 -_ACEOF
43 -if ac_fn_c_try_link "$LINENO"; then :
44 -  ac_lbl_cv_pcap_debug_defined=yes
45 -else
46 -  ac_lbl_cv_pcap_debug_defined=no
47 -fi
48 -rm -f core conftest.err conftest.$ac_objext \
49 -    conftest$ac_exeext conftest.$ac_ext
50 -       if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
51 -               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52 -$as_echo "yes" >&6; }
53 -
54 -$as_echo "#define HAVE_PCAP_DEBUG 1" >>confdefs.h
55 -
56 -       else
57 -               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58 -$as_echo "no" >&6; }
59 -               #
60 -               # OK, what about "yydebug"?
61 -               #
62 -               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5
63 -$as_echo_n "checking whether yydebug is defined by libpcap... " >&6; }
64 -               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65 -/* end confdefs.h.  */
66 -
67 -int
68 -main ()
69 -{
70 -
71 -                       extern int yydebug;
72 -
73 -                       return yydebug;
74 -
75 -  ;
76 -  return 0;
77 -}
78 -_ACEOF
79 -if ac_fn_c_try_link "$LINENO"; then :
80 -  ac_lbl_cv_yydebug_defined=yes
81 -else
82 -  ac_lbl_cv_yydebug_defined=no
83 -fi
84 -rm -f core conftest.err conftest.$ac_objext \
85 -    conftest$ac_exeext conftest.$ac_ext
86 -               if test "$ac_lbl_cv_yydebug_defined" = yes ; then
87 -                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88 -$as_echo "yes" >&6; }
89 -
90 -$as_echo "#define HAVE_YYDEBUG 1" >>confdefs.h
91 -
92 -               else
93 -                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94 -$as_echo "no" >&6; }
95 -               fi
96 -       fi
97 -fi
98  for ac_func in pcap_set_optimizer_debug
99  do :
100    ac_fn_c_check_func "$LINENO" "pcap_set_optimizer_debug" "ac_cv_func_pcap_set_optimizer_debug"