summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-18 23:14:50 -0500
committerGary V. Vaughan <gary@gnu.org>2012-10-02 21:04:50 +0700
commit8392cd263e847a22b2409c35bf03d7c9e68d2cd0 (patch)
treea003b10ce6695eb4eaeff5c8d82b077872caddc1
parent430e782755bbe8061a5e7f9d856b33e3b7da3ac8 (diff)
downloadlibtool-8392cd263e847a22b2409c35bf03d7c9e68d2cd0.tar.gz
Handle getconf returning "undefined".
* m4/libtool.m4: Check for "undefined" from `getconf`.
-rw-r--r--m4/libtool.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index cb8c4a4f..e8c89115 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