patch-configure_ac 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- bogofilter-1.2.0.orig/configure.ac 2009-02-21 21:41:43.000000000 +0100
  3. +++ bogofilter-1.2.0/configure.ac 2009-05-28 19:47:00.466710794 +0200
  4. @@ -550,49 +550,6 @@ Cannot link against libdb? Try these ste
  5. AH_TEMPLATE([HAVE_DB_H], [Have suitable db.h header])
  6. AC_SUBST(LIBDB)
  7. - dnl check if run-time link works
  8. - saveLIBS="$LIBS"
  9. - LIBS="$LIBS $LIBDB"
  10. - AC_MSG_CHECKING(if a program can be linked against Berkeley DB and run)
  11. - AC_RUN_IFELSE(
  12. - AC_LANG_PROGRAM([[
  13. -#ifdef HAVE_INTTYPES_H
  14. -#include <inttypes.h>
  15. -#endif
  16. -#include <db.h>
  17. - ]], [[
  18. -return 0;
  19. - ]]),,
  20. - [AC_MSG_RESULT(no)
  21. - AC_MSG_ERROR([Cannot run a program linked against libdb.
  22. -Did you adjust your library search path to include your libdb?])],)
  23. - AC_MSG_RESULT(yes)
  24. -
  25. - dnl check if header and library of DB library match
  26. - dnl ignore if cross compiling
  27. - AC_MSG_CHECKING(if Berkeley DB header and library versions match)
  28. - rm -r -f bfadtestdir
  29. - mkdir bfadtestdir
  30. - AC_RUN_IFELSE(
  31. - AC_LANG_PROGRAM([[
  32. - #include <stdlib.h>
  33. - #include <stdio.h>
  34. -#ifdef HAVE_INTTYPES_H
  35. -#include <inttypes.h>
  36. -#endif
  37. - #include <db.h>
  38. - ]], [[
  39. - int maj, min;
  40. - (void)db_version(&maj, &min, 0);
  41. - (void)fprintf(stderr, "headers: %d.%d, library: %d.%d\n",
  42. - DB_VERSION_MAJOR, DB_VERSION_MINOR, maj, min);
  43. - if (maj != DB_VERSION_MAJOR) exit(1);
  44. - if (min != DB_VERSION_MINOR) exit(1);
  45. - exit(0);
  46. - ]]),,
  47. - [AC_MSG_RESULT(no)
  48. - AC_MSG_ERROR(db.h header file and db library version do not match.)],)
  49. - AC_MSG_RESULT(yes)
  50. AC_CHECK_DECLS(db_create,,
  51. AC_MSG_ERROR([[Can not locate a suitable Berkeley DB db.h header file.
  52. Use --with-libdb-prefix=PATH to specify the path to a v3+ install directory.