From 527caa272f9534a3b97d30fb902d8d44fc961226 Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Thu, 11 Jun 2020 10:23:15 +0200 Subject: Use ENABLE_SYNCTEX in libdocument/Makefile.am --- libdocument/Makefile.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am index f527f0a4..d1db419c 100644 --- a/libdocument/Makefile.am +++ b/libdocument/Makefile.am @@ -102,11 +102,14 @@ libatrildocument_la_CPPFLAGS = \ libatrildocument_la_CFLAGS = \ $(LIBDOCUMENT_CFLAGS) \ - $(SYNCTEX_CFLAGS) \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED) \ $(AM_CFLAGS) +if ENABLE_SYNCTEX +libatrildocument_la_CFLAGS += $(SYNCTEX_CFLAGS) +endif + libatrildocument_la_LDFLAGS = \ -version-info $(EV_DOCUMENT_LT_VERSION_INFO) \ -no-undefined \ @@ -116,9 +119,11 @@ libatrildocument_la_LDFLAGS = \ libatrildocument_la_LIBADD = \ $(LIBDOCUMENT_LIBS) \ $(GMODULE_LIBS) \ - $(SYNCTEX_LIBS) \ $(ZLIB_LIBS) +if ENABLE_SYNCTEX +libatrildocument_la_LIBADD += $(SYNCTEX_LIBS) +endif BUILT_SOURCES = \ ev-document-type-builtins.c \ -- cgit v1.2.1