3 # Copyright 2010, 2011, 2012 Ali Polatel <alip@exherbo.org>
4 # Distributed under the terms of the GNU General Public License v3
8 dir = File.join('..', '..', 'lib')
11 $INCFLAGS = "-I#{dir} #{$INCFLAGS}"
13 if ENV['EXTRA_LDFLAGS']
14 $LDFLAGS += " " + ENV['EXTRA_LDFLAGS']
17 def have_local_library(lib, path, func, headers = nil)
18 checking_for checking_message(func, lib) do
19 lib = File.join(path, lib)
20 if try_func(func, lib, headers)
26 if not have_local_library('libnotmuch.so', dir, 'notmuch_database_create', 'notmuch.h')
32 create_makefile('notmuch')