configure: fix return value from check_header