]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Set the define in the check for GETRUSAGE differently.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Apr 2002 12:42:51 +0000 (12:42 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Apr 2002 12:42:51 +0000 (12:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@5634 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 988d1317274828e0dd6592818222ede2859d7c98..596a898df108316e7f96650d1a554dcf1fa9f12d 100644 (file)
@@ -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.)
     ])
 ]
 )      

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.