diff options
author | Oz N Tiram <[email protected]> | 2020-06-11 10:21:00 +0200 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2020-06-18 10:48:28 +0200 |
commit | 9e5764f77c2352803c6e66a46d1badd1fdfb37cd (patch) | |
tree | 0b8913d7c2dc070e0715e7dae345cc00cf2849a2 /configure.ac | |
parent | 8712286c8dacfd0a448c86e7d282437abe854ab8 (diff) | |
download | atril-9e5764f77c2352803c6e66a46d1badd1fdfb37cd.tar.bz2 atril-9e5764f77c2352803c6e66a46d1badd1fdfb37cd.tar.xz |
Improved detection of --enable/disable synctex option
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index e7a63fee..ee33f27d 100644 --- a/configure.ac +++ b/configure.ac @@ -362,9 +362,12 @@ AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"]) dnl ================== libsynctex =========================================== AC_ARG_ENABLE([synctex], - [AS_HELP_STRING([--disable-synctex], [Disable support for synctex])], - [], - [enable_synctex=yes]) + [--enable-synctex enable support for synctex)], + [case "${enableval}" in + yes) synctex=true ;; + no) synctex=false;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-synctex]) ;; + esac],[enable_synctex=yes]) if test "$enable_synctex" = "yes"; then |