Make the ncurses check a runtime check
This commit is contained in:
parent
fee4a205a6
commit
553410c350
|
@ -70,10 +70,12 @@ if test "x${have_cunit}" = "xyes"; then
|
||||||
# needed because cunit in Mac OS X requires it.
|
# needed because cunit in Mac OS X requires it.
|
||||||
LIBS_TEMP=${LIBS}
|
LIBS_TEMP=${LIBS}
|
||||||
LIBS=${CUNIT_LIBS}
|
LIBS=${CUNIT_LIBS}
|
||||||
AC_SEARCH_LIBS([CU_initialize_registry], [ncurses])
|
CFLAGS_TEMP=${CFLAGS}
|
||||||
CUNIT_LIBS=${LIBS}
|
CFLAGS=${CUNIT_CFLAGS}
|
||||||
AC_SUBST([CUNIT_LIBS])
|
AC_RUN_IFELSE(AC_LANG_PROGRAM([[#include "CUnit/Basic.h"]], [CU_initialize_registry()]), [],
|
||||||
|
[CUNIT_LIBS="${LIBS} -lncurses"])
|
||||||
LIBS=${LIBS_TEMP}
|
LIBS=${LIBS_TEMP}
|
||||||
|
CFLAGS=${CFLAGS_TEMP}
|
||||||
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