In configure for openssh 4.3p2 is this:

as_executable_p="test -f"

as_executable_p, as the name suggests, is used to test whether a file is
executable or not, so should use -x and not -f. Discovered after doing
chmod a-x gcc so configure would not discover it, but found it anyway.
Roger Cornelius
openssh-unix-dev mailing list