From: Serhei Makarov Date: Fri, 12 Jun 2026 14:33:11 +0000 (-0400) Subject: configure.ac rev2 for stackprof try-run X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7979c4e7acdd270f1943b99f2faeef8201a0b06;p=thirdparty%2Felfutils.git configure.ac rev2 for stackprof try-run --- diff --git a/configure.ac b/configure.ac index ec452570..da61d5f9 100644 --- a/configure.ac +++ b/configure.ac @@ -930,8 +930,11 @@ AS_IF([test "x$HAVE_CXX20" = "xyes"], [ AC_LANG_POP CXXFLAGS="$old_CXXFLAGS" ]) -AM_CONDITIONAL([ENABLE_STACKPROF],[test "x${ac_cv_header_linux_perf_event_h}x${ac_cv_have_cxx20_format_h}x${HAVE_CXX20}" = "xyesxyesxyes" ]) - +AS_IF([test "x${ac_cv_header_linux_perf_event_h}x${ac_cv_have_cxx20_format_h}x${HAVE_CXX20}" = "xyesxyesxyes" ],[enable_stackprof=yes],[enable_stackprof=no]) +AM_CONDITIONAL(ENABLE_STACKPROF, test "x$enable_stackprof" = "xyes") +if test "x${ac_cv_header_linux_perf_event_h}x$enable_stackprof" = "xyesxno"; then + AC_MSG_WARN([Unable to build eu-stackprof, missing C++20 with format.h]) +fi AC_CHECK_HEADERS([execinfo.h])