X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=configure.in;h=44373ae15a3f2359b1bfd4f0f67b9747a09ea783;hp=b77c4676bec1a973b5dcd2df5b8e03ead9c6a956;hb=3b6c3d6d645614bb7be6fd66b5e2f9c782186069;hpb=ca33cbda05902b0009058d369f88c0a7a43b1bbe diff --git a/configure.in b/configure.in index b77c4676..44373ae1 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.36 2002/03/12 14:37:51 alex Exp $ +# $Id: configure.in,v 1.54 2002/06/26 15:45:22 alex Exp $ # # -- Initialisierung -- @@ -17,7 +17,7 @@ AC_INIT AC_CANONICAL_TARGET AC_CONFIG_SRCDIR(src/config.h.in) -AM_INIT_AUTOMAKE(ngircd,0.3.0-CVS) +AM_INIT_AUTOMAKE(ngircd,CurrentCVS) AM_CONFIG_HEADER(src/config.h) # -- Templates fuer config.h -- @@ -28,10 +28,13 @@ 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([TARGET_OS], [Target operating system name]) +AH_TEMPLATE([TARGET_VENDOR], [Target system vendor]) +AH_TEMPLATE([TARGET_CPU], [Target CPU name]) + # -- C Compiler -- AC_PROG_CC -AC_LANG_C # -- Hilfsprogramme -- @@ -41,19 +44,28 @@ AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB +# -- Compiler Features -- + +AC_LANG_C + +AM_C_PROTOTYPES +AC_C_CONST + # -- Header -- AC_HEADER_STDC AC_HEADER_TIME -AC_CHECK_HEADERS(arpa/inet.h) +AC_HEADER_SYS_WAIT 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 \ + ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \ + strings.h sys/socket.h sys/time.h unistd.h \ ],,AC_MSG_ERROR([required C header missing!])) +AC_CHECK_HEADERS(arpa/inet.h malloc.h stdint.h varargs.h) + # -- Datentypen -- AC_MSG_CHECKING(whether socklen_t exists) @@ -69,23 +81,31 @@ AC_TRY_COMPILE([ AC_MSG_RESULT(no) ]) +AC_TYPE_SIGNAL + +AC_TYPE_SIZE_T + # -- Libraries -- AC_CHECK_LIB(UTIL,memmove) +AC_CHECK_LIB(socket,bind) +AC_CHECK_LIB(nsl,gethostent) # -- Funktionen -- AC_FUNC_MALLOC +AC_FUNC_FORK + +AC_FUNC_STRFTIME + AC_CHECK_FUNCS([ \ bind gethostbyaddr gethostbyname gethostname inet_ntoa memmove \ - memset select setsockopt socket strcasecmp strchr strerror strftime \ - strstr vsnprintf waitpid \ + memset select setsockopt socket strcasecmp strchr strerror \ + 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 -- @@ -136,25 +156,38 @@ if test "$x_debug_on" = "yes"; then AC_MSG_RESULT([enabling additional debug output]) fi -# -- Variablen II -- +# -- Definitionen -- + +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 CFLAGS="-Wall $CFLAGS" fi CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'" -CFLAGS="$CFLAGS -DLOCALSTATEDIR='\"\$(localstatedir)\"'" # -- Ausgabe -- AC_OUTPUT([ \ Makefile \ doc/Makefile \ + doc/en/Makefile \ MacOSX/Makefile \ MacOSX/ngircd.pbproj/Makefile \ src/Makefile \ src/portab/Makefile \ src/ngircd/Makefile \ + man/Makefile \ ]) # -eof-