-# TODO merge this into LIB_SOCKET_NSL?
-case "$host_os" in
-*mingw32)
- LIBS="-lws2_32 $LIBS" ;;
-esac
-
-# TODO turn this into a macro?
-save_LIBS=$LIBS
-AC_SEARCH_LIBS([setupterm], [termlib termcap curses ncurses])
-# FIXME if not found, complain and switch off highlighting
-termlibs=`echo $LIBS | sed s/\`echo $save_LIBS | sed 's/././g'\`'$//'`
-AC_SUBST(termlibs)
-LIBS=$save_LIBS