Ticket #41718: patch-configure

File patch-configure, 2.8 KB (added by alfred@…, 10 years ago)

patch to configure.in and configure.

Line 
1diff -ur configure~ configure
2--- configure~  2000-12-02 20:35:46.000000000 -0800
3+++ configure   2013-12-06 13:47:44.000000000 -0800
4@@ -2997,6 +2997,18 @@
5      fi
6   fi
7   if test "x$have_db" = "x"; then
8+    if test -f /opt//local/include/db44/db_185.h; then
9+       cat >> confdefs.h <<\EOF
10+#define HAVE_DB_185_H 1
11+EOF
12+
13+       DBINC="-I/opt/local/include/db44"
14+       DBLIB="-L/opt/local/lib/db44 -ldb"
15+       have_db=yes
16+       break
17+    fi
18+  fi
19+  if test "x$have_db" = "x"; then
20         { echo "configure: error: Berkeley DB with 1.85 compatibility not found" 1>&2; exit 1; }
21   fi
22   echo "$ac_t""yes" 1>&6
23@@ -3007,7 +3019,7 @@
24 
25 
26 echo $ac_n "checking for libpcap""... $ac_c" 1>&6
27-echo "configure:3011: checking for libpcap" >&5
28+echo "configure:3023: checking for libpcap" >&5
29 # Check whether --with-libpcap or --without-libpcap was given.
30 if test "${with_libpcap+set}" = set; then
31   withval="$with_libpcap"
32@@ -3055,7 +3067,7 @@
33 
34 
35 echo $ac_n "checking for libnet""... $ac_c" 1>&6
36-echo "configure:3059: checking for libnet" >&5
37+echo "configure:3071: checking for libnet" >&5
38 # Check whether --with-libnet or --without-libnet was given.
39 if test "${with_libnet+set}" = set; then
40   withval="$with_libnet"
41@@ -3102,7 +3114,7 @@
42 
43 
44 echo $ac_n "checking for libnids""... $ac_c" 1>&6
45-echo "configure:3106: checking for libnids" >&5
46+echo "configure:3118: checking for libnids" >&5
47 # Check whether --with-libnids or --without-libnids was given.
48 if test "${with_libnids+set}" = set; then
49   withval="$with_libnids"
50@@ -3144,9 +3156,9 @@
51 save_cppflags="$CPPFLAGS"
52 CPPFLAGS="$NIDSINC"
53 echo $ac_n "checking whether libnids version is good""... $ac_c" 1>&6
54-echo "configure:3148: checking whether libnids version is good" >&5
55+echo "configure:3160: checking whether libnids version is good" >&5
56 cat > conftest.$ac_ext <<EOF
57-#line 3150 "configure"
58+#line 3162 "configure"
59 #include "confdefs.h"
60 #include <nids.h>
61 EOF
62@@ -3165,7 +3177,7 @@
63 
64 
65 echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6
66-echo "configure:3169: checking for OpenSSL" >&5
67+echo "configure:3181: checking for OpenSSL" >&5
68 # Check whether --with-openssl or --without-openssl was given.
69 if test "${with_openssl+set}" = set; then
70   withval="$with_openssl"
71diff -ur configure.in~ configure.in
72--- configure.in~       2000-12-02 21:16:50.000000000 -0800
73+++ configure.in        2013-12-06 13:44:31.000000000 -0800
74@@ -148,6 +148,15 @@
75      fi
76   fi
77   if test "x$have_db" = "x"; then
78+    if test -f /opt//local/include/db44/db_185.h; then
79+       AC_DEFINE(HAVE_DB_185_H)
80+       DBINC="-I/opt/local/include/db44"
81+       DBLIB="-L/opt/local/lib/db44 -ldb"
82+       have_db=yes
83+       break
84+    fi
85+  fi
86+  if test "x$have_db" = "x"; then
87         AC_ERROR(Berkeley DB with 1.85 compatibility not found)
88   fi
89   AC_MSG_RESULT(yes) ]