X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=configure.in;h=ed34f871b6f2a0f6e89a1c2eacf871d96a89c69f;hp=5f1afe1d5194a3e8493d837c5f3e18ef70554a39;hb=cd9650c07e69239cdbdfea637e948126a1bdc2b1;hpb=77751e0fbff145d8957f6c1e6ba186fa55dedb5d diff --git a/configure.in b/configure.in index 5f1afe1d..ed34f871 100644 --- a/configure.in +++ b/configure.in @@ -9,7 +9,7 @@ # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. # -# $Id: configure.in,v 1.70 2002/12/25 13:23:11 alex Exp $ +# $Id: configure.in,v 1.75 2002/12/28 21:58:02 alex Exp $ # # -- Initialisierung -- @@ -81,7 +81,7 @@ AC_CHECK_HEADERS([ \ strings.h sys/socket.h sys/time.h unistd.h \ ],,AC_MSG_ERROR([required C header missing!])) -AC_CHECK_HEADERS(arpa/inet.h ctype.h malloc.h stdint.h sys/select.h varargs.h) +AC_CHECK_HEADERS([arpa/inet.h ctype.h malloc.h stdint.h varargs.h]) # -- Datentypen -- @@ -118,11 +118,16 @@ AC_FUNC_STRFTIME AC_CHECK_FUNCS([ \ bind gethostbyaddr gethostbyname gethostname inet_ntoa memmove \ - memset select setsockopt socket strcasecmp strchr strerror \ - strstr waitpid \ + memset setsockopt socket strcasecmp strchr strerror strstr waitpid \ ],,AC_MSG_ERROR([required function missing!])) -AC_CHECK_FUNCS(inet_aton isdigit sigaction snprintf vsnprintf) +AC_CHECK_FUNCS(inet_aton isdigit sigaction snprintf vsnprintf strlcpy strlcat) + +AC_CHECK_FUNCS(poll,[AC_CHECK_HEADER(sys/poll.h)], + [AC_CHECK_FUNCS(select,[AC_CHECK_HEADER(sys/select.h)], + AC_MSG_ERROR([neither poll() nor select() is available!])) + ] +) # -- Konfigurationsoptionen --