This patch adds a new macro, STRESSAPPTEST_CPU_AARCH64, for aarch64 CPUs.
The file stressapptest_config.h.in is also refreshed using autoheader.
Signed-off-by: Wei Huang <wei@redhat.com>
$as_echo "#define STRESSAPPTEST_CPU_ARMV7A /**/" >>confdefs.h
+ ;; #(
+ *aarch64*) :
+
+
+$as_echo "#define STRESSAPPTEST_CPU_AARCH64 /**/" >>confdefs.h
+
;; #(
*) :
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, or armv7a" >&5
-$as_echo "$as_me: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, or armv7a" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&5
+$as_echo "$as_me: WARNING: Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64" >&2;}
;;
esac
AC_DEFINE([STRESSAPPTEST_CPU_ARMV7A],[],
[Defined if the target CPU is armv7a])
],
- [AC_MSG_WARN([Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, or armv7a])]
+ [*aarch64*], [
+ AC_DEFINE([STRESSAPPTEST_CPU_AARCH64],[],
+ [Defined if the target CPU is aarch64])
+ ],
+[AC_MSG_WARN([Unsupported CPU: $host_cpu! Try x86_64, i686, powerpc, armv7a, or aarch64])]
)
## The following allows like systems to share settings. This is not meant to
/* Define to 1 if strerror_r returns char *. */
#undef STRERROR_R_CHAR_P
+/* Defined if the target CPU is aarch64 */
+#undef STRESSAPPTEST_CPU_AARCH64
+
/* Defined if the target CPU is armv7a */
#undef STRESSAPPTEST_CPU_ARMV7A