mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[configure.ac] --with-libsixel
This commit is contained in:
parent
aae82861cf
commit
28b5dc9456
@ -150,6 +150,7 @@ CONFIG_DBLATEX = @CONFIG_DBLATEX@
|
||||
CONFIG_LEDS = @CONFIG_LEDS@
|
||||
CONFIG_LIBCSS = @CONFIG_LIBCSS@
|
||||
CONFIG_LIBDOM = @CONFIG_LIBDOM@
|
||||
CONFIG_LIBSIXEL = @CONFIG_LIBSIXEL@
|
||||
CONFIG_LZMA = @CONFIG_LZMA@
|
||||
CONFIG_MAILCAP = @CONFIG_MAILCAP@
|
||||
CONFIG_MANUAL = @CONFIG_MANUAL@
|
||||
|
33
configure.ac
33
configure.ac
@ -895,6 +895,39 @@ if test "x$CONFIG_LIBDOM" = xyes; then
|
||||
AC_SUBST(CONFIG_LIBDOM)
|
||||
fi
|
||||
|
||||
# ===================================================================
|
||||
# Check for libsixel
|
||||
# ===================================================================
|
||||
|
||||
AC_ARG_WITH([libsixel],
|
||||
[AS_HELP_STRING([--with-libsixel],
|
||||
[enable sixel graphics])])
|
||||
|
||||
CONFIG_LIBSIXEL=
|
||||
|
||||
case "$with_libsixel" in
|
||||
"" | no)
|
||||
# The user specified --without-libsixel.
|
||||
AC_MSG_CHECKING([for libsixel])
|
||||
AC_MSG_RESULT([disabled])
|
||||
CONFIG_LIBSIXEL="no"
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
if test "x$CONFIG_LIBSIXEL" = x; then
|
||||
LIBSIXEL_CFLAGS="$($PKG_CONFIG $pkg_config_static --cflags libsixel)"
|
||||
LIBSIXEL_LIBS="$($PKG_CONFIG $pkg_config_static --libs libsixel)"
|
||||
LIBS="$LIBSIXEL_LIBS $LIBS"
|
||||
CFLAGS="$CFLAGS $LIBSIXEL_CFLAGS"
|
||||
CONFIG_LIBSIXEL=yes
|
||||
EL_CONFIG(CONFIG_LIBSIXEL, [libsixel])
|
||||
AC_SUBST(CONFIG_LIBSIXEL)
|
||||
fi
|
||||
|
||||
# ===================================================================
|
||||
# Check for Guile, optional even if installed.
|
||||
# ===================================================================
|
||||
|
@ -2,6 +2,7 @@ top_builddir=../..
|
||||
include $(top_builddir)/Makefile.config
|
||||
|
||||
OBJS-$(CONFIG_MOUSE) += mouse.o
|
||||
OBJS-$(CONFIG_LIBSIXEL) += sixel.o
|
||||
OBJS-$(CONFIG_TERMINFO) += terminfo.o
|
||||
|
||||
OBJS = \
|
||||
|
Loading…
x
Reference in New Issue
Block a user