add --enable-debug for configure
Merge pull request #3833

f5f157b add --enable-debug for configure (daniel)