Commit b5c71469 authored by Mihai Moldovan's avatar Mihai Moldovan

nxcomp/configure.ac: prettify AC_ARG_ENABLE() calls, use more quotes and AS_IF() where appropriate.

parent 03ebe6f2
...@@ -66,19 +66,19 @@ fi ...@@ -66,19 +66,19 @@ fi
# If in_addr_t is not defined use unsigned int. # If in_addr_t is not defined use unsigned int.
AC_CHECK_TYPES([in_addr_t], [], [], [[#include <netinet/in.h>]]) AC_CHECK_TYPES([in_addr_t], [], [], [[#include <netinet/in.h>]])
AC_ARG_ENABLE(info, AC_ARG_ENABLE([info],
[AS_HELP_STRING([--enable-debug], [enable to get info session log output (disabled by default)])], [AS_HELP_STRING([--enable-debug],
[if test x$enableval = xyes; then [enable to get info session log output (disabled by default)])],
AC_DEFINE(INFO, 1, [Define this to get info session log output.]) [AS_IF([test x$enableval = xyes],
info_messages=yes [AC_DEFINE(INFO, 1, [Define this to get info session log output.])
fi]) info_messages=yes])])
AC_ARG_ENABLE(valgrind, AC_ARG_ENABLE([valgrind],
[AS_HELP_STRING([--enable-valgrind], [enable for extra valgrind hacks (disabled by default)])], [AS_HELP_STRING([--enable-valgrind],
[if test x$enableval = xyes; then [enable for extra valgrind hacks (disabled by default)])],
AC_DEFINE(VALGRIND, 1, [Define this for extra valgrind hacks.]) [AS_IF([test x$enableval = xyes],
valgrind_hacks=yes [AC_DEFINE(VALGRIND, 1, [Define this for extra valgrind hacks.])
fi]) valgrind_hacks=yes])])
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment