Browse Source

fix AC_CHECK_LIB caching problem

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@705 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
joq 22 years ago
parent
commit
5bd2d5c608
1 changed files with 12 additions and 3 deletions
  1. +12
    -3
      configure.in

+ 12
- 3
configure.in View File

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

# on some systems, readline depends on termcap or ncurses, respectively
# On some systems, readline depends on termcap or ncurses. But, the
# MacOSX linker complains bitterly if these libraries are explicitly
# referenced.
#
# AC_CHECK_LIB() foolishly assumes that checking a library for an entry
# point always returns the same result regardless of any dependent
# libraries specified. The `unset ac_cv_lib_readline_readline' erases
# the cached result to work around this problem.
READLINE_DEPS=""
HAVE_READLINE=true
AC_CHECK_LIB(readline, readline, [],
[AC_CHECK_LIB(readline, readline, [READLINE_DEPS="-ltermcap"],
[AC_CHECK_LIB(readline, readline,
[unset ac_cv_lib_readline_readline
AC_CHECK_LIB(readline, readline, [READLINE_DEPS="-ltermcap"],
[unset ac_cv_lib_readline_readline
AC_CHECK_LIB(readline, readline,
[READLINE_DEPS="-lncurses"], [HAVE_READLINE=false], "-lncurses")],
"-ltermcap")])
if test x$HAVE_READLINE = xfalse; then


Loading…
Cancel
Save