From 8b250942310867113aa8742fb831a355acdd5f3c Mon Sep 17 00:00:00 2001 From: Francesco Lannutti Date: Sat, 17 Nov 2012 09:50:06 +0100 Subject: [PATCH] introduce AS_IF to replace `if test' #1 --- configure.ac | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index f480b46ad..bea1fb388 100644 --- a/configure.ac +++ b/configure.ac @@ -179,11 +179,8 @@ AC_ARG_WITH([tcl], [AS_HELP_STRING([--with-tcl=tcldir], [Compiles the tcl module instead, experimental, see README.tcl])]) # readline and editline cannot both be enabled -if test "x$with_editline" = xyes; then - if test "x$with_readline" = xyes; then - AC_MSG_ERROR([Readline and editline cannot both be enabled]) - fi -fi +AS_IF([test "x$with_editline" = xyes], + [AS_IF([test "x$with_readline" = xyes], [AC_MSG_ERROR([Readline and editline cannot both be enabled])])]) # Enable maintainer commands only if requested