X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.in;h=fa2e063b713d44e9bb5e633875d6c091bc186187;hb=e9a9bdda132c1de9e9ccff9b19a305ad75bf0d18;hp=b32e8bb1aa37d27117c62fefe9f3fec2682a92ad;hpb=69b05aca38b52fe4a5165658b210a66fb026d4bf;p=ngircd-alex.git diff --git a/configure.in b/configure.in index b32e8bb1..fa2e063b 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.41 2002/03/31 20:23:06 alex Exp $ +# $Id: configure.in,v 1.47 2002/05/19 10:42:15 alex Exp $ # # -- Initialisierung -- @@ -51,13 +51,13 @@ AC_HEADER_STDC AC_HEADER_TIME -AC_CHECK_HEADERS(arpa/inet.h) - AC_CHECK_HEADERS([ \ - errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \ + ctype.h errno.h fcntl.h netdb.h netinet/in.h regex.h stdlib.h string.h \ sys/socket.h sys/time.h sys/wait.h unistd.h \ ],,AC_MSG_ERROR([required C header missing!])) +AC_CHECK_HEADERS(arpa/inet.h) + # -- Datentypen -- AC_MSG_CHECKING(whether socklen_t exists) @@ -76,6 +76,8 @@ AC_TRY_COMPILE([ # -- Libraries -- AC_CHECK_LIB(UTIL,memmove) +AC_CHECK_LIB(socket,bind) +AC_CHECK_LIB(nsl,gethostent) # -- Funktionen -- @@ -83,13 +85,11 @@ AC_FUNC_MALLOC AC_CHECK_FUNCS([ \ bind gethostbyaddr gethostbyname gethostname inet_ntoa memmove \ - memset select setsockopt socket strcasecmp strchr strerror strftime \ - strstr vsnprintf waitpid \ + memset regcomp select setsockopt socket strcasecmp strchr strerror \ + strftime strstr waitpid \ ],,AC_MSG_ERROR([required function missing!])) -AC_CHECK_FUNCS(inet_aton) - -AC_CHECK_FUNCS(sigaction) +AC_CHECK_FUNCS(inet_aton sigaction snprintf vsnprintf) # -- Konfigurationsoptionen -- @@ -146,6 +146,12 @@ AC_DEFINE_UNQUOTED(TARGET_CPU, "$target_cpu" ) AC_DEFINE_UNQUOTED(TARGET_VENDOR, "$target_vendor" ) AC_DEFINE_UNQUOTED(TARGET_OS, "$target_os" ) +if test `uname` = "A/UX"; then + # unter A/UX sollte _POSIX_SOURCE definiert sein. + AC_MSG_RESULT([detected A/UX, defining _POSIX_SOURCE]) + CFLAGS="$CFLAGS -D_POSIX_SOURCE" +fi + # -- Variablen -- if test "$GCC" = "yes"; then @@ -154,17 +160,12 @@ fi CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'" -if test `uname` = "A/UX"; then - # unter A/UX sollte _POSIX_SOURCE definiert sein. - AC_MSG_RESULT([detected A/UX, defining _POSIX_SOURCE]) - CFLAGS="$CFLAGS -D_POSIX_SOURCE" -fi - # -- Ausgabe -- AC_OUTPUT([ \ Makefile \ doc/Makefile \ + doc/en/Makefile \ MacOSX/Makefile \ MacOSX/ngircd.pbproj/Makefile \ src/Makefile \