Showing
1 changed file
with
8 additions
and
2 deletions
| @@ -11,25 +11,31 @@ AC_CONFIG_HEADERS([config.h]) | @@ -11,25 +11,31 @@ AC_CONFIG_HEADERS([config.h]) | ||
| 11 | AC_CONFIG_MACRO_DIR([m4]) | 11 | AC_CONFIG_MACRO_DIR([m4]) |
| 12 | 12 | ||
| 13 | # Checks for programs. | 13 | # Checks for programs. |
| 14 | +AC_PROG_CXX | ||
| 14 | AC_PROG_CC | 15 | AC_PROG_CC |
| 15 | AC_PROG_CC_C99 | 16 | AC_PROG_CC_C99 |
| 16 | AC_PROG_LIBTOOL | 17 | AC_PROG_LIBTOOL |
| 17 | AM_PROG_CC_C_O | 18 | AM_PROG_CC_C_O |
| 19 | +AC_PROG_RANLIB | ||
| 18 | 20 | ||
| 19 | # Checks for libraries. | 21 | # Checks for libraries. |
| 20 | AC_CHECK_LIB([json], [json_object_new_object], [], | 22 | AC_CHECK_LIB([json], [json_object_new_object], [], |
| 21 | [AC_MSG_ERROR([json-c library not found], [1])]) | 23 | [AC_MSG_ERROR([json-c library not found], [1])]) |
| 22 | 24 | ||
| 23 | # Checks for header files. | 25 | # Checks for header files. |
| 24 | -AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h sys/types.h json/json.h]) | 26 | +AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h |
| 27 | + sys/types.h json/json.h]) | ||
| 25 | 28 | ||
| 26 | # Checks for typedefs, structures, and compiler characteristics. | 29 | # Checks for typedefs, structures, and compiler characteristics. |
| 27 | AC_HEADER_STDBOOL | 30 | AC_HEADER_STDBOOL |
| 28 | AC_C_INLINE | 31 | AC_C_INLINE |
| 32 | +AC_TYPE_PID_T | ||
| 29 | AC_TYPE_SIZE_T | 33 | AC_TYPE_SIZE_T |
| 30 | 34 | ||
| 31 | # Checks for library functions. | 35 | # Checks for library functions. |
| 32 | -#AC_CHECK_FUNCS([memchr]) | 36 | +AC_FUNC_FORK |
| 37 | +AC_FUNC_MALLOC | ||
| 38 | +AC_CHECK_FUNCS([memset]) | ||
| 33 | 39 | ||
| 34 | AC_CONFIG_FILES([Makefile tests/Makefile]) | 40 | AC_CONFIG_FILES([Makefile tests/Makefile]) |
| 35 | AC_OUTPUT | 41 | AC_OUTPUT |
Please
register
or
login
to post a comment