Hi Gerel,
I don't know if the message to be printed will work correctly if only
page layer is selected (for example) to have debug information
+PDFLIB_DEBUG_DESCR="all disabled"
Here "all disabled" would be added
+
+if test "x$debug_base_mode" = "xyes"; then
+ AC_DEFINE([HAVE_DEBUG_BASE], [1], [Debugging Base Layer])
+ PDFLIB_DEBUG_DESCR="base, "
+fi
+if test "x$debug_object_mode" = "xyes"; then
+ AC_DEFINE([HAVE_DEBUG_OBJECT], [1], [Debugging Object Layer])
+ PDFLIB_DEBUG_DESCR="${PDFLIB_DEBUG_DESCR}object, "
+fi
+if test "x$debug_document_mode" = "xyes"; then
+ AC_DEFINE([HAVE_DEBUG_DOCUMENT], [1], [Debugging Document Layer])
+ PDFLIB_DEBUG_DESCR="${PDFLIB_DEBUG_DESCR}document, "
+fi
+if test "x$debug_page_mode" = "xyes"; then
+ AC_DEFINE([HAVE_DEBUG_PAGE], [1], [Debugging Page Layer])
+ PDFLIB_DEBUG_DESCR="${PDFLIB_DEBUG_DESCR}page"
+fi
+# end debug_*_mode
And here "page" will be added, so at the end we would have:
"alldisabledpage"
You could start the message to "", then check the different layer debug
options, and only set the message to "all disabled" if it is still ""
after having checked for the last layer debug option.
-Aleksander