AC_CHECK_FUNCS([atexit dup2 memchr memmove memset \
regcomp select strchr strdup strerror strstr strtol uname \
fchdir gettimeofday localtime_r munmap strcasecmp strcspn \
- strncasecmp strrchr strspn alarm inet_ntoa mkdir \
- rmdir socket], [],
+ strncasecmp strrchr strspn alarm mkdir rmdir], [],
[AC_MSG_ERROR([function not found, cannot live without it])])
all_errlist_objs="server mp3_afh afh_common vss command net string signal time
server_ldflags="$server_ldflags $socket_lib"
client_ldflags="$client_ldflags $socket_lib"
audioc_ldflags="$audioc_ldflags $socket_lib"
+audiod_ldflags="$audiod_ldflags $socket_lib"
recv_ldflags="$recv_ldflags $socket_lib"
+AC_SEARCH_LIBS([connect],[socket],[],[
+ AC_MSG_ERROR([Fatal: Did not find connect().])
+],[])
########################################################################### libnsl
AC_CHECK_LIB([c], [gethostbyname],
[nsl_lib=],
client_ldflags="$client_ldflags $nsl_lib"
audioc_ldflags="$audioc_ldflags $nsl_lib"
recv_ldflags="$recv_ldflags $nsl_lib"
+AC_SEARCH_LIBS([inet_ntoa],[nsl],[],[
+ AC_MSG_ERROR([Fatal: Did not find inet_ntoa().])
+],[])
########################################################################### ucred
AC_MSG_CHECKING(for struct ucred)
AC_TRY_LINK([