From: Jonathan Rajotte Date: Mon, 2 Feb 2015 21:33:56 +0000 (-0500) Subject: configure: add check for compiler inline keyword support X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=7d617f1db05b0646456aaf811395a395b2ed8fc6 configure: add check for compiler inline keyword support Check support of the inline keyword by the compiler. If not supported, inline is replaced by the appropriate keyword or nothing.[1] Based on autoscan diagnostic [1]http://www.gnu.org/software/autoconf/manual/autoconf.html#AC_005fC_005fINLINE Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/configure.ac b/configure.ac index 5290addf2..8871889f0 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,7 @@ AC_CHECK_FUNCS([ \ strncasecmp strndup strpbrk strrchr strstr strtol strtoul \ strtoull \ ]) + # Babeltrace viewer check AC_ARG_WITH([babeltrace-bin], AS_HELP_STRING([--with-babeltrace-bin], @@ -414,7 +415,11 @@ fi AM_CONDITIONAL([BUILD_JAVA_LOG4J_AGENT], [test "x$build_java_log4j_agent" = "xyes"]) AC_SYS_LARGEFILE + +# C compiler tests AC_PROG_CC +AC_C_INLINE + LT_INIT AC_PROG_YACC AC_PROG_LEX