| 145 |
|
dnl {{{ ax_arg_with_topiclen |
| 146 |
|
AC_DEFUN([AX_ARG_WITH_TOPICLEN],[ |
| 147 |
|
AC_ARG_WITH([topiclen],[AC_HELP_STRING([--with-topiclen=<value>],[Set topic length (default 160).])],[topiclen="$withval"],[topiclen="160"]) |
| 148 |
< |
AC_DEFINE_UNQUOTED([TOPICLEN],[($topiclen+1)],[Length of topics.]) |
| 148 |
> |
AC_DEFINE_UNQUOTED([TOPICLEN],[($topiclen)],[Length of topics.]) |
| 149 |
|
])dnl }}} |
| 150 |
|
dnl {{{ ax_arg_with_nicklen |
| 151 |
|
AC_DEFUN([AX_ARG_WITH_NICKLEN],[ |
| 160 |
|
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.]) |
| 162 |
|
else |
| 163 |
– |
AC_DEFINE([INVARIANTS],[1],[Miscellaneous sanity checks for the IRCd. Makes it slightly slower]) |
| 163 |
|
use_efnet="no" |
| 164 |
|
fi |
| 165 |
|
AM_CONDITIONAL([EFNET],[test "$use_efnet" = "yes"]) |
| 176 |
|
AC_ARG_ENABLE([debugging],[AC_HELP_STRING([--enable-debugging],[Enable debugging.])],[debugging="$enableval"],[debugging="no"]) |
| 177 |
|
if test "$debugging" = "yes" ; then |
| 178 |
|
AC_DEFINE([DEBUG],[1],[Define to 1 to enable debugging.]) |
| 179 |
< |
CFLAGS="$CFLAGS -Wall -Werror -g -O0" |
| 179 |
> |
CFLAGS="-Wall -g -O0" |
| 180 |
|
else |
| 181 |
|
AC_DEFINE([NDEBUG],[1],[Define to 1 to disable debugging.]) |
| 182 |
|
fi |
| 185 |
|
AC_DEFUN([AX_ARG_ENABLE_WARNINGS],[ |
| 186 |
|
AC_ARG_ENABLE([warnings],[AC_HELP_STRING([--enable-warnings],[Enable compiler warnings.])],[warnings="$enableval"],[warnings="no"]) |
| 187 |
|
if test "$warnings" = "yes" ; then |
| 188 |
< |
CFLAGS="-Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused" |
| 188 |
> |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
| 189 |
|
fi |
| 190 |
|
])dnl }}} |
| 191 |
|
dnl {{{ ax_arg_enable_syslog |