1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00

Add --without-tre option

elinks-lite in Debian does not depend on any libraries (except
gnutls). Including this option will allow elinks-lite to be built
without libtre dependency.
This commit is contained in:
Hema Seetharamaiah 2009-04-26 16:43:01 +05:30 committed by Kalle Olavi Niemitalo
parent adeac4720a
commit 4c95dd86a7

View File

@ -926,6 +926,18 @@ fi
# Check for TRE library
# ===================================================================
disable_tre=""
AC_ARG_WITH(tre, [ --without-tre disable TRE regex search support],
[if test "$with_tre" = no; then disable_tre=yes; fi])
AC_MSG_CHECKING([for TRE])
EL_SAVE_FLAGS
cf_result="no"
if test "$disable_tre" = yes; then
cf_result="not used"
else
AC_MSG_CHECKING([[for TRE in pkg-config]])
if pkg-config tre; then
TRE_CFLAGS=`pkg-config --cflags tre`
@ -962,6 +974,8 @@ AC_TRY_LINK([#include <tre/regex.h>],
EL_RESTORE_FLAGS])
AC_SUBST(TRE_CFLAGS)
AC_SUBST(TRE_LIBS)
fi
AC_MSG_RESULT($cf_result)
AC_CHECK_SIZEOF([wchar_t], [4], [[#include <wchar.h>]])