From 267325e9bf8e0da68376e6b329d4a9bd80e4a0df Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Tue, 28 May 2013 13:31:43 -0400 Subject: [PATCH] Support old compilers Some old compilers do not use C99 as their default C language variant, for example gcc 4.3.x, which is used on some old machines. When such a compiler is used, by default, ULLONG_MAX is not visible. Adding -std=gnu99 is needed to make this definition visible. In autoconf speak, this translates into the need of using AC_PROC_CC_STDC instead of AC_PROG_CC. See http://www.gnu.org/software/autoconf/manual/autoconf-2.65/html_node/C-Compiler.html for more details. Signed-off-by: Thomas Petazzoni Signed-off-by: Mathieu Desnoyers --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 83822d6f..3ddcb7c2 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ AC_CONFIG_HEADERS([config.h]) AC_SYS_LARGEFILE # Checks for programs. -AC_PROG_CC +AC_PROG_CC_STDC AC_PROG_MAKE_SET LT_INIT AC_PROG_YACC -- 2.34.1