mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
FS-5763: --resolve add configure check for lzma and newer readhat/sl tinfo stuff
This commit is contained in:
parent
0c65c4614d
commit
5dcfe78169
@ -139,7 +139,7 @@ endif
|
||||
|
||||
if HAVE_LIBEDIT
|
||||
CORE_CFLAGS += -I$(switch_srcdir)/libs/libedit/src -DSWITCH_HAVE_LIBEDIT
|
||||
CORE_LIBS += libs/libedit/src/.libs/libedit.a
|
||||
CORE_LIBS += libs/libedit/src/.libs/libedit.a $(TINFO_LIBS)
|
||||
endif
|
||||
|
||||
if ENABLE_TIMERFD_WRAPPER
|
||||
@ -330,7 +330,7 @@ fs_cli_LDFLAGS = $(AM_LDFLAGS) -lpthread $(ESL_LDFLAGS) -lm
|
||||
|
||||
if HAVE_LIBEDIT
|
||||
fs_cli_CFLAGS += -DHAVE_EDITLINE -I$(switch_srcdir)/libs/libedit/src
|
||||
fs_cli_LDADD = libs/libedit/src/.libs/libedit.a
|
||||
fs_cli_LDADD = libs/libedit/src/.libs/libedit.a $(TINFO_LIBS)
|
||||
endif
|
||||
|
||||
|
||||
@ -379,7 +379,7 @@ freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la
|
||||
|
||||
if HAVE_LIBEDIT
|
||||
freeswitch_CFLAGS += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT
|
||||
freeswitch_LDADD += libs/libedit/src/.libs/libedit.a
|
||||
freeswitch_LDADD += libs/libedit/src/.libs/libedit.a $(TINFO_LIBS)
|
||||
endif
|
||||
|
||||
if HAVE_ODBC
|
||||
|
20
configure.in
20
configure.in
@ -482,6 +482,12 @@ SPANDSP_LA_JBIG="-ljbig"
|
||||
AC_SUBST(SPANDSP_LA_JBIG)
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB(lzma, lzma_code, have_liblzma=yes, have_liblzma=no)
|
||||
if test "x$have_liblzma" = "xyes" ; then
|
||||
SPANDSP_LA_LZMA="-llzma"
|
||||
AC_SUBST(SPANDSP_LA_LZMA)
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB(resolv, res_init, have_libresolv=yes, have_libresolv=no)
|
||||
if test "x$have_libresolv" = "xyes" ; then
|
||||
APR_ADDTO(SWITCH_AM_LDFLAGS, -lresolv)
|
||||
@ -980,9 +986,16 @@ AC_ARG_ENABLE(core-libedit-support,
|
||||
[AS_HELP_STRING([--disable-core-libedit-support], [Compile without libedit Support])], [enable_core_libedit_support="$enableval"], [enable_core_libedit_support="yes"])
|
||||
|
||||
if test "$enable_core_libedit_support" = "yes" ; then
|
||||
AC_CHECK_LIB(ncurses, tgetent,,
|
||||
[AC_CHECK_LIB(curses, tgetent,,
|
||||
[AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
|
||||
AC_CHECK_LIB(tinfo, tgetent, [have_libtinfo="yes"], [have_libtinfo="no"])
|
||||
if test "$have_libtinfo" == "yes" ; then
|
||||
TINFO_LIBS="-ltinfo"
|
||||
else
|
||||
TINFO_LIBS=""
|
||||
AC_CHECK_LIB(ncurses, tgetent,,
|
||||
[AC_CHECK_LIB(curses, tgetent,,
|
||||
[AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
|
||||
fi
|
||||
AC_SUBST(TINFO_LIBS)
|
||||
fi
|
||||
|
||||
SAC_OPENSSL
|
||||
@ -1153,6 +1166,7 @@ AC_CONFIG_FILES([Makefile
|
||||
build/getg729.sh
|
||||
build/freeswitch.pc
|
||||
build/modmake.rules
|
||||
libs/esl/eslmake.rules
|
||||
libs/xmlrpc-c/xmlrpc_config.h
|
||||
libs/xmlrpc-c/config.mk
|
||||
libs/xmlrpc-c/srcdir.mk
|
||||
|
@ -1,3 +1,4 @@
|
||||
include eslmake.rules
|
||||
PWD=$(shell pwd)
|
||||
INCS=-I$(PWD)/src/include
|
||||
LIBEDIT_DIR=../../libs/libedit
|
||||
@ -7,7 +8,7 @@ PICKY=-O2
|
||||
CFLAGS=$(BASE_FLAGS) $(PICKY)
|
||||
CXXFLAGS=$(BASE_FLAGS)
|
||||
MYLIB=libesl.a
|
||||
LIBS=-lncurses -lesl -lpthread -lm
|
||||
LIBS=-lncurses -lesl -lpthread -lm $(TINFO_LIBS)
|
||||
LDFLAGS=-L.
|
||||
OBJS=src/esl.o src/esl_event.o src/esl_threadmutex.o src/esl_config.o src/esl_json.o src/esl_buffer.o
|
||||
SRC=src/esl.c src/esl_json.c src/esl_event.c src/esl_threadmutex.c src/esl_config.c src/esl_oop.cpp src/esl_json.c src/esl_buffer.c
|
||||
|
2
libs/esl/eslmake.rules.in
Normal file
2
libs/esl/eslmake.rules.in
Normal file
@ -0,0 +1,2 @@
|
||||
TINFO_LIBS=@TINFO_LIBS@
|
||||
|
@ -27,9 +27,16 @@ AC_PROG_LN_S
|
||||
AC_PROG_AWK
|
||||
EL_MANTYPE
|
||||
|
||||
AC_CHECK_LIB(curses, tgetent,,
|
||||
[AC_CHECK_LIB(ncurses, tgetent,,
|
||||
[AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
|
||||
AC_CHECK_LIB(tinfo, tgetent, [have_libtinfo="yes"], [have_libtinfo="no"])
|
||||
if test "$have_libtinfo" == "yes" ; then
|
||||
TINFO_LIBS="-ltinfo"
|
||||
else
|
||||
TINFO_LIBS=""
|
||||
AC_CHECK_LIB(ncurses, tgetent,,
|
||||
[AC_CHECK_LIB(curses, tgetent,,
|
||||
[AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
|
||||
fi
|
||||
AC_SUBST(TINFO_LIBS)
|
||||
|
||||
# Checks for header files.
|
||||
AC_FUNC_ALLOCA
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
LDADD = $(top_builddir)/src/libedit.la
|
||||
LDADD = $(top_builddir)/src/libedit.la $(TINFO_LIBS)
|
||||
AM_CFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
noinst_PROGRAMS = test fileman
|
||||
|
@ -7,6 +7,6 @@ Name: libedit
|
||||
Description: command line editor library provides generic line editing, history, and tokenization functions.
|
||||
Version: @VERSION@
|
||||
Requires:
|
||||
Libs: -L${libdir} -ledit -lcurses
|
||||
Libs: -L${libdir} -ledit -lcurses @TINFO_LIBS@
|
||||
Cflags: -I${includedir} -I${includedir}/editline
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user