summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-05-22 17:52:43 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-05-31 12:45:25 -0400
commitbc3c09674911b9870a3c224b0c261132d1b13cfa (patch)
tree4bb9440e9a4fa76d8100aab064d446e0f48c95d1 /configure.ac
parent8843aaf4806344a8bda0f2e981a77f61c18f8037 (diff)
config: regroup macros and variables in the backend checking
It saves a few lines. No functional changes. The same cannot be done for AM_CONDITIONAL: "If AM_CONDITIONAL is run conditionally (e.g., in a shell if statement), then the result will confuse automake". Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 2 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 17851bf..d011875 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,27 +51,19 @@ case "${host}" in
*linux*)
AC_MSG_RESULT([eventcomm])
BUILD_EVENTCOMM="yes"
- BUILD_PSMCOMM="no"
+ AC_DEFINE(BUILD_EVENTCOMM, 1, [Optional backend eventcomm enabled])
;;
*freebsd* | *openbsd* | *netbsd* | *dragonfly*)
AC_MSG_RESULT([psmcomm])
- BUILD_EVENTCOMM="no"
BUILD_PSMCOMM="yes"
+ AC_DEFINE(BUILD_PSMCOMM, 1, [Optional backend psmcomm enabled])
;;
*)
AC_MSG_RESULT([none])
- BUILD_EVENTCOMM="no"
- BUILD_PSMCOMM="no"
;;
esac
AM_CONDITIONAL([BUILD_EVENTCOMM], [test "x${BUILD_EVENTCOMM}" = "xyes"])
-if test "x${BUILD_EVENTCOMM}" = "xyes" ; then
- AC_DEFINE(BUILD_EVENTCOMM, 1, [Optional backend eventcomm enabled])
-fi
AM_CONDITIONAL([BUILD_PSMCOMM], [test "x${BUILD_PSMCOMM}" = "xyes"])
-if test "x${BUILD_PSMCOMM}" = "xyes" ; then
- AC_DEFINE(BUILD_PSMCOMM, 1, [Optional backend psmcomm enabled])
-fi
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],
[Enable debugging (default: disabled)]),