Solaris: add check for missing err.h

This commit is contained in:
Guy M. Broome 2018-04-16 09:45:08 -04:00 committed by Hisham Muhammad
parent 9710ce6c08
commit f94c54eb5a
1 changed files with 4 additions and 0 deletions

View File

@ -245,6 +245,10 @@ if test "$my_htop_platform" = "solaris"; then
AC_CHECK_LIB([kstat], [kstat_open], [], [missing_libraries="$missing_libraries libkstat"])
AC_CHECK_LIB([proc], [Pgrab_error], [], [missing_libraries="$missing_libraries libproc"])
AC_CHECK_LIB([malloc], [free], [], [missing_libraries="$missing_libraries libmalloc"])
AC_CHECK_HEADERS([err.h],[:],[
missing_headers="$missing_headers err.h"
AC_MSG_ERROR([You appear to be on Solaris 10, or very early Solaris Express, which is currently unsupported.])
])
fi
AC_ARG_ENABLE(linux_affinity, [AS_HELP_STRING([--enable-linux-affinity], [enable Linux sched_setaffinity and sched_getaffinity for affinity support, disables hwloc])], ,enable_linux_affinity="yes")