1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Simplify options tests.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4661 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2007-12-06 10:16:02 +00:00 committed by exg
parent e56008ff29
commit 5f37c7d59e

View File

@ -30,66 +30,46 @@ AC_SYS_LARGEFILE
AC_ARG_WITH(socks, AC_ARG_WITH(socks,
[ --with-socks Build with socks support], [ --with-socks Build with socks support],
if test x$withval = xyes; then if test x$withval = xno; then
want_socks=yes want_socks=no
else else
if test "x$withval" = xno; then want_socks=yes
want_socks=no
else
want_socks=yes
fi
fi, fi,
want_socks=no) want_socks=no)
AC_ARG_WITH(textui, AC_ARG_WITH(textui,
[ --with-textui Build text frontend], [ --with-textui Build text frontend],
if test x$withval = xyes; then if test x$withval = xno; then
want_textui=yes want_textui=no
else else
if test "x$withval" = xno; then want_textui=yes
want_textui=no
else
want_textui=yes
fi
fi, fi,
want_textui=yes) want_textui=yes)
AC_ARG_WITH(bot, AC_ARG_WITH(bot,
[ --with-bot Build irssi-bot], [ --with-bot Build irssi-bot],
if test x$withval = xyes; then if test x$withval = xno; then
want_irssibot=yes want_irssibot=no
else else
if test "x$withval" = xno; then want_irssibot=yes
want_irssibot=no
else
want_irssibot=yes
fi
fi, fi,
want_irssibot=no) want_irssibot=no)
AC_ARG_WITH(proxy, AC_ARG_WITH(proxy,
[ --with-proxy Build irssi-proxy], [ --with-proxy Build irssi-proxy],
if test x$withval = xyes; then if test x$withval = xno; then
want_irssiproxy=yes want_irssiproxy=no
else else
if test "x$withval" = xno; then want_irssiproxy=yes
want_irssiproxy=no
else
want_irssiproxy=yes
fi
fi, fi,
want_irssiproxy=no) want_irssiproxy=no)
AC_ARG_WITH(terminfo, AC_ARG_WITH(terminfo,
[ --with-terminfo Use terminfo directly instead of curses], [ --with-terminfo Use terminfo directly instead of curses],
if test x$withval = xyes; then if test x$withval = xno; then
want_terminfo=yes want_terminfo=no
else else
if test "x$withval" = xno; then want_terminfo=yes
want_terminfo=no
else
want_terminfo=yes
fi
fi, fi,
want_terminfo=yes) want_terminfo=yes)
@ -110,28 +90,20 @@ fi
AC_ARG_WITH(gc, AC_ARG_WITH(gc,
[ --with-gc Use garbage collector], [ --with-gc Use garbage collector],
if test x$withval = xyes; then if test x$withval = xno; then
want_gc=yes want_gc=no
else else
if test "x$withval" = xno; then want_gc=yes
want_gc=no
else
want_gc=yes
fi
fi, fi,
want_gc=no) want_gc=no)
AC_ARG_WITH(perl-staticlib, AC_ARG_WITH(perl-staticlib,
[ --with-perl-staticlib Specify that we want to link perl libraries [ --with-perl-staticlib Specify that we want to link perl libraries
statically in irssi, default is no], statically in irssi, default is no],
if test x$withval = xyes; then if test x$withval = xno; then
want_staticperllib=yes want_staticperllib=no
else else
if test "x$withval" = xno; then want_staticperllib=yes
want_staticperllib=no
else
want_staticperllib=yes
fi
fi, fi,
want_staticperllib=no) want_staticperllib=no)
@ -182,14 +154,10 @@ AC_ARG_WITH(perl,
AC_ARG_ENABLE(ipv6, AC_ARG_ENABLE(ipv6,
[ --enable-ipv6 Enable IPv6 support], [ --enable-ipv6 Enable IPv6 support],
if test x$enableval = xyes; then if test x$enableval = xno; then
want_ipv6=yes want_ipv6=no
else else
if test "x$enableval" = xno; then want_ipv6=yes
want_ipv6=no
else
want_ipv6=yes
fi
fi, fi,
want_ipv6=yes) want_ipv6=yes)