Skip to content
Snippets Groups Projects
Commit d38091a9 authored by Mark Grondona's avatar Mark Grondona
Browse files

o rename "debug" var to "with_slurm_debug" to avoid conflict with autoconf

   internal debug variable
parent a64878d1
No related branches found
No related tags found
No related merge requests found
...@@ -24,20 +24,20 @@ AC_MSG_CHECKING(whether debug compilation of modules is enabled) ...@@ -24,20 +24,20 @@ AC_MSG_CHECKING(whether debug compilation of modules is enabled)
AC_ARG_ENABLE(debug, AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],[Enable debugging of individual modules]), AC_HELP_STRING([--enable-debug],[Enable debugging of individual modules]),
[ case "${enableval}" in [ case "${enableval}" in
yes) debug=true ;; yes) with_slurm_debug=true ;;
no) debug=false ;; no) with_slurm_debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac esac
] ]
) )
AC_MSG_RESULT(${debug=no}) AC_MSG_RESULT(${with_slurm_debug=no})
if test "x$debug" = "xtrue"; then if test "x$with_slurm_debug" = "xtrue"; then
CFLAGS="${CFLAGS--g -O2 -Wall -Wpointer-arith}" CFLAGS="${CFLAGS--g -O2 -Wall -Wpointer-arith}"
AC_DEFINE(DEBUG_SYSTEM, 1, [Define for extra debug messages.]) AC_DEFINE(DEBUG_SYSTEM, 1, [Define for extra debug messages.])
else else
CFLAGS="${CFLAGS--g -O2 -Wall -Wpointer-arith}" CFLAGS="${CFLAGS--g -O2 -Wall -Wpointer-arith}"
fi fi
AM_CONDITIONAL(DEBUG_MODULES, test "x$debug" = "xtrue") AM_CONDITIONAL(DEBUG_MODULES, test "x$with_slurm_debug" = "xtrue")
# #
# check for whether to include Elan support: # check for whether to include Elan support:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment