/usr/share/dune/aclocal/dune_cxa_demangle.m4 is in libdune-common-dev 2.4.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Check if the compiler supports the abi::__cxa_demangle function required to
# make the type names returned by typeid() human-readable
AC_DEFUN([DUNE_CHECK_CXA_DEMANGLE],[
AC_CACHE_CHECK([for abi::__cxa_demangle], dune_cv_cxa_demangle, [
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <typeinfo>
#include <cxxabi.h>
]],
[[
int foobar = 0;
const char *foo = typeid(foobar).name();
int status;
char *demangled = abi::__cxa_demangle( foo, 0, 0, &status );
]]
)],
dune_cv_cxa_demangle="yes",
dune_cv_cxa_demangle="no")
AC_LANG_POP([C++])
])
AS_IF([test "x$dune_cv_cxa_demangle" = "xyes"],
[AC_DEFINE_UNQUOTED(HAVE_CXA_DEMANGLE,
1,
[does the compiler support abi::__cxa_demangle])])
])
|