Prefer BSD uuid over libuuid
authorKamil Rytarowski <n54@gmx.com>
Sat, 13 Feb 2016 20:25:32 +0000 (21:25 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sun, 14 Feb 2016 16:04:08 +0000 (17:04 +0100)
commitd3ded5931f2955b09b36a567def123cbabd029fe
tree628f0fde196c53e0326ac3442c9e6b347a64c33e
parentc40f5b9929d5e3464c7c17218ed2777242303f2d
Prefer BSD uuid over libuuid

This fixes recent NetBSDbuild breakage:
../libcoreclrpal.a(miscpalapi.cpp.o): In function `CoCreateGuid':
/tmp/pkgsrc-tmp/wip/coreclr-git/work/coreclr/src/pal/src/misc/miscpalapi.cpp:356: undefined reference to `uuid_generate_random'
clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)

No need to link against libuuid.

Add detection of BSD-styl <uuid.h>.
Few Linux distros ship with custom <uuid.h> and they aren't compatibile.

Commit migrated from https://github.com/dotnet/coreclr/commit/d981e1b43617bdd6fc3d34dbde8c53169e52d0ab
src/coreclr/src/pal/src/configure.cmake
src/coreclr/src/pal/src/misc/miscpalapi.cpp