From: Robert Boehne Date: Mon, 9 Jul 2001 19:11:26 +0000 (+0000) Subject: * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Set max_cmd_len X-Git-Tag: release-1-4b~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df9214ecf2355e127996379301875dff1bc472d1;p=thirdparty%2Flibtool.git * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Set max_cmd_len to -1 on hurd, it has no command line argument limits. * ltmain.in Handle max_cmd_len=-1 for systems that don't have command line argument limits. --- diff --git a/ChangeLog b/ChangeLog index 751072c01..60787f093 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-07-09 Robert Boehne + + * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Set max_cmd_len + to -1 on hurd, it has no command line argument limits. + * ltmain.in Handle max_cmd_len=-1 for systems that don't have + command line argument limits. + 2001-07-05 Gary V. Vaughan * libtool.m4 (_LT_AC_LANG_C_CONFIG): Revert to 1.3.x diff --git a/libtool.m4 b/libtool.m4 index 2a0b7c5ab..007d013f4 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -552,6 +552,14 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; # 12K is about right + break + ;; + *) # 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 diff --git a/ltmain.in b/ltmain.in index c51a1f62c..70efb3c38 100644 --- a/ltmain.in +++ b/ltmain.in @@ -3257,7 +3257,7 @@ EOF fi if len=`expr "X$cmds" : ".*"` && - test $len -le $max_cmd_len; then + test $len -le $max_cmd_len || test $max_cmd_len -le -1; then : else # The command line is too long to link in one step, link piecewise. @@ -4256,7 +4256,7 @@ fi\ eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && - test $len -le $max_cmd_len; then + test $len -le $max_cmd_len || test $max_cmd_len -le -1; then : else # the command line is too long to link in one step, link in parts