Added configure check for readlink.