Change --enable-debug into --enable-ndebug and define NDEBUG vs. DEBUG.