Browse Source

Fix for an error message when cross-compiling:

checking whether getrusage works... guessing no
  ./configure: line 20174: test: too many arguments
master
Bruno Haible 20 years ago
parent
commit
0eff524c4d
  1. 4
      ChangeLog
  2. 2
      autoconf/aclocal.m4

4
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

2
autoconf/aclocal.m4

@ -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

Loading…
Cancel
Save