configure: add check for compiler inline keyword support
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 2 Feb 2015 21:33:56 +0000 (16:33 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 12 Feb 2015 00:42:58 +0000 (19:42 -0500)
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 <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac

index 5290addf2dcdeac08b567341b52606df290ba4e4..8871889f09a867fd9b8ccc4238ae18d574afd016 100644 (file)
@@ -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
This page took 0.04577 seconds and 4 git commands to generate.