ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/acinclude.m4
(Generate patch)

Comparing:
ircd-hybrid-7.2/acinclude.m4 (file contents), Revision 1013 by michael, Sun Oct 18 14:26:49 2009 UTC vs.
ircd-hybrid-7.3/acinclude.m4 (file contents), Revision 1115 by michael, Tue Dec 21 14:42:54 2010 UTC

# Line 3 | Line 3 | dnl vim: set fdm=marker sw=2 ts=2 et si:
3   dnl {{{ ax_check_lib_ipv4
4   AC_DEFUN([AX_CHECK_LIB_IPV4],[
5    AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])])
6 +  AC_SEARCH_LIBS([inet_ntoa], [nsl])
7 +  AC_SEARCH_LIBS([inet_aton], [resolv])
8    AC_CHECK_FUNCS([inet_aton inet_ntop inet_pton])
9    AC_CHECK_TYPES([struct sockaddr_in, struct sockaddr_storage, struct addrinfo],,,[#include <sys/types.h>
10     #include <sys/socket.h>
# Line 41 | Line 43 | AC_DEFUN([AX_ARG_ENABLE_IOLOOP_MECHANISM
43    dnl {{{ check for epoll oechanism support
44    iopoll_mechanism_epoll=2
45    AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_EPOLL],[$iopoll_mechanism_epoll],[epoll mechanism])
46 <  AC_RUN_IFELSE([
46 >  AC_RUN_IFELSE([AC_LANG_PROGRAM([[
47   #include <sys/epoll.h>
48   #include <sys/syscall.h>
49   #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
# Line 70 | Line 72 | AC_DEFUN([AX_ARG_ENABLE_IOLOOP_MECHANISM
72   #endif
73   _syscall1(int, epoll_create, int, size)
74   #endif
75 < main() { return epoll_create(256) == -1 ? 1 : 0; }
76 <  ],[is_epoll_mechanism_available="yes"],[is_epoll_mechanism_available="no"])
75 > ]], [[ return epoll_create(256) == -1 ? 1 : 0 ]])],
76 >  [is_epoll_mechanism_available="yes"],[is_epoll_mechanism_available="no"])
77    dnl }}}
78    dnl {{{ check for devpoll mechanism support
79    iopoll_mechanism_devpoll=3
# Line 88 | Line 90 | main() { return epoll_create(256) == -1
90    dnl {{{ check for rtsigio mechanism support
91    iopoll_mechanism_rtsigio=4
92    AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_RTSIGIO],[$iopoll_mechanism_rtsigio],[rtsigio mechanism])
93 <  AC_RUN_IFELSE([AC_LANG_PROGRAM([
93 >  AC_RUN_IFELSE([AC_LANG_PROGRAM([[
94 > #define _GNU_SOURCE
95   #include <fcntl.h>
96 + static unsigned int have_f_setsig = 0;
97 +  ]], [[
98   #ifdef F_SETSIG
99 < main () { return 0; } /* F_SETSIG defined */
95 < #else
96 < main () { return 1; } /* F_SETSIG not defined */
99 >  have_f_setsig = 1;
100   #endif
101 <  ])],[is_rtsigio_mechanism_available="yes"],[is_rtsigio_mechanism_available="no"])
101 >  return have_f_setsig == 0;
102 >  ]])], [is_rtsigio_mechanism_available="yes"],[is_rtsigio_mechanism_available="no"])
103    dnl }}}
104    dnl {{{ check for poll mechanism support
105    iopoll_mechanism_poll=5
# Line 145 | Line 149 | main () { return 1; } /* F_SETSIG not de
149   dnl {{{ ax_arg_with_topiclen
150   AC_DEFUN([AX_ARG_WITH_TOPICLEN],[
151    AC_ARG_WITH([topiclen],[AC_HELP_STRING([--with-topiclen=<value>],[Set topic length (default 160).])],[topiclen="$withval"],[topiclen="160"])
152 <  AC_DEFINE_UNQUOTED([TOPICLEN],[($topiclen+1)],[Length of topics.])
152 >  AC_DEFINE_UNQUOTED([TOPICLEN],[($topiclen)],[Length of topics.])
153   ])dnl }}}
154   dnl {{{ ax_arg_with_nicklen
155   AC_DEFUN([AX_ARG_WITH_NICKLEN],[
# Line 158 | Line 162 | AC_DEFUN([AX_ARG_ENABLE_EFNET],[
162    if test "$efnet" = "yes" ; then
163                  use_efnet="yes"
164      AC_DEFINE([EFNET],[1],[Define to 1 if this server will be an EFnet server.])
161 –                AC_DEFINE([TS5_ONLY],[1],[If Defined to 1 server links to your network must have a minimum of TS5.])
165          else
166                  use_efnet="no"
167    fi
# Line 176 | Line 179 | AC_DEFUN([AX_ARG_ENABLE_DEBUGGING],[
179    AC_ARG_ENABLE([debugging],[AC_HELP_STRING([--enable-debugging],[Enable debugging.])],[debugging="$enableval"],[debugging="no"])
180    if test "$debugging" = "yes" ; then
181      AC_DEFINE([DEBUG],[1],[Define to 1 to enable debugging.])
182 <    CFLAGS="$CFLAGS -Wall -Werror -g -O0"
182 >    CFLAGS="-Wall -g -O0"
183    else
184      AC_DEFINE([NDEBUG],[1],[Define to 1 to disable debugging.])
185    fi

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)