]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Send "test"
authorKevin Ryde <user42@zip.com.au>
Tue, 27 Nov 2001 18:49:47 +0000 (18:49 +0000)
committerRobert Boehne <rboehne@gnu.org>
Tue, 27 Nov 2001 18:49:47 +0000 (18:49 +0000)
warnings to /dev/null, helps FreeBSD and maybe others.

ChangeLog
libtool.m4

index 131e392ea2627cf73d99c1eb3a93a0237abe2655..bf83f8c8af3786b5eb3ee1ae7acc1097b81a28cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-11-27  Kevin Ryde  <user42@zip.com.au>
+       * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Send "test"
+       warnings to /dev/null, helps FreeBSD and maybe others.
+
 2001-11-15  Albert Chin-A-Young  <china@thewrittenword.com>
 
        * libtool.m4: quote LTCC because autoconf AC_PROG_CC_STDC
index aaea271057fec9f4b3d9d74c8db508748d9665d6..07ebbade8860751f66f54b3f547b38f8fef13cf7 100644 (file)
@@ -594,8 +594,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
     # If test is not a shell built-in, we'll probably end up computing a
     # maximum length that is only half of the actual maximum length, but
     # we can't tell.
-    while test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
-              = "XX$testring" &&
+    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
+              = "XX$testring") >/dev/null 2>&1 &&
            new_result=`expr "X$testring" : ".*" 2>&1` &&
            lt_cv_sys_max_cmd_len=$new_result &&
            test $i != 17 # 1/2 MB should be enough