From 31567de35d261eeb23c9545fb652f28c749fe51a Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sun, 16 Oct 2011 17:41:56 +0100 Subject: [PATCH] Test for getrusage() instead of the existence of resource.h This fixes compilation on Minix, as this system has the sys/resource.h header for getpriority() and getrlimit(), but it does not support getrusage(). Contributed by: Thomas Cort Signed-off-by: Tobias Grosser --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 053685a..bb6e423 100644 --- a/configure.ac +++ b/configure.ac @@ -96,7 +96,7 @@ dnl /************************************************************************** dnl * Option setting * dnl **************************************************************************/ -AC_CHECK_HEADERS([sys/resource.h], +AC_CHECK_FUNCS([getrusage], [AC_DEFINE([CLOOG_RUSAGE], [], [Print time required to generate code])]) AX_SUBMODULE(isl,no|system|build|bundled,bundled) -- 2.11.4.GIT