Verify that TMPDIR can hold executables before installing

This detects when `/tmp` has been mounted with "noexec" mode and avoids
the cryptic error:

  ./configure: Permission denied

Hopefully the information provided will be enough for the user to know
that they have to change TMPDIR to another location.
Merge branch 'tmp-noexec'

Fixes #604