[build] Link against ncurses for readline
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
eaf38a6a69
commit
2cc242e602
|
@ -146,7 +146,7 @@ awesome_client_SOURCES = \
|
||||||
common/socket.c common/socket.h \
|
common/socket.c common/socket.h \
|
||||||
common/version.c common/version.h \
|
common/version.c common/version.h \
|
||||||
common/util.c common/util.h
|
common/util.c common/util.h
|
||||||
awesome_client_LDADD = -lreadline
|
awesome_client_LDADD = $(readline_LIBS)
|
||||||
|
|
||||||
if HAVE_XMLTO
|
if HAVE_XMLTO
|
||||||
if HAVE_ASCIIDOC
|
if HAVE_ASCIIDOC
|
||||||
|
|
|
@ -160,6 +160,7 @@ PKG_CHECK_MODULES([xcb_icccm], [xcb-icccm],,
|
||||||
PKG_CHECK_MODULES([cairo_xcb], [cairo-xcb],,
|
PKG_CHECK_MODULES([cairo_xcb], [cairo-xcb],,
|
||||||
[AC_MSG_ERROR([awesome requires cairo-xcb.])])
|
[AC_MSG_ERROR([awesome requires cairo-xcb.])])
|
||||||
AC_CHECK_LIB(pthread, pthread_create)
|
AC_CHECK_LIB(pthread, pthread_create)
|
||||||
|
AC_CHECK_LIB(readline, readline, [AC_SUBST([readline_LIBS], ["-lreadline -lncurses"])])
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_PATH_X
|
AC_PATH_X
|
||||||
|
|
Loading…
Reference in New Issue