]> git.notmuchmail.org Git - notmuch/blob - lib/built-with.c
gmime-cleanup: always support session keys
[notmuch] / lib / built-with.c
1 /* notmuch - Not much of an email program, (just index and search)
2  *
3  * Copyright © 2016 David Bremner
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see https://www.gnu.org/licenses/ .
17  *
18  * Author: David Bremner <david@tethera.net>
19  */
20
21 #include "notmuch.h"
22 #include "notmuch-private.h"
23
24 notmuch_bool_t
25 notmuch_built_with (const char *name)
26 {
27     if (STRNCMP_LITERAL (name, "compact") == 0) {
28         return HAVE_XAPIAN_COMPACT;
29     } else if (STRNCMP_LITERAL (name, "field_processor") == 0) {
30         return HAVE_XAPIAN_FIELD_PROCESSOR;
31     } else if (STRNCMP_LITERAL (name, "retry_lock") == 0) {
32         return HAVE_XAPIAN_DB_RETRY_LOCK;
33     } else if (STRNCMP_LITERAL (name, "session_key") == 0) {
34         return true;
35     } else {
36         return false;
37     }
38 }