[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH-1.5] BSD sysctl command line length
From: |
Peter O'Gorman |
Subject: |
Re: [PATCH-1.5] BSD sysctl command line length |
Date: |
Mon, 02 Aug 2004 22:44:49 +0900 |
User-agent: |
Mozilla Thunderbird 0.6 (Macintosh/20040502) |
Peter O'Gorman wrote:
Hi,
I'd like to move this back to branch-1-5.
Okay to commit?
Forgot to attach the patch. Doh!
Peter
--
Peter O'Gorman - http://www.pogma.com
Index: ChangeLog
from Todd Vierling <address@hidden>,
Peter O'Gorman <address@hidden>
* libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Use sysctl to get the
max cmd length on BSD* and darwin. Make sure that there is a safety
factor too.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.44
diff -u -3 -p -u -r1.314.2.44 libtool.m4
--- libtool.m4 2 Aug 2004 04:03:26 -0000 1.314.2.44
+++ libtool.m4 2 Aug 2004 13:35:29 -0000
@@ -678,6 +678,19 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
lt_cv_sys_max_cmd_len=8192;
;;
+ netbsd* | freebsd* | openbsd* | darwin* )
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ ;;
+
*)
# 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
- [PATCH-1.5] BSD sysctl command line length, Peter O'Gorman, 2004/08/02
- Re: [PATCH-1.5] BSD sysctl command line length,
Peter O'Gorman <=
- Re: [PATCH-1.5] BSD sysctl command line length, Bob Friesenhahn, 2004/08/02
- Re: [PATCH-1.5] BSD sysctl command line length, Peter O'Gorman, 2004/08/02
- Re: [PATCH-1.5] BSD sysctl command line length, Bob Friesenhahn, 2004/08/02
- Re: [PATCH-1.5] BSD sysctl command line length, Peter O'Gorman, 2004/08/02
- libtool alpha., Gary V . Vaughan, 2004/08/02
- Re: libtool alpha., Peter O'Gorman, 2004/08/03
- Grand Renaming pre-patch, Gary V. Vaughan, 2004/08/05
- Re: Grand Renaming pre-patch, Peter O'Gorman, 2004/08/05
- Re: Grand Renaming pre-patch, Gary V. Vaughan, 2004/08/06