Add function checks to configure.ac Use the configure HAVE_ macro rather than OS-dependent tests. I suspect that a lot of the tests hve been obsolete for many years. Add wrappers to FreeBSD. :w