From 2d5dd8d9e12daccaa303601725d742612ec3a8eb Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 14 Dec 2019 12:15:36 +0000 Subject: DTrace build fix on Mac The header generated comes with $ IDs thus breaking the build. The probes are set with const address arguments already which just add the qualifier again. --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2959a86..34a457b 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,16 @@ AM_CONFIG_HEADER([config.h]) AC_PROG_CC +is_darwin=no + +case "${host_os}" in + darwin*) + is_darwin=yes + ;; +esac + +AM_CONDITIONAL([DARWIN], [test "$is_darwin" = "yes"]) + dnl ********************************************************************** dnl DETECT_ICC ([ACTION-IF-YES], [ACTION-IF-NO]) dnl @@ -193,6 +203,10 @@ if test "x$enable_dtrace" = "xyes"; then then dtrace_instrument_obj=yes rm conftest.h + # on Mac probe id are generated with $ + if test "$is_darwin" = "yes"; then + CFLAGS="$CFLAGS -Wno-dollar-in-identifier-extension" + fi fi if test "`which tr`" = "/usr/ucb/tr"; then -- cgit v1.2.1