Ensure that the "show configuration" command and the "--configuration"
command line switch shows if GDB was built with the AMDGPU support or
not.
This will be used in a later patch in this series.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
*/
#undef HAVE_ALLOCA_H
+/* Define if amd-dbgapi is being linked in. */
+#undef HAVE_AMD_DBGAPI
+
/* Define to 1 if you have the `btowc' function. */
#undef HAVE_BTOWC
fi
if test "$has_amd_dbgapi" = "yes"; then
+
+$as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
+
TARGET_OBS="$TARGET_OBS amd-dbgapi-target.o"
# If --enable-targets=all was provided, use the list of all files depending
[has_amd_dbgapi=yes], [has_amd_dbgapi=no])
if test "$has_amd_dbgapi" = "yes"; then
+ AC_DEFINE(HAVE_AMD_DBGAPI, 1, [Define if amd-dbgapi is being linked in.])
TARGET_OBS="$TARGET_OBS amd-dbgapi-target.o"
# If --enable-targets=all was provided, use the list of all files depending
"));
#endif
+#if HAVE_AMD_DBGAPI
+ gdb_printf (stream, _("\
+ --with-amd-dbgapi\n\
+"));
+#else
+ gdb_printf (stream, _("\
+ --without-amd-dbgapi\n\
+"));
+#endif
+
#if HAVE_SOURCE_HIGHLIGHT
gdb_printf (stream, _("\
--enable-source-highlight\n\