From: Jilles Tjoelker Date: Sun, 19 Oct 2008 15:27:35 +0000 (+0200) Subject: Check that --with-nicklen was passed a numeric value. X-Git-Url: https://jfr.im/git/solanum.git/commitdiff_plain/f173c7d864d3b0f2ebf27a8b437a789b516ccc6a?hp=7b054ca30aea9382c2431558ad9a3270553b576d Check that --with-nicklen was passed a numeric value. ircd-ratbox r26144 (androsyn) --- diff --git a/configure.ac b/configure.ac index 910dc99c..41f48e79 100644 --- a/configure.ac +++ b/configure.ac @@ -864,6 +864,9 @@ fi AC_ARG_WITH(nicklen, AC_HELP_STRING([--with-nicklen=LENGTH],[Set the nick length to LENGTH (default 15, max 50)]), [ + if ! expr "$withval" + 0 >/dev/null 2>&1; then + AC_ERROR([NICKLEN must be a numeric value]) + fi if test $withval -ge 50; then NICKLEN=50 AC_MSG_WARN([NICKLEN has a hard limit of 50. Setting NICKLEN=50])