configure: Use AC_TRY_COMMAND instead of custom stuff.

This allows to use proper code from a platform-spacific autoconf version.
[OS/2] Use specific options when WLINK is detected.

This requires a patched autoconf 2.13 where handlingn of options
with spaces is fixed. This version is available as an RPM in the
netlabs-rel repo.