AC_TYPE_SSIZE_T
AC_C_INLINE
+AX_C___ATTRIBUTE__
AC_FUNC_FORK
AC_CHECK_FUNCS([dup2 memmove setenv strdup])
AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([dlsym() is required])])
+AC_ARG_ENABLE([warnings],
+ [AS_HELP_STRING([--enable-warnings],[enable warning output])],
+ [if test "x$enableval" = xyes; then
+ AC_DEFINE([WARNING], 1, [Define to enable warning output.])
+ fi])
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],[enable debug output])],
[if test "x$enableval" = xyes; then
AC_DEFINE([DEBUG], 1, [Define to enable debug output.])
+ dnl DEBUG implies WARNING
+ AC_DEFINE([WARNING], 1)
fi])
dnl Used in tests/Makefile.am to build the test only if error() is available.
AM_CONDITIONAL([HAVE_ERROR_H],[test "x$ac_cv_header_error_h" = xyes])
+AM_CONDITIONAL([HAVE_VFORK],[test "x$ac_cv_func_vfork_works" = xyes])
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
AC_OUTPUT