if ADD_LIBEDIT
CORE_CFLAGS += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT
CORE_LIBS += libs/libedit/src/.libs/libedit.a
-freeswitch_LDADD += -lcurses
endif
if ADD_ODBC
AC_ARG_ENABLE(core-libedit-support,
[ --enable-core-libedit-support Compile with libedit Support],,[enable_core_libedit_support="no"])
+if test "$enable_core_libedit_support" = "yes" ; then
+ AC_CHECK_LIB(ncurses, tgetent,,
+ [AC_CHECK_LIB(curses, tgetent,,
+ [AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
+fi
+
#AX_LIB_MYSQL([MINIMUM-VERSION])
AX_LIB_MYSQL
AX_CHECK_JAVA