- POSIX Regular Expressions werden nun vorausgesetzt,
- Test auf snprintf und vsnprintf geaendert.
This commit is contained in:
parent
75f1c5ec33
commit
e9a9bdda13
25
configure.in
25
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.46 2002/05/19 01:14:42 alex Exp $
|
||||
# $Id: configure.in,v 1.47 2002/05/19 10:42:15 alex Exp $
|
||||
#
|
||||
|
||||
# -- Initialisierung --
|
||||
|
@ -27,7 +27,6 @@ AH_TEMPLATE([HAVE_socklen_t], [Define if socklen_t exists])
|
|||
AH_TEMPLATE([SNIFFER], [Define if IRC sniffer should be enabled])
|
||||
AH_TEMPLATE([STRICT_RFC], [Define if ngIRCd should behave strict RFC compliant])
|
||||
AH_TEMPLATE([USE_SYSLOG], [Define if syslog should be used for logging])
|
||||
AH_TEMPLATE([REGEX], [Define if POSIX regular expression functions are available])
|
||||
|
||||
AH_TEMPLATE([TARGET_OS], [Target operating system name])
|
||||
AH_TEMPLATE([TARGET_VENDOR], [Target system vendor])
|
||||
|
@ -53,14 +52,12 @@ AC_HEADER_STDC
|
|||
AC_HEADER_TIME
|
||||
|
||||
AC_CHECK_HEADERS([ \
|
||||
ctype.h 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)
|
||||
|
||||
AC_CHECK_HEADERS(regex.h,regex_h_ok=1)
|
||||
|
||||
# -- Datentypen --
|
||||
|
||||
AC_MSG_CHECKING(whether socklen_t exists)
|
||||
|
@ -88,17 +85,11 @@ AC_FUNC_MALLOC
|
|||
|
||||
AC_CHECK_FUNCS([ \
|
||||
bind gethostbyaddr gethostbyname gethostname inet_ntoa memmove \
|
||||
memset select setsockopt socket strcasecmp strchr strerror strftime \
|
||||
strstr 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(regcomp,regcomp_ok=1)
|
||||
|
||||
AC_CHECK_FUNCS(sigaction)
|
||||
|
||||
AC_CHECK_FUNCS(vsnprintf)
|
||||
AC_CHECK_FUNCS(inet_aton sigaction snprintf vsnprintf)
|
||||
|
||||
# -- Konfigurationsoptionen --
|
||||
|
||||
|
@ -161,12 +152,6 @@ if test `uname` = "A/UX"; then
|
|||
CFLAGS="$CFLAGS -D_POSIX_SOURCE"
|
||||
fi
|
||||
|
||||
if test "$regcomp_ok" -eq 1 -a "$regex_h_ok" -eq 1; then
|
||||
# POSIX Regular Expression Library ist verfuegbar
|
||||
AC_MSG_RESULT([detected POSIX regular expression library])
|
||||
AC_DEFINE(REGEX)
|
||||
fi
|
||||
|
||||
# -- Variablen --
|
||||
|
||||
if test "$GCC" = "yes"; then
|
||||
|
|
Loading…
Reference in New Issue