From: Kevin Ryde Date: Tue, 27 Nov 2001 18:49:47 +0000 (+0000) Subject: * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Send "test" X-Git-Tag: release-1-4d~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9f74104e19404046af5854487609288a436e171;p=thirdparty%2Flibtool.git * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Send "test" warnings to /dev/null, helps FreeBSD and maybe others. --- diff --git a/ChangeLog b/ChangeLog index 131e392ea..bf83f8c8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-11-27 Kevin Ryde + * 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 * libtool.m4: quote LTCC because autoconf AC_PROG_CC_STDC diff --git a/libtool.m4 b/libtool.m4 index aaea27105..07ebbade8 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -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