From 222ee87dfefdd85ddbd7f148d5636746919d4100 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 1 Dec 2009 17:56:39 -0800 Subject: configure: Resolve all pkg-config flags at configure time. Previously, we were resolving these within the Makefile. This had the problem that if pkg-config was not present, the Makefile would still invoke it resulting in ugly errors before the configure script was even run, (which would finally present a kind error message about pkg-config not being present). --- Makefile | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6a2ecea5..588f8538 100644 --- a/Makefile +++ b/Makefile @@ -10,30 +10,18 @@ EMACS ?= emacs # arguments to gzip. gzip = gzip -# Additional flags that we will append to whatever the user set. -# These aren't intended for the user to manipulate. -extra_cflags := $(shell pkg-config --cflags glib-2.0 gmime-2.4 talloc) -extra_cxxflags := $(shell xapian-config --cxxflags) - -emacs_lispdir := $(shell pkg-config emacs --variable sitepkglispdir) -# Hard-code if this system doesn't have an emacs.pc file -ifeq ($(emacs_lispdir),) - emacs_lispdir = $(prefix)/share/emacs/site-lisp -endif - bash_completion_dir = /etc/bash_completion.d all_deps = Makefile Makefile.local Makefile.config \ lib/Makefile lib/Makefile.local +extra_cflags := +extra_cxxflags := + # Now smash together user's values with our extra values override CFLAGS += $(WARN_CFLAGS) $(extra_cflags) override CXXFLAGS += $(WARN_CXXFLAGS) $(extra_cflags) $(extra_cxxflags) -override LDFLAGS += \ - $(shell pkg-config --libs glib-2.0 gmime-2.4 talloc) \ - $(shell xapian-config --libs) - all: notmuch notmuch.1.gz # Before including any other Makefile fragments, get settings from the -- cgit v1.2.3