BuildSystem: With external editline, do not require libs for internal editline.
ASTERISK-27761 Change-Id: Ib17a7415297a210cfcdbf149e4df9b6edadbfab6
This commit is contained in:
parent
fa892d8dfd
commit
d6fda173a4
39
configure.ac
39
configure.ac
|
@ -458,7 +458,6 @@ AST_EXT_LIB_SETUP([CAP], [POSIX 1.e capabilities], [cap])
|
|||
AST_EXT_LIB_SETUP([CODEC2], [Codec 2 Audio Decoder/Encoder], [codec2])
|
||||
AST_EXT_LIB_SETUP([COROSYNC], [Corosync], [cpg])
|
||||
AST_EXT_LIB_SETUP_OPTIONAL([COROSYNC_CFG_STATE_TRACK], [A callback only in corosync 1.x], [COROSYNC], [cfg])
|
||||
AST_EXT_LIB_SETUP([CURSES], [curses], [curses])
|
||||
AST_EXT_LIB_SETUP([CRYPT], [password and data encryption], [crypt])
|
||||
AST_EXT_LIB_SETUP([CRYPTO], [OpenSSL Cryptography], [crypto])
|
||||
AST_EXT_LIB_SETUP_OPTIONAL([OPENSSL_SRTP], [OpenSSL SRTP Extension Support], [CRYPTO], [crypto])
|
||||
|
@ -492,7 +491,6 @@ AST_EXT_LIB_SETUP([LUA], [Lua], [lua])
|
|||
AST_EXT_LIB_SETUP([MISDN], [mISDN user], [misdn])
|
||||
AST_EXT_LIB_SETUP([MYSQLCLIENT], [MySQL client], [mysqlclient])
|
||||
AST_EXT_LIB_SETUP([NBS], [Network Broadcast Sound], [nbs])
|
||||
AST_EXT_LIB_SETUP([NCURSES], [ncurses], [ncurses])
|
||||
AST_EXT_LIB_SETUP([NEON], [neon], [neon])
|
||||
AST_EXT_LIB_SETUP([NEON29], [neon29], [neon29])
|
||||
AST_EXT_LIB_SETUP([NETSNMP], [Net-SNMP], [netsnmp])
|
||||
|
@ -571,9 +569,7 @@ AST_EXT_LIB_SETUP([OPENSSL], [OpenSSL Secure Sockets Layer], [ssl])
|
|||
AST_EXT_LIB_SETUP_OPTIONAL([RT], [Realtime functions], [rt])
|
||||
AST_EXT_LIB_SETUP([SUPPSERV], [mISDN Supplemental Services], [suppserv])
|
||||
AST_EXT_LIB_SETUP([FREETDS], [FreeTDS], [tds])
|
||||
AST_EXT_LIB_SETUP([TERMCAP], [Termcap], [termcap])
|
||||
AST_EXT_LIB_SETUP([TIMERFD], [timerfd], [timerfd])
|
||||
AST_EXT_LIB_SETUP([TINFO], [Term Info], [tinfo])
|
||||
AST_EXT_LIB_SETUP([TONEZONE], [tonezone], [tonezone])
|
||||
AST_EXT_LIB_SETUP([UNBOUND], [unbound], [unbound])
|
||||
AST_EXT_LIB_SETUP([UNIXODBC], [unixODBC], [unixodbc])
|
||||
|
@ -621,25 +617,15 @@ AC_CHECK_HEADERS([ \
|
|||
|
||||
AC_CHECK_HEADERS([arpa/inet.h libintl.h malloc.h netdb.h stddef.h strings.h sys/event.h utime.h])
|
||||
|
||||
# Any one of these packages support a mandatory requirement, so we want to check on them as early as possible.
|
||||
AST_EXT_LIB_CHECK([TERMCAP], [termcap], [tgetent], [])
|
||||
AST_EXT_LIB_CHECK([TINFO], [tinfo], [tgetent], [])
|
||||
AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h])
|
||||
AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [curses.h])
|
||||
|
||||
EDITLINE_LIB=""
|
||||
if test "x$TERMCAP_LIB" != "x" ; then
|
||||
EDITLINE_LIB="$TERMCAP_LIB"
|
||||
elif test "x$TINFO_LIB" != "x" ; then
|
||||
EDITLINE_LIB="$TINFO_LIB"
|
||||
elif test "x$CURSES_LIB" != "x" ; then
|
||||
EDITLINE_LIB="$CURSES_LIB"
|
||||
elif test "x$NCURSES_LIB" != "x" ; then
|
||||
EDITLINE_LIB="$NCURSES_LIB"
|
||||
else
|
||||
AC_MSG_ERROR([*** termcap support not found (on modern systems, this typically means the ncurses development package is missing)])
|
||||
# Find required NetBSD Editline library (libedit).
|
||||
AST_PKG_CONFIG_CHECK(LIBEDIT, libedit)
|
||||
# some platforms do not list libedit via pkg-config, for example OpenBSD 6.2
|
||||
AST_EXT_LIB_CHECK([LIBEDIT], [edit], [history_init], [histedit.h], [-ltermcap])
|
||||
if test "${PBX_LIBEDIT}" != 1; then
|
||||
AC_MSG_ERROR(*** Please install the 'libedit' development package.)
|
||||
exit 1
|
||||
fi
|
||||
AC_SUBST(EDITLINE_LIB)
|
||||
AST_C_COMPILE_CHECK([LIBEDIT_IS_UNICODE], [el_rfunc_t *callback;], [histedit.h], [], [Testing for libedit unicode support])
|
||||
|
||||
# Find required UUID support.
|
||||
# * -luuid on Linux
|
||||
|
@ -1599,15 +1585,6 @@ if test "${USE_ILBC}" != "no"; then
|
|||
fi
|
||||
fi
|
||||
|
||||
AST_PKG_CONFIG_CHECK(LIBEDIT, libedit)
|
||||
# some platforms do not list libedit via pkg-config, for example OpenBSD 6.2
|
||||
AST_EXT_LIB_CHECK([LIBEDIT], [edit], [history_init], [histedit.h], [-ltermcap])
|
||||
if test "${PBX_LIBEDIT}" != 1; then
|
||||
AC_MSG_ERROR(*** Please install the 'libedit' development package.)
|
||||
exit 1
|
||||
fi
|
||||
AST_C_COMPILE_CHECK([LIBEDIT_IS_UNICODE], [el_rfunc_t *callback;], [histedit.h], [], [Testing for libedit unicode support])
|
||||
|
||||
AST_EXT_LIB_CHECK([ICONV], [iconv], [iconv_open], [iconv.h])
|
||||
# GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
|
||||
AST_EXT_LIB_CHECK([ICONV], [iconv], [libiconv_open], [iconv.h])
|
||||
|
|
|
@ -185,9 +185,6 @@
|
|||
/* Define to 1 if you have a functional curl library. */
|
||||
#undef HAVE_CURL
|
||||
|
||||
/* Define to 1 if you have the curses library. */
|
||||
#undef HAVE_CURSES
|
||||
|
||||
/* Define to 1 if your C compiler provides __atomic operations. */
|
||||
#undef HAVE_C_ATOMICS
|
||||
|
||||
|
@ -534,9 +531,6 @@
|
|||
/* Define to 1 if you have the Network Broadcast Sound library. */
|
||||
#undef HAVE_NBS
|
||||
|
||||
/* Define to 1 if you have the ncurses library. */
|
||||
#undef HAVE_NCURSES
|
||||
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
#undef HAVE_NDIR_H
|
||||
|
||||
|
@ -1155,9 +1149,6 @@
|
|||
/* Define to 1 if you have the `tanl' function. */
|
||||
#undef HAVE_TANL
|
||||
|
||||
/* Define to 1 if you have the Termcap library. */
|
||||
#undef HAVE_TERMCAP
|
||||
|
||||
/* Define to 1 if you have the <termios.h> header file. */
|
||||
#undef HAVE_TERMIOS_H
|
||||
|
||||
|
@ -1170,9 +1161,6 @@
|
|||
/* Define to 1 if you have the <time.h> header file. */
|
||||
#undef HAVE_TIME_H
|
||||
|
||||
/* Define to 1 if you have the Term Info library. */
|
||||
#undef HAVE_TINFO
|
||||
|
||||
/* Define to 1 if you have the tonezone library. */
|
||||
#undef HAVE_TONEZONE
|
||||
|
||||
|
|
|
@ -57,9 +57,9 @@ ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc linux-musl kfreebs
|
|||
ifneq (x$(CAP_LIB),x)
|
||||
AST_LIBS+=$(CAP_LIB)
|
||||
endif
|
||||
AST_LIBS+=-lpthread $(EDITLINE_LIB) -lm -lresolv
|
||||
AST_LIBS+=-lpthread -lm -lresolv
|
||||
else
|
||||
AST_LIBS+=$(EDITLINE_LIB) -lm
|
||||
AST_LIBS+=-lm
|
||||
endif
|
||||
|
||||
ifneq ($(findstring BETTER_BACKTRACES,$(MENUSELECT_CFLAGS)),)
|
||||
|
@ -90,11 +90,11 @@ ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
|
|||
ASTLINK+=-shared -Wl,--out-implib,libasterisk.a
|
||||
endif
|
||||
ifeq ($(OSARCH),NetBSD)
|
||||
AST_LIBS+=-lpthread -lcrypto -lm -L/usr/pkg/lib $(EDITLINE_LIB)
|
||||
AST_LIBS+=-lpthread -lcrypto -lm -L/usr/pkg/lib
|
||||
endif
|
||||
|
||||
ifeq ($(OSARCH),OpenBSD)
|
||||
AST_LIBS+=-lcrypto -lpthread -lm $(EDITLINE_LIB)
|
||||
AST_LIBS+=-lcrypto -lpthread -lm
|
||||
endif
|
||||
|
||||
ifeq ($(OSARCH),SunOS)
|
||||
|
@ -354,7 +354,6 @@ endif
|
|||
rm -f .libasteriskpj*
|
||||
|
||||
rm -f asterisk.exports libasteriskssl.exports libasteriskpj.exports
|
||||
@if [ -f editline/Makefile ]; then $(MAKE) -C editline distclean ; fi
|
||||
@$(MAKE) -C stdtime clean
|
||||
rm -f libresample/src/*.o
|
||||
rm -f *.tmp
|
||||
|
|
18
makeopts.in
18
makeopts.in
|
@ -143,12 +143,6 @@ CODEC2_LIB=@CODEC2_LIB@
|
|||
CURL_INCLUDE=@CURL_INCLUDE@
|
||||
CURL_LIB=@CURL_LIB@
|
||||
|
||||
CURSES_INCLUDE=@CURSES_INCLUDE@
|
||||
CURSES_LIB=@CURSES_LIB@
|
||||
CURSES_DIR=@CURSES_DIR@
|
||||
|
||||
EDITLINE_LIB=@EDITLINE_LIB@
|
||||
|
||||
FREETDS_INCLUDE=@FREETDS_INCLUDE@
|
||||
FREETDS_LIB=@FREETDS_LIB@
|
||||
|
||||
|
@ -210,10 +204,6 @@ MYSQLCLIENT_LIB=@MYSQLCLIENT_LIB@
|
|||
NBS_INCLUDE=@NBS_INCLUDE@
|
||||
NBS_LIB=@NBS_LIB@
|
||||
|
||||
NCURSES_INCLUDE=@NCURSES_INCLUDE@
|
||||
NCURSES_LIB=@NCURSES_LIB@
|
||||
NCURSES_DIR=@NCURSES_DIR@
|
||||
|
||||
NEON_INCLUDE=@NEON_INCLUDE@
|
||||
NEON_LIB=@NEON_LIB@
|
||||
NEON29_INCLUDE=@NEON_INCLUDE@
|
||||
|
@ -364,20 +354,12 @@ CAP_INCLUDE=@CAP_INCLUDE@
|
|||
BKTR_INCLUDE=@BKTR_INCLUDE@
|
||||
BKTR_LIB=@BKTR_LIB@
|
||||
|
||||
TERMCAP_INCLUDE=@TERMCAP_INCLUDE@
|
||||
TERMCAP_LIB=@TERMCAP_LIB@
|
||||
TERMCAP_DIR=@TERMCAP_DIR@
|
||||
|
||||
LIBXML2_INCLUDE=@LIBXML2_INCLUDE@
|
||||
LIBXML2_LIB=@LIBXML2_LIB@
|
||||
|
||||
LIBXSLT_INCLUDE=@LIBXSLT_INCLUDE@
|
||||
LIBXSLT_LIB=@LIBXSLT_LIB@
|
||||
|
||||
TINFO_INCLUDE=@TINFO_INCLUDE@
|
||||
TINFO_LIB=@TINFO_LIB@
|
||||
TINFO_DIR=@TINFO_DIR@
|
||||
|
||||
# if poll is not present, let the makefile know.
|
||||
POLL_AVAILABLE=@HAS_POLL@
|
||||
TIMERFD_INCLUDE=@TIMERFD_INCLUDE@
|
||||
|
|
Loading…
Reference in New Issue