[hb-old] Add HarfBuzz.old shaper
Choose using shaper name "old".
diff --git a/src/Makefile.am b/src/Makefile.am
index 757f7ca..b1255fa 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,8 @@
# Process this file with automake to produce Makefile.in
NULL =
+SUBDIRS =
+DIST_SUBDIRS =
BUILT_SOURCES =
EXTRA_DIST =
CLEANFILES =
@@ -8,9 +10,6 @@
MAINTAINERCLEANFILES =
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
-SUBDIRS = hb-old
-DIST_SUBDIRS = hb-old
-
# The following warning options are useful for debugging: -Wpadded
#AM_CXXFLAGS =
@@ -148,7 +147,14 @@
HBHEADERS += hb-coretext.h
endif
-HBLIBS += hb-old/libhb-old.la
+if HAVE_HB_OLD
+SUBDIRS += hb-old
+HBCFLAGS += -I$(srcdir)/hb-old
+HBLIBS += hb-old/libhb-old.la
+HBSOURCES += hb-old.cc hb-old-private.hh
+endif
+DIST_SUBDIRS += hb-old
+
# Use a C linker, not C++; Don't link to libstdc++
libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)