diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-04-18 23:14:50 -0500 |
---|---|---|
committer | Peter O'Gorman <peter@pogma.com> | 2012-04-18 23:14:50 -0500 |
commit | 37a284f50a93b772d86e8c68a346266aab5de7a5 (patch) | |
tree | 9ccd41bf459963dfd57f8cd5174d0b27e48b9f5e | |
parent | 11cd425e7d47111956381dba28f8c1b34e14653f (diff) | |
download | libtool-37a284f50a93b772d86e8c68a346266aab5de7a5.tar.gz |
Handle getconf returning "undefined".
* m4/libtool.m4: Check for "undefined" from `getconf`.
-rw-r--r-- | m4/libtool.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 75bfdb48..a8ecbc37 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1692,7 +1692,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then + if test -n "$lt_cv_sys_max_cmd_len" && \ + test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else |