From 5864628635a4a1aac963aecec485a5d3259c75c5 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 3 Apr 2002 12:42:51 +0000 Subject: [PATCH] Set the define in the check for GETRUSAGE differently. git-svn-id: https://svn.dealii.org/trunk@5634 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 988d131727..596a898df1 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -879,10 +879,11 @@ dnl ------------------------------------------------------------- dnl On SunOS 4.x, the `getrusage' function exists, but is not declared dnl in the respective header file `resource.h', as one would think when dnl reading the man pages. Then we have to declare this function -dnl ourselves... +dnl ourselves in those files that use this function. The question whether +dnl we have to do so is controlled by a preprocessor variable. dnl -dnl If the function is not properly declared, then we augment the -dnl CXXFLAGS[OG] by `-DNO_HAVE_GETRUSAGE' +dnl If the function is not properly declared, then set the preprocessor +dnl variable NO_HAVE_GETRUSAGE dnl dnl Usage: DEAL_II_CHECK_GETRUSAGE dnl @@ -904,8 +905,14 @@ AC_DEFUN(DEAL_II_CHECK_GETRUSAGE, dnl ], [ AC_MSG_RESULT(no) - CXXFLAGSG="$CXXFLAGSG -DNO_HAVE_GETRUSAGE" - CXXFLAGSO="$CXXFLAGSO -DNO_HAVE_GETRUSAGE" + AC_DEFINE(NO_HAVE_GETRUSAGE, 1, + [On SunOS 4.x, the `getrusage' function exists, but + is not declared in the respective header file + `resource.h', as one would think when reading the + man pages. Then we have to declare this function + ourselves in those files that use this function. + The question whether we have to do so is controlled + by the preprocessor variable.) ]) ] ) -- 2.39.5