# Check for idiosyncracies in some mingw impls of directory handling.
FP_READDIR_EOF_ERRNO
-case "$target" in
-*-mingw32)
- EXTRA_LIBS="wsock32, msvcrt, kernel32, user32, shell32" ;;
-*)
- EXTRA_LIBS= ;;
+case "$host" in
+*-mingw32) EXTRA_LIBS="wsock32" ;;
+*-solaris2) EXTRA_LIBS="nsl socket" ;;
+*) EXTRA_LIBS= ;;
esac
AC_SUBST([EXTRA_LIBS])