]> git.notmuchmail.org Git - notmuch/blobdiff - lib/sexp-fp.cc
fix build without sfsexp
[notmuch] / lib / sexp-fp.cc
index ed26f6ec365cd1e3d9edad24bdc5231d386b62e1..1fdf5225a588faccde07be545c67a7a0ce402201 100644 (file)
@@ -30,10 +30,14 @@ SexpFieldProcessor::operator() (const std::string & query_string)
     notmuch_status_t status;
     Xapian::Query output;
 
+#if HAVE_SFSEXP
     status = _notmuch_sexp_string_to_xapian_query (notmuch, query_string.c_str (), output);
     if (status) {
        throw Xapian::QueryParserError ("error parsing " + query_string);
     }
+#else
+    throw Xapian::QueryParserError ("sexp query parser not available");
+#endif
 
     return output;