summaryrefslogtreecommitdiff
path: root/net-mgmt/ettercap/files/patch-configure
blob: 77db4c590bf0ff389e52e7a48c02c4c984adfac6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
--- configure.orig	Fri Jun 14 18:53:14 2002
+++ configure	Wed Jul 17 17:09:18 2002
@@ -27504,8 +27504,8 @@
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
 if test "$ac_cv_search_pthread_create" = no; then
-  for ac_lib in c_r pthread; do
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+#  for ac_lib in c_r pthread; do
+    LIBS="%%PTHREAD_LIBS%%  $ac_func_search_save_LIBS"
     cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -27550,7 +27550,7 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_search_pthread_create="-l$ac_lib"
+  ac_cv_search_pthread_create="%%PTHREAD_LIBS%%"
 break
 else
   echo "$as_me: failed program was:" >&5
@@ -27559,7 +27559,7 @@
 fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
-  done
+#  done
 fi
 LIBS=$ac_func_search_save_LIBS
 fi
@@ -27699,10 +27699,10 @@
 fi
 
    elif test "$OS" != "MACOSX" -a "$OS" != "WINDOWS"; then
-      echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
-echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
+      echo "$as_me:$LINENO: checking whether $CC accepts %%PTHREAD_LIBS%%" >&5
+echo $ECHO_N "checking whether $CC accepts %%PTHREAD_LIBS%%... $ECHO_C" >&6
       LDFLAGS_store="$LDFLAGS"
-      LDFLAGS="$LDFLAGS -pthread"
+      LDFLAGS="$LDFLAGS %%PTHREAD_LIBS%%"
       cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -30441,14 +30441,14 @@
       ;;
    no)  echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
-      DEBUG_FLAGS="-O2 -funroll-loops -fomit-frame-pointer -Wall"
+      DEBUG_FLAGS="-Wall"
       ac_ec_debug=no
       ;;
 esac
 else
   echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
-   DEBUG_FLAGS="-O2 -funroll-loops -fomit-frame-pointer -Wall"
+   DEBUG_FLAGS="-Wall"
    ac_ec_debug=no
 
 fi;
@@ -30935,7 +30935,7 @@
 
    OLDLDFLAGS="${LDFLAGS}"
    OLDLIBS="${LIBS}"
-   LDFLAGS="$PCAPLIB"
+   LDFLAGS="$LDFLAGS $PCAPLIB"
    LIBS="$LIBS"
 
 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description in -lpcap" >&5
@@ -31271,6 +31271,16 @@
 
 
 
+if false; then
+  HAVE_PCRE_TRUE=
+  HAVE_PCRE_FALSE='#'
+else
+  HAVE_PCRE_TRUE='#'
+  HAVE_PCRE_FALSE=
+fi
+
+
+
 
 ac_ec_pcre=no
 
@@ -32817,6 +32827,13 @@
   { { echo "$as_me:$LINENO: error: conditional \"OPENSSL\" was never defined.
 Usually this means the macro was only invoked conditionally." >&5
 echo "$as_me: error: conditional \"OPENSSL\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_PCRE_TRUE}" && test -z "${HAVE_PCRE_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"HAVE_PCRE\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"HAVE_PCRE\" was never defined.
 Usually this means the macro was only invoked conditionally." >&2;}
    { (exit 1); exit 1; }; }
 fi