[sheepdog] [PATCH] configure: exit if urcu/uatomic.h is not found

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun May 20 04:59:05 CEST 2012


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---

On my environment (debian squeeze), the package version of liburcu is
too old (0.4.1) and I cannot compile the latest sheepdog because
urcu/uatomic.h is missing.

Is there any way to build Sheepdog with the older version of liburcu?
If no, we'd better check the existence of urcu/uatomic.h.


 configure.ac |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 50b5d9f..a620367 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,7 +86,10 @@ AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdint.h \
 		  stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h \
 		  sys/time.h syslog.h unistd.h sys/types.h getopt.h malloc.h \
-		  sys/sockio.h utmpx.h urcu.h urcu/uatomic.h])
+		  sys/sockio.h utmpx.h])
+
+AC_CHECK_HEADERS([urcu.h urcu/uatomic.h],,
+	AC_MSG_ERROR(liburcu 0.6.0 or later is required))
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
-- 
1.7.2.5




More information about the sheepdog mailing list