commit - f2b35c3aab047e212e597e3780cc8d46397ef8b7
commit + f73e403ae59fc4a8d5d6e55523ff878ab3e5ef72
blob - a6f702e52e8d3f3381f427149b1fc699b44d57b3
blob + 6cd92d8e03e8348cbda35683990bb9a97c265ffd
--- configure.in
+++ configure.in
# 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.43 2002/04/02 18:17:38 alex Exp $
+# $Id: configure.in,v 1.44 2002/04/24 13:33:56 alex Exp $
#
# -- Initialisierung --
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])
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 \
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)
AC_CHECK_FUNCS(inet_aton)
+AC_CHECK_FUNCS(regcomp,regcomp_ok=1)
+
AC_CHECK_FUNCS(sigaction)
# -- Konfigurationsoptionen --
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
+
+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
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([ \
blob - 78ffd9a00f029d5e84b3feafd4d7cdd84f53fb99
blob + ecc9d332a1a77675b5889497366e68c4c8b3d955
--- src/ngircd/ngircd.c
+++ src/ngircd/ngircd.c
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: ngircd.c,v 1.43 2002/04/04 13:03:55 alex Exp $
+ * $Id: ngircd.c,v 1.44 2002/04/24 13:33:56 alex Exp $
*
* ngircd.c: Hier beginnt alles ;-)
*/
#ifdef USE_SYSLOG
if( txt[0] ) strcat( txt, "+" );
strcat( txt, "SYSLOG" );
+#endif
+#ifdef REGEX
+ if( txt[0] ) strcat( txt, "+" );
+ strcat( txt, "REGEX" );
#endif
#ifdef STRICT_RFC
if( txt[0] ) strcat( txt, "+" );