1 --- a/configure.in 2009-02-06 13:41:23.015147047 +0300
2 +++ b/configure.in 2009-02-06 13:41:42.203146296 +0300
3 @@ -118,27 +118,27 @@ dnl Checks for header files.
7 -AC_CHECK_HEADERS(db.h regex.h unistd.h)
9 -AC_CHECK_HEADER(db.h,,[
11 - echo "** No db.h found"
12 - echo " The Berkley DB library is required for squidGuard"
13 - echo " to compile. Get it from http://www.oracle.com"
14 - echo " use --with-db=DIR or --with-db-inc=DIR to specify"
15 - echo " its location. (default is $dbprefix/BerkeleyDB)"
20 -if test $HAVE_REGEX.H = no; then
22 - echo "** No regex.h found"
23 - echo " The regexp library is required for squidGuard"
24 - echo " to compile. Get it from http://www.gnu.org"
28 +#AC_CHECK_HEADERS(db.h regex.h unistd.h)
30 +#AC_CHECK_HEADER(db.h,,[
32 +# echo "** No db.h found"
33 +# echo " The Berkley DB library is required for squidGuard"
34 +# echo " to compile. Get it from http://www.oracle.com"
35 +# echo " use --with-db=DIR or --with-db-inc=DIR to specify"
36 +# echo " its location. (default is $dbprefix/BerkeleyDB)"
41 +#if test $HAVE_REGEX.H = no; then
43 +# echo "** No regex.h found"
44 +# echo " The regexp library is required for squidGuard"
45 +# echo " to compile. Get it from http://www.gnu.org"
51 dnl Checks if runtime logmessages shall be suppressed. Is --nolog given?
52 @@ -294,115 +294,115 @@ AC_CHECK_LIB(pthread,pthread_create,,[
63 - int major, minor, patch;
66 - major = DB_VERSION_MAJOR;
67 - minor = DB_VERSION_MINOR;
68 - patch = DB_VERSION_PATCH;
70 - db_version(&major, &minor, &patch);
72 - ver = major + ((float) minor / 1000);
77 - ], db_ok_version=yes, db_ok_version=no, db_ok_version=no)
79 -if test $db_ok_version = no; then
81 - echo "** The Berkley DB library version 2.6.4 or newer"
82 - echo " is required. Get it from http://www.oracle.com"
83 - echo " use --with-db=DIR or --with-db-inc=DIR, "
84 - echo " --with-db-lib=DIR to specify its location"
85 - echo " (default is $dbprefix/BerkeleyDB)"
94 - int major, minor, patch;
97 - major = DB_VERSION_MAJOR;
98 - minor = DB_VERSION_MINOR;
99 - patch = DB_VERSION_PATCH;
104 +# int major, minor, patch;
106 +##if DB_VERSION_MAJOR
107 +# major = DB_VERSION_MAJOR;
108 +# minor = DB_VERSION_MINOR;
109 +# patch = DB_VERSION_PATCH;
111 - db_version(&major, &minor, &patch);
113 - ver = major + ((float) minor / 1000);
114 - if (ver > 2.007 && ver < 3.002)
118 - ], db_ok_version=yes, db_ok_version=no, db_ok_version=no)
120 -if test $db_ok_version = no; then
122 - echo "** The Berkley DB library version 3.2.* or newer"
123 - echo " is required, when using 3.* versions of the library"
124 - echo " Get it from http://www.oracle.com"
125 - echo " use --with-db=DIR or --with-db-inc=DIR, "
126 - echo " --with-db-lib=DIR to specify its location"
127 - echo " (default is $dbprefix/BerkeleyDB)"
136 - int major, minor, patch;
138 -#if DB_VERSION_MAJOR
139 - major = DB_VERSION_MAJOR;
140 - minor = DB_VERSION_MINOR;
141 - patch = DB_VERSION_PATCH;
143 - db_version(&major, &minor, &patch);
145 - ver = major + ((float) minor / 1000);
150 - ], dbg2_ok_version=yes, dbg2_ok_version=no, dbg2_ok_version=no)
152 +# db_version(&major, &minor, &patch);
154 +# ver = major + ((float) minor / 1000);
159 +# ], db_ok_version=yes, db_ok_version=no, db_ok_version=no)
161 +#if test $db_ok_version = no; then
163 +# echo "** The Berkley DB library version 2.6.4 or newer"
164 +# echo " is required. Get it from http://www.oracle.com"
165 +# echo " use --with-db=DIR or --with-db-inc=DIR, "
166 +# echo " --with-db-lib=DIR to specify its location"
167 +# echo " (default is $dbprefix/BerkeleyDB)"
176 +# int major, minor, patch;
178 +##if DB_VERSION_MAJOR
179 +# major = DB_VERSION_MAJOR;
180 +# minor = DB_VERSION_MINOR;
181 +# patch = DB_VERSION_PATCH;
183 +# db_version(&major, &minor, &patch);
185 +# ver = major + ((float) minor / 1000);
186 +# if (ver > 2.007 && ver < 3.002)
190 +# ], db_ok_version=yes, db_ok_version=no, db_ok_version=no)
192 +#if test $db_ok_version = no; then
194 +# echo "** The Berkley DB library version 3.2.* or newer"
195 +# echo " is required, when using 3.* versions of the library"
196 +# echo " Get it from http://www.oracle.com"
197 +# echo " use --with-db=DIR or --with-db-inc=DIR, "
198 +# echo " --with-db-lib=DIR to specify its location"
199 +# echo " (default is $dbprefix/BerkeleyDB)"
208 +# int major, minor, patch;
210 +##if DB_VERSION_MAJOR
211 +# major = DB_VERSION_MAJOR;
212 +# minor = DB_VERSION_MINOR;
213 +# patch = DB_VERSION_PATCH;
215 +# db_version(&major, &minor, &patch);
217 +# ver = major + ((float) minor / 1000);
222 +# ], dbg2_ok_version=yes, dbg2_ok_version=no, dbg2_ok_version=no)
224 if test $dbg2_ok_version = yes; then
225 AC_DEFINE(DB_VERSION_GT2)
232 - int major, minor, patch;
234 -#if DB_VERSION_MAJOR
235 - major = DB_VERSION_MAJOR;
236 - minor = DB_VERSION_MINOR;
237 - patch = DB_VERSION_PATCH;
239 - db_version(&major, &minor, &patch);
241 - ver = major + ((float) minor / 1000);
246 - ], dbg3_ok_version=yes, dbg3_ok_version=no, dbg3_ok_version=no)
252 +# int major, minor, patch;
254 +##if DB_VERSION_MAJOR
255 +# major = DB_VERSION_MAJOR;
256 +# minor = DB_VERSION_MINOR;
257 +# patch = DB_VERSION_PATCH;
259 +# db_version(&major, &minor, &patch);
261 +# ver = major + ((float) minor / 1000);
266 +# ], dbg3_ok_version=yes, dbg3_ok_version=no, dbg3_ok_version=no)
268 if test $dbg3_ok_version = yes; then
269 AC_DEFINE(DB_VERSION_GT3)