Alon Bar-Lev has uploaded a new change for review.
Change subject: build: cleanup: reformat use of AC_ARG_ENABLE
......................................................................
build: cleanup: reformat use of AC_ARG_ENABLE
1. Use AS_HELP_STRING to format help.
2. Use autoconf variable for statement.
Change-Id: Iaf32239a946e299711a2f0de660f3ac8ec1fed59
Signed-off-by: Alon Bar-Lev <alonbl(a)redhat.com>
---
M configure.ac
1 file changed, 7 insertions(+), 9 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/28/18928/1
diff --git a/configure.ac b/configure.ac
index 4d8f4da..3c789b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,15 +44,13 @@
AC_PROG_LN_S
AM_PATH_PYTHON([2.6])
-# Checking if hooks enables
-AC_ARG_ENABLE([hooks],
-[ --enable-hooks build hooks RPMs],
-[case "${enableval}" in
- yes) hooks=true ;;
- no) hooks=false ;;
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-hooks]) ;;
-esac],[hooks=false])
-AM_CONDITIONAL([HOOKS], [test x$hooks = xtrue])
+AC_ARG_ENABLE(
+ [hooks],
+ [AS_HELP_STRING([--enable-hooks], [build hooks packages @<:@default=no@:>@])],
+ ,
+ [enable_hooks="no"]
+)
+AM_CONDITIONAL([HOOKS], [test "${enable_hooks}" = "yes"])
# Users and groups
AC_SUBST([VDSMUSER], [vdsm])
--
To view, visit
http://gerrit.ovirt.org/18928
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf32239a946e299711a2f0de660f3ac8ec1fed59
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alonbl(a)redhat.com>