Added
Link Here
|
1 |
--- ./configure.in.orig 2011-03-21 20:49:39.000000000 +0100 |
2 |
+++ ./configure.in 2011-03-21 20:50:42.000000000 +0100 |
3 |
@@ -74,126 +74,6 @@ |
4 |
# Checks for libraries. |
5 |
dnl Checks for Berkeley DB |
6 |
AC_MSG_CHECKING(for Berkeley DB) |
7 |
-AC_ARG_WITH(db, |
8 |
-[ --with-db=DIR Use Berkeley DB in DIR], |
9 |
-[DBINC=NO |
10 |
- DBLIB=NO |
11 |
- DBHDR=NO |
12 |
- S=1 |
13 |
- case "$withval" in |
14 |
- yes|no) |
15 |
- AC_ERROR(Berkeley DB was not found. Please check your installation or use --with-db=PATH) |
16 |
- ;; |
17 |
- *) |
18 |
- AC_MSG_RESULT($withval) |
19 |
- if test x${withval} = x ; then |
20 |
- withval=/tmp |
21 |
- fi |
22 |
- if test $S -a -r ${withval}/build_unix/db4.h -a \ |
23 |
- -r "`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then |
24 |
- DBINC=-I`echo ${withval}/build_unix/` |
25 |
- DBLIB=`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` |
26 |
- DBHDR="db4.h" |
27 |
- grep 'DB_VERSION_MAJOR 4$' ${withval}/build_unix/db4.h >/dev/null 2>&1 |
28 |
- S=$? |
29 |
- fi |
30 |
- if test $S -a -r ${withval}/build_unix/db.h -a \ |
31 |
- -r "`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then |
32 |
- DBINC=-I`echo ${withval}/build_unix` |
33 |
- DBLIB=`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` |
34 |
- DBHDR="db.h" |
35 |
- grep 'DB_VERSION_MAJOR 4$' ${withval}/build_unix/db.h >/dev/null 2>&1 |
36 |
- S=$? |
37 |
- fi |
38 |
- if test $S -a -r ${withval}/include/db4/db.h -a \ |
39 |
- -r ${withval}/lib/db4/libdb.a ; then |
40 |
- DBINC="-I${withval}/include/db4" |
41 |
- DBLIB="-L${withval}/lib/db4 -ldb" |
42 |
- DBHDR="db.h" |
43 |
- grep 'DB_VERSION_MAJOR 4$' ${withval}/include/db4/db.h >/dev/null 2>&1 |
44 |
- S=$? |
45 |
- fi |
46 |
- if test $S -a -r ${withval}/include/db4.h -a \ |
47 |
- -r ${withval}/lib/libdb.a ; then |
48 |
- DBINC="-I${withval}/include" |
49 |
- DBLIB="-L${withval}/lib -ldb" |
50 |
- DBHDR="db4.h" |
51 |
- grep 'DB_VERSION_MAJOR 4$' ${withval}/include/db4.h >/dev/null 2>&1 |
52 |
- S=$? |
53 |
- fi |
54 |
- if test $S -a -r ${withval}/include/db.h -a \ |
55 |
- -r ${withval}/lib/libdb.a ; then |
56 |
- DBINC="-I${withval}/include" |
57 |
- DBLIB="-L${withval}/lib -ldb" |
58 |
- DBHDR="db.h" |
59 |
- grep 'DB_VERSION_MAJOR 4$' ${withval}/include/db.h >/dev/null 2>&1 |
60 |
- S=$? |
61 |
- fi |
62 |
- if test $S -eq 1 ; then |
63 |
- AC_ERROR(Berkeley DB was not found. Please check your installation or use --with-db=DIR) |
64 |
- fi |
65 |
- AC_MSG_RESULT(yes) |
66 |
- esac ], |
67 |
-[DBINC=NO |
68 |
- DBLIB=NO |
69 |
- DBHDR=NO |
70 |
- S=1 |
71 |
- |
72 |
- if test $S -a -r /usr/local/include/db4.h -a \ |
73 |
- -r /usr/local/lib/libdb.a ; then |
74 |
- DBINC="-I/usr/local/include" |
75 |
- DBLIB="-L/usr/local/lib -ldb" |
76 |
- DBHDR="db4.h" |
77 |
- grep 'DB_VERSION_MAJOR 4$' /usr/local/include/db4.h >/dev/null 2>&1 |
78 |
- S=$? |
79 |
- fi |
80 |
- if test $S -a -r /usr/local/include/db.h -a \ |
81 |
- -r /usr/local/lib/libdb.a ; then |
82 |
- DBINC="-I/usr/local/include" |
83 |
- DBLIB="-L/usr/local/lib -ldb" |
84 |
- DBHDR="db.h" |
85 |
- grep 'DB_VERSION_MAJOR 4$' /usr/local/include/db.h >/dev/null 2>&1 |
86 |
- S=$? |
87 |
- fi |
88 |
- if test $S -a -r /usr/include/db4.h -a \ |
89 |
- -r /usr/lib/libdb.a ; then |
90 |
- DBINC="" |
91 |
- DBLIB="-L/usr/lib -ldb" |
92 |
- DBHDR="db4.h" |
93 |
- grep 'DB_VERSION_MAJOR 4$' /usr/include/db4.h >/dev/null 2>&1 |
94 |
- S=$? |
95 |
- fi |
96 |
- if test $S -a -r /usr/include/db.h -a \ |
97 |
- -r /usr/lib/libdb.a ; then |
98 |
- DBINC="" |
99 |
- DBLIB="-L/usr/lib -ldb" |
100 |
- DBHDR="db.h" |
101 |
- grep 'DB_VERSION_MAJOR 4$' /usr/include/db.h >/dev/null 2>&1 |
102 |
- S=$? |
103 |
- fi |
104 |
- DIR=`ls -d ../db-4.*/. 2>/dev/null | tail -1` |
105 |
- if test $S -a -r ${DIR}/build_unix/db4.h -a \ |
106 |
- -r "`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then |
107 |
- DBINC=-I`echo ${DIR}/build_unix/` |
108 |
- DBLIB=`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` |
109 |
- DBHDR="db4.h" |
110 |
- grep 'DB_VERSION_MAJOR 4$' ${DIR}/build_unix/db4.h >/dev/null 2>&1 |
111 |
- S=$? |
112 |
- fi |
113 |
- if test $S -a -r ${DIR}/build_unix/db.h -a \ |
114 |
- -r "`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then |
115 |
- DBINC=-I`echo ${DIR}/build_unix` |
116 |
- DBLIB=`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` |
117 |
- DBHDR="db.h" |
118 |
- grep 'DB_VERSION_MAJOR 4$' ${DIR}/build_unix/db.h >/dev/null 2>&1 |
119 |
- S=$? |
120 |
- fi |
121 |
- |
122 |
- if test $S -eq 1 ; then |
123 |
- AC_ERROR(Berkeley DB was not found. Please check your installation or use --with-db=DIR) |
124 |
- fi |
125 |
- AC_MSG_RESULT(yes) ] |
126 |
-) |
127 |
AC_SUBST(DBINC) |
128 |
AC_SUBST(DBLIB) |
129 |
AC_SUBST(DBHDR) |