> > can't you just do a link test that checks that AF_UNIX is defined?
>
> That doesn't say anything about whether the Unix sockets
> really work, as
> systems where they don't work define this occasionally.
My idea was to create a test that will try to compile, link and run a small
program. The program should contain "int s = socket(AF_UNIX, ...) and a test
for succesful creation of 's'. Only when this program will compile and run
OK then it should be defined HAVE_AF_UNIX_SOCKET.
Dan