1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-14 23:32:27 +00:00

In far, far future libdom will be used by ELinks

This commit is contained in:
Witold Filipczyk 2016-12-03 19:06:03 +01:00
parent 2fc9b0bf5a
commit be94fb4b1d
2 changed files with 33 additions and 0 deletions

View File

@ -71,6 +71,8 @@ INTLOBJS = @INTLOBJS@
INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
JW = @JW@
LIBDIR = @LIBDIR@
LIBDOM_CFLAGS = @LIBDOM_CFLAGS@
LIBDOM_LIBS = @LIBDOM_LIBS@
LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@
LOCALEDIR = @LOCALEDIR@
LUA_CFLAGS = @LUA_CFLAGS@
@ -139,6 +141,7 @@ CONFIG_INTERLINK = @CONFIG_INTERLINK@
CONFIG_IPV6 = @CONFIG_IPV6@
CONFIG_JW = @CONFIG_JW@
CONFIG_LEDS = @CONFIG_LEDS@
CONFIG_LIBDOM = @CONFIG_LIBDOM@
CONFIG_LZMA = @CONFIG_LZMA@
CONFIG_MAILCAP = @CONFIG_MAILCAP@
CONFIG_MANUAL = @CONFIG_MANUAL@

View File

@ -1563,6 +1563,36 @@ AC_SUBST(TRE_CFLAGS)
AC_SUBST(TRE_LIBS)
EL_LOG_CONFIG([CONFIG_TRE], [[Regexp searching]], [[$tre_log]])
# ===================================================================
# libdom
# ===================================================================
LIBDOM_CFLAGS=
LIBDOM_LIBS=
CONFIG_LIBDOM=no
enable_libdom=no
AC_ARG_WITH(libdom, [ --with-libdom enable libdom],
[ if test "x$withval" != xno; then enable_libdom=yes; fi ])
if test "$enable_libdom" = no; then
AC_MSG_CHECKING([[for libdom]])
AC_MSG_RESULT([[disabled]])
else
AC_MSG_CHECKING([[for libdom in pkg-config]])
if $PKG_CONFIG libdom; then
LIBDOM_CFLAGS=`$PKG_CONFIG --cflags libdom`
LIBDOM_LIBS=`$PKG_CONFIG --libs libdom`
LIBS="$LIBDOM_LIBS $LIBS"
CONFIG_LIBDOM=yes
AC_MSG_RESULT([[yes]])
else
enable_libdom=no
fi
fi
AC_SUBST(LIBDOM_CFLAGS)
AC_SUBST(LIBDOM_LIBS)
EL_LOG_CONFIG([CONFIG_LIBDOM], [[libdom]], [[$enable_libdom]])
# ===================================================================
# Further LDFLAGS tweaks