GNOME Bugzilla – Bug 721733
Tweak Berkeley DB detection logic
Last modified: 2014-01-08 15:13:21 UTC
Make two changes to the logic that we use to find the Berkeley DB: - in the default case where --with-libdb is not given, do not attempt to add the default ${prefix}/include and ${prefix}/lib to the CFLAGS and LIBS. Only do this if --with-libdb is explicitly given. - in the case where --with-libdb is not given, and DB_CFLAGS or DB_LIBS is already set, use those values instead of our own guesses This allows the build to proceed on FreeBSD, where the headers are in an unusual location and the library has an unusual name.
Created attachment 265580 [details] [review] build: tweak Berkeley DB detection logic
Created attachment 265587 [details] [review] build: tweak Berkeley DB detection logic Fix a pair of really silly typos discovered during testing.
Thanks! The --with-libdb configure option has always been rather awkward. I think this helps simplify it. Worth noting that Evolution-Data-Server doesn't actually use Berkeley DB anymore, but we still link to it to migrate old address book databases to SQLite. Committed for 3.11.4 in: https://git.gnome.org/browse/evolution-data-server/commit/?id=3bb0c0e98965387dfaac8cdc14e7347217e6f68e