2009-05-07 16:38:06 +04:00
|
|
|
AC_DEFUN([AC_REQUIRE_SOCKET],
|
|
|
|
[
|
|
|
|
AC_SEARCH_LIBS(socket, [xnet bsd socket inet], [have_socket=yes])
|
2009-08-03 23:23:12 +04:00
|
|
|
if test x"$have_socket" = x"yes"; then
|
|
|
|
AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet nsl])
|
2009-05-07 16:38:06 +04:00
|
|
|
AC_CHECK_MEMBERS([struct linger.l_linger], , , [
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
])
|
|
|
|
else
|
Fix various typos in the source code (closes MidnightCommander/mc#177).
Found via `codespell -S
po,doc,./misc/syntax,./src/vfs/extfs/helpers/README.it -L
parm,rouge,sav,ect,vie,te,dum,clen,wee,dynamc,childs,ths,fo,nin,unx,nd,iif,iterm,ser,makrs,wil`
Co-authored-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Kian-Meng Ang <kianmeng@cpan.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2023-01-10 06:02:52 +03:00
|
|
|
AC_MSG_ERROR([Couldn't find socket functions])
|
2009-05-07 16:38:06 +04:00
|
|
|
fi
|
|
|
|
])
|