courier-imap-4.17-db4-bdbobj_configure.ac.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- a/libs/bdbobj/configure.ac.orig 2013-08-25 20:52:10.000000000 +0200
  2. +++ b/libs/bdbobj/configure.ac 2013-11-22 10:39:25.787861774 +0100
  3. @@ -23,15 +23,22 @@
  4. dnl Checks for libraries.
  5. saveLIBS="$LIBS"
  6. -AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
  7. - AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
  8. - AC_CHECK_LIB(db, db_env_create, [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
  9. - ))
  10. -
  11. +for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
  12. + do
  13. + AC_CHECK_LIB($dbname, db_create_4004, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
  14. + AC_CHECK_LIB($dbname, db_create_4003, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
  15. + AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
  16. + AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
  17. + AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
  18. + AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))))
  19. + done
  20. FOUND_DB=0
  21. -AC_CHECK_FUNC(dbopen, FOUND_DB=1)
  22. -AC_CHECK_FUNC(db_open, FOUND_DB=1)
  23. -AC_CHECK_FUNC(db_env_create, FOUND_DB=1)
  24. +AC_CHECK_FUNC(db_create_4004, FOUND_DB=1)
  25. +AC_CHECK_FUNC(db_create_4003, FOUND_DB=1)
  26. +AC_CHECK_FUNC(db_create_4002, FOUND_DB=1)
  27. +AC_CHECK_FUNC(db_create_4001, FOUND_DB=1)
  28. +AC_CHECK_FUNC(db_create_4000, FOUND_DB=1)
  29. +AC_CHECK_FUNC(db_create, FOUND_DB=1)
  30. LIBS="$saveLIBS"