]> granicus.if.org Git - graphviz/commitdiff
Remove check for `const` keyword in configure.ac
authorErwin Janssen <erwinjanssen@outlook.com>
Sun, 18 Dec 2016 11:30:14 +0000 (12:30 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 21 Dec 2016 13:54:25 +0000 (14:54 +0100)
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.

configure.ac
windows/include/config.h

index 9e1e87116a7cc5616ce9811b52e80e5b47cccf5b..d11cf53d2d4ae6395e218b1b2b7785fd2256fc1a 100644 (file)
@@ -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
index aeed7fca265e3b4811018a985230c25688b021f2..cb099e05d4a2ef9debdb517f3979dd65c127e8f0 100644 (file)
    `char[]'. */
 /* #undef YYTEXT_POINTER */
 
-/* Define to empty if `const' does not conform to ANSI C. */
-/* #undef const */
-
 /* Define to `int' if <sys/types.h> doesn't define. */
 #define gid_t int