Browse Source

check readline() library dependencies

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@412 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
joq 22 years ago
parent
commit
ddac531cdf
2 changed files with 9 additions and 2 deletions
  1. +8
    -1
      configure.in
  2. +1
    -1
      example-clients/Makefile.am

+ 8
- 1
configure.in View File

@@ -247,10 +247,17 @@ if test x$HAVE_SNDFILE = xfalse; then
AC_MSG_WARN([*** the jackrec example client will not be built])
fi

AC_CHECK_LIB(readline, readline, [HAVE_READLINE=true], [HAVE_READLINE=false])
# on some systems, readline depends on termcap or ncurses, respectively
READLINE_DEPS=""
AC_CHECK_LIB(termcap, tgetent, [READLINE_DEPS="$READLINE_DEPS -ltermcap"])
AC_CHECK_LIB(ncurses, tgetent, [READLINE_DEPS="$READLINE_DEPS -lncurses"])
AC_CHECK_LIB(readline, readline,
[HAVE_READLINE=true], [HAVE_READLINE=false], [$READLINE_DEPS]
)
if test x$HAVE_READLINE = xfalse; then
AC_MSG_WARN([*** the jack_transport example client will not be built])
fi
AC_SUBST(READLINE_DEPS)

# you need doxygen to make dist.
AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false)


+ 1
- 1
example-clients/Makefile.am View File

@@ -82,7 +82,7 @@ endif

if HAVE_READLINE
jack_transport_SOURCES = transport.c
jack_transport_LDFLAGS = -lhistory -lreadline -lrt -ldl -lpthread
jack_transport_LDFLAGS = -lhistory -lreadline @READLINE_DEPS@ -lrt -ldl -lpthread
jack_transport_LDADD = ../libjack/libjack.la
endif



Loading…
Cancel
Save