]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/bogofilter/bogofilter-0.96.0/configure.ac.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / bogofilter / bogofilter-0.96.0 / configure.ac.patch
1 --- bogofilter-0.96.0/configure.ac.orig 2005-09-04 20:42:35.000000000 +0200
2 +++ bogofilter-0.96.0/configure.ac      2005-09-04 20:45:12.000000000 +0200
3 @@ -460,6 +460,7 @@
4         dnl check if run-time link works
5         saveLIBS="$LIBS"
6         LIBS="$LIBS $LIBDB"
7 +       if test x$cross_compiling = xNO ; then
8         AC_MSG_CHECKING(if a program can be linked against Berkeley DB and run)
9         AC_RUN_IFELSE(
10         AC_LANG_PROGRAM([[
11 @@ -500,6 +501,7 @@
12                    [AC_MSG_RESULT(no)
13                    AC_MSG_ERROR(db.h header file and db library version do not match.)],)
14         AC_MSG_RESULT(yes)
15 +       fi
16         AC_CHECK_DECLS(db_create,,
17                AC_MSG_ERROR([[Can not locate a suitable Berkeley DB db.h header file.
18  Use --with-libdb-prefix=PATH to specify the path to a v3+ install directory.
19 @@ -509,6 +511,7 @@
20  #endif
21  #include <db.h>]]
22         )
23 +       if test x$cross_compiling = xNO ; then
24         AC_MSG_CHECKING(if Berkeley DB supports shared environments)
25         if test "x$enable_dbshared_test" != xno && test "x$USE_TRANSACTIONS" != xNO ; then
26         AC_RUN_IFELSE(
27 @@ -548,6 +551,7 @@
28      else
29         AC_MSG_RESULT(skipped)
30      fi
31 +       fi
32  
33         AC_DEFINE(ENABLE_DB_DATASTORE,1, [Enable Berkeley DB datastore])
34         LIBS="$saveLIBS"