From: Eric Haszlakiewicz Date: Sun, 29 Jul 2012 19:57:59 +0000 (-0500) Subject: Check for the sys/cdefs.h header which on some systems defines the __warn_references... X-Git-Tag: json-c-0.11-20130402~57 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=eb37094aa604634fa8e838a2aca78e5c3d1d6d55;p=thirdparty%2Fjson-c.git Check for the sys/cdefs.h header which on some systems defines the __warn_references macro. --- diff --git a/config.h.in b/config.h.in index 2dad0d94..34ad9a84 100644 --- a/config.h.in +++ b/config.h.in @@ -65,6 +65,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYSLOG_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_CDEFS_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H diff --git a/configure.in b/configure.in index 79eafd11..90255c1e 100644 --- a/configure.in +++ b/configure.in @@ -15,7 +15,7 @@ AC_PROG_MAKE_SET AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(json_config.h) AC_HEADER_STDC -AC_CHECK_HEADERS(fcntl.h limits.h strings.h syslog.h unistd.h [sys/param.h] stdarg.h) +AC_CHECK_HEADERS(fcntl.h limits.h strings.h syslog.h unistd.h [sys/cdefs.h] [sys/param.h] stdarg.h) AC_CHECK_HEADER(inttypes.h,[AC_DEFINE([JSON_C_HAVE_INTTYPES_H],[1],[Public define for json_inttypes.h])]) # Checks for typedefs, structures, and compiler characteristics.