]> granicus.if.org Git - onig/commitdiff
Remove obsolescent AC_HEADER_STDC
authorPeter Kokot <peterkokot@gmail.com>
Fri, 7 Sep 2018 18:30:02 +0000 (20:30 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Fri, 7 Sep 2018 18:30:02 +0000 (20:30 +0200)
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_HEADER_STDC`.

This macro checks if given system has C89 compliant header files such
as <string.h>, <stdlib.h>, <stdarg.h>, <float.h>,... and defines the
`STDC_HEADERS` symbol [2]. Case is that current systems should be well
supported with at least C89 standard headers [3].

Given headers are still additionally checked with the `AC_PROG_CC`
macro, yet not needed anyway.

For cmake build system this applies similarly and the manual custom
check of the standard headers can be removed likewise.

Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
[3] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2

CMakeLists.txt
configure.ac
src/config.h.cmake.in
src/config.h.win32
src/config.h.win64
src/config.h.windows.in

index 323504f25bb2547b958b7be9eecb39b083e7a8ff..733522d30f443231de78399c7c5cb429585b2a25 100644 (file)
@@ -45,7 +45,6 @@ check_include_files(inttypes.h  HAVE_INTTYPES_H)
 check_type_size(int SIZEOF_INT)
 check_type_size(long SIZEOF_LONG)
 check_type_size(short SIZEOF_SHORT)
-check_include_files("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS)
 
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
 
index f9c284027c2c71f344a97a883671ab9abcc35115..31f257f94ffe1cf6f56240d5d46d005f68d226e8 100644 (file)
@@ -49,7 +49,6 @@ AC_PROG_MAKE_SET
 dnl Checks for libraries.
 
 dnl Checks for header files.
-AC_HEADER_STDC
 AC_CHECK_HEADERS(strings.h sys/time.h unistd.h sys/times.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
index 8c4ba109597fc5e99a4f932d2f6b4317df64b67a..24d84cb2c5afd58290413f58d1a1c36cb03362c0 100644 (file)
@@ -55,9 +55,6 @@
 /* The size of `short', as computed by sizeof. */
 #cmakedefine SIZEOF_SHORT  ${SIZEOF_SHORT}
 
-/* Define to 1 if you have the ANSI C header files. */
-#cmakedefine STDC_HEADERS  ${STDC_HEADERS}
-
 /* Define if enable CR+NL as line terminator */
 #cmakedefine USE_CRNL_AS_LINE_TERMINATOR  ${USE_CRNL_AS_LINE_TERMINATOR}
 
index 36fe268d964f1d8afa6ddc3e6b4bed3956e2f355..2a33a5eae73acc199da7d2c3a3bdf20d686e81f0 100644 (file)
@@ -1,4 +1,3 @@
-#define STDC_HEADERS 1\r
 #define HAVE_SYS_TYPES_H 1\r
 #define HAVE_SYS_STAT_H 1\r
 #define HAVE_MEMORY_H 1\r
@@ -23,7 +22,6 @@
 #endif\r
 #endif\r
 #define HAVE_DECL_SYS_NERR 1\r
-#define STDC_HEADERS 1\r
 #define HAVE_FCNTL_H 1\r
 #define HAVE_SYS_UTIME_H 1\r
 #define HAVE_MEMORY_H 1\r
index bc2ba3e984c2dfa2a4d0bc8d94bdc88061390612..66c44f5f07c23c906c541421655fa441204973db 100644 (file)
@@ -1,4 +1,3 @@
-#define STDC_HEADERS 1\r
 #define HAVE_SYS_TYPES_H 1\r
 #define HAVE_SYS_STAT_H 1\r
 #define HAVE_MEMORY_H 1\r
@@ -23,7 +22,6 @@
 #endif\r
 #endif\r
 #define HAVE_DECL_SYS_NERR 1\r
-#define STDC_HEADERS 1\r
 #define HAVE_FCNTL_H 1\r
 #define HAVE_SYS_UTIME_H 1\r
 #define HAVE_MEMORY_H 1\r
index 160bd86f4bcdb190eeb8e2d1f8c22d7f8c1d29bf..5057f5ef0b2f0f76d40a7c2b86ef5cfa7f8063d6 100644 (file)
@@ -1,4 +1,3 @@
-#define STDC_HEADERS 1\r
 #define HAVE_SYS_TYPES_H 1\r
 #define HAVE_SYS_STAT_H 1\r
 #define HAVE_MEMORY_H 1\r
@@ -27,7 +26,6 @@
 #endif\r
 #endif\r
 #define HAVE_DECL_SYS_NERR 1\r
-#define STDC_HEADERS 1\r
 #define HAVE_FCNTL_H 1\r
 #define HAVE_SYS_UTIME_H 1\r
 #define HAVE_MEMORY_H 1\r