From b5c714690e9c13c85bdd9b2f4b21dd8f86164e4e Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Fri, 29 Sep 2017 17:58:28 +0200 Subject: nxcomp/configure.ac: prettify AC_ARG_ENABLE() calls, use more quotes and AS_IF() where appropriate. --- nxcomp/configure.ac | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/nxcomp/configure.ac b/nxcomp/configure.ac index efe245162..40dced209 100644 --- a/nxcomp/configure.ac +++ b/nxcomp/configure.ac @@ -66,19 +66,19 @@ fi # If in_addr_t is not defined use unsigned int. AC_CHECK_TYPES([in_addr_t], [], [], [[#include ]]) -AC_ARG_ENABLE(info, - [AS_HELP_STRING([--enable-debug], [enable to get info session log output (disabled by default)])], - [if test x$enableval = xyes; then - AC_DEFINE(INFO, 1, [Define this to get info session log output.]) - info_messages=yes - fi]) - -AC_ARG_ENABLE(valgrind, - [AS_HELP_STRING([--enable-valgrind], [enable for extra valgrind hacks (disabled by default)])], - [if test x$enableval = xyes; then - AC_DEFINE(VALGRIND, 1, [Define this for extra valgrind hacks.]) - valgrind_hacks=yes - fi]) +AC_ARG_ENABLE([info], + [AS_HELP_STRING([--enable-debug], + [enable to get info session log output (disabled by default)])], + [AS_IF([test x$enableval = xyes], + [AC_DEFINE(INFO, 1, [Define this to get info session log output.]) + info_messages=yes])]) + +AC_ARG_ENABLE([valgrind], + [AS_HELP_STRING([--enable-valgrind], + [enable for extra valgrind hacks (disabled by default)])], + [AS_IF([test x$enableval = xyes], + [AC_DEFINE(VALGRIND, 1, [Define this for extra valgrind hacks.]) + valgrind_hacks=yes])]) AC_CONFIG_FILES([ Makefile -- cgit v1.2.3