From: VMware, Inc <> Date: Wed, 24 Feb 2010 21:03:30 +0000 (-0800) Subject: OVT: have configure check for presence of linux/unistd.h X-Git-Tag: 2010.02.23-236320~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76f22e4c2cda8bcb2e11c6153c4091eaa577fc1a;p=thirdparty%2Fopen-vm-tools.git OVT: have configure check for presence of linux/unistd.h Not everyone installs kernel-headers/linux-userspace-headers package and without it compilation fails with a puzzling error. We better check that the required header is present upfront. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac index 71c4bf928..7be4fc5fb 100644 --- a/open-vm-tools/configure.ac +++ b/open-vm-tools/configure.ac @@ -812,6 +812,14 @@ AC_CHECK_HEADER( [HAVE_WCHAR_H="yes"], [HAVE_WCHAR_H="no"]) +if test "$os" = "linux"; then + # Make sure kernel-headers package is installed. + AC_CHECK_HEADER( + [linux/unistd.h], + [], + [AC_MSG_ERROR(linux/unistd.h is not found. Please install kernel-headers/linux-userspace-headers/linux-libc-dev package.)]) +fi + if test "$enable_multimon" != "no"; then AC_CHECK_HEADER( [X11/extensions/panoramiXproto.h],