mirror of
https://github.com/moparisthebest/spdylay
synced 2024-12-22 07:38:52 -05:00
Add -lncrses to CUNIT_LIBS for Mac OS X build.
We chooses the way to just add -lncurses to CUNIT_LIBS only for Mac OS X. This is because currently only Mac's cunit requires ncurses and adding a flag is simpler than erabolate checking.
This commit is contained in:
parent
c5f5ee5832
commit
23886a788a
15
configure.ac
15
configure.ac
@ -66,14 +66,15 @@ if test "x${have_cunit}" = "xno"; then
|
||||
fi
|
||||
fi
|
||||
if test "x${have_cunit}" = "xyes"; then
|
||||
# Check whether the installed cunit requires ncurses. This is
|
||||
# needed because cunit in Mac OS X requires it.
|
||||
LIBS_TEMP=${LIBS}
|
||||
LIBS=${CUNIT_LIBS}
|
||||
AC_SEARCH_LIBS([CU_initialize_registry], [ncurses])
|
||||
CUNIT_LIBS=${LIBS}
|
||||
# cunit in Mac OS X requires ncurses. Note that in Mac OS X, test
|
||||
# program can be built without -lncurses, but it emits runtime
|
||||
# error.
|
||||
case "${build}" in
|
||||
*-apple-darwin*)
|
||||
CUNIT_LIBS="$CUNIT_LIBS -lncurses"
|
||||
AC_SUBST([CUNIT_LIBS])
|
||||
LIBS=${LIBS_TEMP}
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([HAVE_CUNIT], [ test "x${have_cunit}" = "xyes" ])
|
||||
|
Loading…
Reference in New Issue
Block a user