Commit 7a43fc4e authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Disable tools that require curses if no curses library was found.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2456 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 5a5ee8b9
# $Id$
SUBDIRS = varnishadm varnishd varnishhist varnishlog varnishncsa \
varnishreplay varnishstat varnishtop
SUBDIRS = varnishadm varnishd varnishlog varnishncsa varnishreplay
if HAVE_CURSES
SUBDIRS += varnishhist varnishstat varnishtop
endif
......@@ -38,15 +38,15 @@ AC_SUBST(DL_LIBS)
save_LIBS="${LIBS}"
LIBS=""
AC_SEARCH_LIBS(initscr, [curses ncurses])
AC_SEARCH_LIBS(initscr, [curses ncurses],
[have_curses=yes], [have_curses=no])
CURSES_LIBS="${LIBS}"
LIBS="${save_LIBS}"
AC_SUBST(CURSES_LIBS)
# people tend to forget about curses until the build breaks
if test "$ac_cv_search_initscr" = no; then
AC_MSG_ERROR([curses or ncurses is required])
if test "$have_curses" = no; then
AC_MSG_WARN([curses not found; some tools will not be built])
fi
AM_CONDITIONAL([HAVE_CURSES], [test x$have_curses = xyes])
save_LIBS="${LIBS}"
LIBS=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment