mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-28 03:06:20 -04: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:
parent
adeac4720a
commit
4c95dd86a7
14
configure.in
14
configure.in
@ -926,6 +926,18 @@ fi
|
|||||||
# Check for TRE library
|
# 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]])
|
AC_MSG_CHECKING([[for TRE in pkg-config]])
|
||||||
if pkg-config tre; then
|
if pkg-config tre; then
|
||||||
TRE_CFLAGS=`pkg-config --cflags tre`
|
TRE_CFLAGS=`pkg-config --cflags tre`
|
||||||
@ -962,6 +974,8 @@ AC_TRY_LINK([#include <tre/regex.h>],
|
|||||||
EL_RESTORE_FLAGS])
|
EL_RESTORE_FLAGS])
|
||||||
AC_SUBST(TRE_CFLAGS)
|
AC_SUBST(TRE_CFLAGS)
|
||||||
AC_SUBST(TRE_LIBS)
|
AC_SUBST(TRE_LIBS)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($cf_result)
|
||||||
|
|
||||||
AC_CHECK_SIZEOF([wchar_t], [4], [[#include <wchar.h>]])
|
AC_CHECK_SIZEOF([wchar_t], [4], [[#include <wchar.h>]])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user