[sheepdog] [PATCH 6/6] configure: exit if --enable-trace is specified on non x86_64 architectures

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu Jul 12 02:51:40 CEST 2012


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8167a1d..ace27c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -279,6 +279,9 @@ if test "x${enable_trace}" = xyes; then
 	   test "x${enable_coverage}" = xyes; then
 		AC_MSG_ERROR(tracer cannot be used with debug options)
 	fi
+	if [[[ $host != *x86_64* ]]]; then
+		AC_MSG_ERROR(tracer can be used on x86_64 architectures)
+	fi
 	AC_CHECK_LIB([rt], [clock_gettime],,
 		AC_MSG_ERROR(librt not found))
 	AC_DEFINE_UNQUOTED([HAVE_TRACE], 1, [have trace])
-- 
1.7.2.5




More information about the sheepdog mailing list