configure.ac: added option --enable-debug

Moved switch to turn on debug output from Makefile to configure.