3.6/f/3.7 backports

`--enable-all` : it is useful for releasing ( when create dist tarball )
afinet, afprog, nvtable: bugfixes
travis : `make distcheck` is better than `make check`