]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Set max_cmd_len
authorRobert Boehne <rboehne@ricardo-us.com>
Mon, 9 Jul 2001 19:11:26 +0000 (19:11 +0000)
committerRobert Boehne <rboehne@gnu.org>
Mon, 9 Jul 2001 19:11:26 +0000 (19:11 +0000)
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.

ChangeLog
libtool.m4
ltmain.in

index 751072c0135558a679741d8899c0370301f04b62..60787f0930ef47d3397ceced2dc0782e3fcdd8f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-07-09  Robert Boehne  <rboehne@ricardo-us.com>
+
+       * 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  <gary@gnu.org>
 
        * libtool.m4 (_LT_AC_LANG_C_CONFIG):  Revert to 1.3.x
index 2a0b7c5aba4302868c15523aca46ac54ccae19b0..007d013f442e08379b58c291f3ec8b59e8486ad5 100644 (file)
@@ -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
index c51a1f62c3d4341f4ce5bea49519f1ea84ab9aba..70efb3c3875f69f69b1278e523881cacf7ea5327 100644 (file)
--- 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