diff options
-rw-r--r-- | libdocument/Makefile.am | 9 |
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 \ |