From: Erwin Janssen Date: Sun, 18 Dec 2016 11:30:14 +0000 (+0100) Subject: Remove check for `const` keyword in configure.ac X-Git-Tag: 2.40.1~2^2~1^2^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=741e528276cb2e637c0fcc2e19682a4dffdbddbf;p=graphviz Remove check for `const` keyword in configure.ac The macro `AC_C_CONST` checks whether the used C compiler supports the keyword `const` and defines it accordingly. But as stated in the autoconf documentation, this macro is becomming obsolete as current C compilers `cost`. Checking is therefore no longer required. --- diff --git a/configure.ac b/configure.ac index 9e1e87116..d11cf53d2 100644 --- a/configure.ac +++ b/configure.ac @@ -413,8 +413,7 @@ AM_CONDITIONAL(RC_IS_WINDRES, [test "x$RC" = "xwindres"]) dnl ----------------------------------- dnl Check for various typedefs and provide substitutes if they do not exist. - -AC_C_CONST + AC_TYPE_MODE_T AC_TYPE_PID_T AC_TYPE_SIZE_T diff --git a/windows/include/config.h b/windows/include/config.h index aeed7fca2..cb099e05d 100644 --- a/windows/include/config.h +++ b/windows/include/config.h @@ -418,9 +418,6 @@ `char[]'. */ /* #undef YYTEXT_POINTER */ -/* Define to empty if `const' does not conform to ANSI C. */ -/* #undef const */ - /* Define to `int' if doesn't define. */ #define gid_t int