]> www.ginac.de Git - cln.git/commitdiff
Fix for an error message when cross-compiling:
authorBruno Haible <bruno@clisp.org>
Mon, 29 Aug 2005 13:08:13 +0000 (13:08 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 29 Aug 2005 13:08:13 +0000 (13:08 +0000)
  checking whether getrusage works... guessing no
  ./configure: line 20174: test: too many arguments

ChangeLog
autoconf/aclocal.m4

index cc1e2de3282dbfe912d6b9fbfe0295172c32bdbc..6ca8c78952c94390343305d75bb82f30cf596399 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-27  Bruno Haible  <bruno@clisp.org>
+
+       * autoconf/aclocal.m4 (CL_RUSAGE): Fix error when cross-compiling.
+
 2005-08-16  Richard B. Kreckel  <kreckel@ginac.de>
 
        The patch of 2005-05-01 made it impossible to test the type of a cl_UP
index 8f922959a07c77ae410f4959943bc68e38a7667a..3d2e0188d299b5af0a2a603b807e8482794f6d93 100644 (file)
@@ -812,7 +812,7 @@ cl_cv_func_getrusage_works=no,
 dnl When cross-compiling, don't assume anything.
 cl_cv_func_getrusage_works="guessing no")])
   fi
-  if test $cl_cv_func_getrusage_works = yes; then
+  if test "$cl_cv_func_getrusage_works" = yes; then
     AC_DEFINE(HAVE_GETRUSAGE,,[have <sys/time.h>, the getrusage() function, the struct rusage type, and <sys/resource.h> defines RUSAGE_SELF])
     AC_DEFINE_UNQUOTED(RUSAGE_WHO_T,$cl_cv_proto_getrusage_arg1,[type of `who' in getrusage() declaration])
   fi