diff options
author | rbuj <[email protected]> | 2019-08-22 10:28:28 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-08-29 12:00:35 +0200 |
commit | f1c1bbd843ab9ec47aa56782901d749bf895068f (patch) | |
tree | 409ecb698ff5ba045b2747ded2852d3089095ed5 /configure.ac | |
parent | 4bc59d4a716b3ab271bb15adf4b9b5dd6961a4a2 (diff) | |
download | atril-f1c1bbd843ab9ec47aa56782901d749bf895068f.tar.bz2 atril-f1c1bbd843ab9ec47aa56782901d749bf895068f.tar.xz |
build: Use synctex system library if available
based on https://gitlab.gnome.org/GNOME/evince/commit/9edaca5b7b35bbbeeecfaf8d9291a4c092d8be91
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b388290d..7054244d 100644 --- a/configure.ac +++ b/configure.ac @@ -88,6 +88,7 @@ GTK_REQUIRED=3.22.0 WEBKIT_REQUIRED=2.4.3 LIBSECRET_REQUIRED=0.5 LIBXML_REQUIRED=2.5.0 +SYNCTEX_REQUIRED=1.21 AC_SUBST([GLIB_REQUIRED]) AC_SUBST([GTK_REQUIRED]) @@ -358,6 +359,19 @@ AC_SUBST([GIRTYPELIBDIR]) AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"]) +dnl ================== libsynctex =========================================== + +PKG_CHECK_MODULES(SYNCTEX, [synctex >= $SYNCTEX_REQUIRED], has_synctex=system, has_synctex=internal) + +dnl not found? use internal code copy. +if test "x$has_synctex" = "xinternal"; then + SYNCTEX_LIBS="\$(top_builddir)/cut-n-paste/synctex/libsynctex.la" + SYNCTEX_CFLAGS="-I\$(top_srcdir)/cut-n-paste/synctex" +fi +AC_SUBST(SYNCTEX_LIBS) +AC_SUBST(SYNCTEX_CFLAGS) +AM_CONDITIONAL(USE_INTERNAL_SYNCTEX, test x$has_synctex = xinternal) + dnl ================== portability checks =========================================== dnl for backtrace() @@ -773,4 +787,6 @@ Configure summary: Comics Backend......: $enable_comics XPS Backend.........: $enable_xps ePub Backend........: $have_webkit + + SyncTeX.............: $has_synctex " |