+2011-05-30 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ Support assignment of DEBUGLEVEL at configure time.
+
+ * configure.ac (DEBUGLEVEL): Declare as a precious variable, using
+ AC_ARG_VAR; also declare with AC_SUBST, to ensure it is initialised.
+
+ * Makefile.in (DEBUGLEVEL): Let AC_SUBST assign it.
+
2011-05-29 Keith Marshall <keithmarshall@users.sourceforge.net>
Work around bugs in MinGW and GNU getopt_long_only() implementations.
srcdir = @srcdir@
abs_top_srcdir = @abs_top_srcdir@
-DEBUGLEVEL = 0
+DEBUGLEVEL = @DEBUGLEVEL@
VPATH = @top_srcdir@/src:@top_srcdir@/src/pkginfo:@top_srcdir@/tinyxml
#
AC_CHECK_TOOL([STRIP],[strip],[strip])
+# Identify features to be traced to facilitate debugging; make
+# it precious, to avoid introducing accidental inconsistencies.
+#
+ AC_ARG_VAR([DEBUGLEVEL],[tracing flags to facilitate debugging])
+ AC_SUBST([DEBUGLEVEL],[${DEBUGLEVEL-0}])
+
# Establish the product version banner, and create a makefile
#
AC_CONFIG_FILES([version.c Makefile])