Solaris fixes, mostly from Dagobert Michelsen.

This commit is contained in:
Nicholas Marriott
2017-03-09 15:39:13 +00:00
parent 5d3296c53b
commit 514a723f74
8 changed files with 126 additions and 1 deletions

View File

@ -350,6 +350,16 @@ if test "x$found_cmsg_data" = xno; then
fi
AC_SUBST(XOPEN_DEFINES)
# Look for err and friends in err.h.
AC_CHECK_FUNC(err, found_err_h=yes, found_err_h=no)
AC_CHECK_FUNC(errx, , found_err_h=no)
AC_CHECK_FUNC(warn, , found_err_h=no)
AC_CHECK_FUNC(warnx, , found_err_h=no)
if test "x$found_err_h" = xyes; then
AC_CHECK_HEADER(err.h, , found_err_h=no)
fi
AM_CONDITIONAL(NO_ERR_H, [test "x$found_err_h" = xno])
# Look for imsg in libutil. compat/imsg.c is linked by Makefile.am if missing.
AC_SEARCH_LIBS(imsg_init, util, found_imsg_init=yes, found_imsg_init=no)
if test "x$found_imsg_init" = xyes; then