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
|
||||||
fi
|
fi
|
||||||
if test "x${have_cunit}" = "xyes"; then
|
if test "x${have_cunit}" = "xyes"; then
|
||||||
# Check whether the installed cunit requires ncurses. This is
|
# cunit in Mac OS X requires ncurses. Note that in Mac OS X, test
|
||||||
# needed because cunit in Mac OS X requires it.
|
# program can be built without -lncurses, but it emits runtime
|
||||||
LIBS_TEMP=${LIBS}
|
# error.
|
||||||
LIBS=${CUNIT_LIBS}
|
case "${build}" in
|
||||||
AC_SEARCH_LIBS([CU_initialize_registry], [ncurses])
|
*-apple-darwin*)
|
||||||
CUNIT_LIBS=${LIBS}
|
CUNIT_LIBS="$CUNIT_LIBS -lncurses"
|
||||||
AC_SUBST([CUNIT_LIBS])
|
AC_SUBST([CUNIT_LIBS])
|
||||||
LIBS=${LIBS_TEMP}
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL([HAVE_CUNIT], [ test "x${have_cunit}" = "xyes" ])
|
AM_CONDITIONAL([HAVE_CUNIT], [ test "x${have_cunit}" = "xyes" ])
|
||||||
|
|
Loading…
Reference in New Issue