Default to no unaligned access on unsupported archs
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 30 Jun 2015 15:55:40 +0000 (11:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Jun 2015 17:03:54 +0000 (13:03 -0400)
[ Edit by Mathieu: change configure output style to match current style. ]

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index 03483a7720c0f2e7ea2449c494158c134a79d375..16509b57c37658b5842e8c3611b36dc915ce4813 100644 (file)
@@ -241,7 +241,10 @@ changequote([,])dnl
        aarch64) NO_UNALIGNED_ACCESS=1 ;;
        mips*) NO_UNALIGNED_ACCESS=1 ;;
        tile*) NO_UNALIGNED_ACCESS=1 ;;
-       *) AC_MSG_ERROR([unable to detect alignment requirements (unsupported architecture ($host_cpu)?)]) ;;
+       *)
+               UNSUPPORTED_ARCH=1
+               NO_UNALIGNED_ACCESS=1
+               ;;
 esac
 AC_MSG_RESULT([$host_cpu])
 
@@ -422,6 +425,11 @@ AS_IF([test "x$python_agent" = "xyes"], [AS_ECHO("Enabled")], [AS_ECHO("Disabled
 AS_ECHO_N("sdt.h integration:  ")
 AS_IF([test "x$with_sdt" = "xyes"], [AS_ECHO("Enabled")], [AS_ECHO("Disabled")])
 
+AS_ECHO("Architecture: $host_cpu")
+AS_ECHO_N("Efficient unaligned memory access: ")
+AS_IF([test "x$NO_UNALIGNED_ACCESS" != "x1"], [AS_ECHO("yes")], [AS_IF([test "x$UNSUPPORTED_ARCH" != "x1"], [AS_ECHO("no")], [AS_ECHO("unknown")])])
+AS_IF([test "x$UNSUPPORTED_ARCH" = "x1"], [AC_MSG_WARN([Your architecture ($host_cpu) is unsupported, using safe default of no unaligned access])])
 AS_ECHO()
+
 AS_ECHO("Type 'make' to compile.")
 
This page took 0.025986 seconds and 4 git commands to generate.