fix configure for doc and test