summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz N Tiram <[email protected]>2020-06-11 10:23:15 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-06-18 10:48:28 +0200
commit527caa272f9534a3b97d30fb902d8d44fc961226 (patch)
treea87089fccbd0056bfdc965ce25dd878a72e8b155
parent9e5764f77c2352803c6e66a46d1badd1fdfb37cd (diff)
downloadatril-527caa272f9534a3b97d30fb902d8d44fc961226.tar.bz2
atril-527caa272f9534a3b97d30fb902d8d44fc961226.tar.xz
Use ENABLE_SYNCTEX in libdocument/Makefile.am
-rw-r--r--libdocument/Makefile.am9
1 files 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 \