mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 12:31:45 +08:00
Fix examples FTBFS for --enable-termcap builds
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
cbb5dd037e
commit
8439f426fc
@ -83,6 +83,7 @@ AC_ARG_ENABLE(termcap,
|
|||||||
[AS_HELP_STRING([--enable-termcap], [Use termcap library to query terminal size.])],
|
[AS_HELP_STRING([--enable-termcap], [Use termcap library to query terminal size.])],
|
||||||
AC_DEFINE([CONFIG_USE_TERMCAP], 1, [Define to use the termcap library for terminal size.]))
|
AC_DEFINE([CONFIG_USE_TERMCAP], 1, [Define to use the termcap library for terminal size.]))
|
||||||
|
|
||||||
|
AM_CONDITIONAL([USE_LIBTERMCAP], [test "$enable_termcap" != no])
|
||||||
AM_CFLAGS="-std=gnu99 $inline_cflags -W -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow -Wcast-qual"
|
AM_CFLAGS="-std=gnu99 $inline_cflags -W -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow -Wcast-qual"
|
||||||
AC_SUBST(AM_CFLAGS)
|
AC_SUBST(AM_CFLAGS)
|
||||||
|
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
noinst_PROGRAMS = testit cli
|
noinst_PROGRAMS = testit cli
|
||||||
LDADD = $(top_builddir)/src/libeditline.la $(TERMLIBS)
|
LDADD = $(top_builddir)/src/libeditline.la
|
||||||
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
|
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
|
||||||
AM_LDFLAGS = -static
|
AM_LDFLAGS = -static
|
||||||
|
|
||||||
|
if USE_LIBTERMCAP
|
||||||
|
LDADD += -ltermcap
|
||||||
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user