From: Peter O'Gorman Date: Sun, 16 Jan 2005 12:26:54 +0000 (+0000) Subject: * libtool.m4 (LT_CMD_MAX_LEN) [osf]: On Tru64 there could X-Git-Tag: release-1-5-12~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a2fe6f43b0635e05ef78fb93c926ebb5bf9965e;p=thirdparty%2Flibtool.git * libtool.m4 (LT_CMD_MAX_LEN) [osf]: On Tru64 there could be a kernel panic when testing the maximum command line length if exec_disable_arg_limit=1. Don't do the tests to figure it out on *-osf*. Reported by Dr. Hans Ekkehard Plesser --- diff --git a/ChangeLog b/ChangeLog index cb1072931..a2ba10673 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-01-16 Peter O'Gorman + + * libtool.m4 (LT_CMD_MAX_LEN) [osf]: On Tru64 there could + be a kernel panic when testing the maximum command line length + if exec_disable_arg_limit=1. Don't do the tests to figure it + out on *-osf*. + Reported by Dr. Hans Ekkehard Plesser + + 2005-01-14 Guido Draheim (tiny change) * libtool.m4 (AC_PROG_SED): Don't break test loop early. diff --git a/libtool.m4 b/libtool.m4 index 712454c6e..236e8dae9 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -675,8 +675,20 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` ;; - - *) + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + *) # 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.