From: yoe Date: Sun, 4 May 2008 15:02:18 +0000 (+0000) Subject: r335: Allow disabling of klcc X-Git-Url: http://git.alex.org.uk r335: Allow disabling of klcc --- diff --git a/configure.ac b/configure.ac index 9cc59e6..2a92009 100644 --- a/configure.ac +++ b/configure.ac @@ -93,7 +93,12 @@ AC_ARG_WITH( sbin_PROGRAMS=knbd-client AC_MSG_RESULT($KLCC) else - AC_MSG_ERROR("specified klcc is not executable or does not exist.") + if test "$withval" = "no"; then + KLCC="" + AC_MSG_RESULT(Disabled) + else + AC_MSG_ERROR([specified klcc ($withval) is not executable or does not exist.]) + fi fi else if test -x /usr/bin/klcc; then @@ -101,7 +106,7 @@ AC_ARG_WITH( sbin_PROGRAMS=knbd-client AC_MSG_RESULT($KLCC) else - AC_MSG_ERROR("klcc not found! Please specify it as a parameter to the --with-klcc option"); + AC_MSG_ERROR([klcc not found! Please specify it as a parameter to the --with-klcc option]); fi fi ],