[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
1.5.22 fails to configure on AIX 5.1
From: |
Howard Chu |
Subject: |
1.5.22 fails to configure on AIX 5.1 |
Date: |
Thu, 12 Jan 2006 22:04:51 -0800 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060111 SeaMonkey/1.5a Mnenhy/0.7.3.0 |
Something in AIX's /bin/sh is misbehaving; the output from setting -xv
on the shell shows chunks of the script are actually missing. If bash is
used to invoke the top-level configure script, that seems to run OK but
then the libltdl directory also fails unless you set CONFIG_SHELL to
bash as well. (In other words, using bash exclusively seems to work.)
I guess the first noticable failure is in trying to detect the maximum
length of a command line:
+ echo 'configure:5515: checking the maximum length of command line
arguments'
+ echo -n 'checking the maximum length of command line arguments... '
checking the maximum length of command line arguments... if test
"${lt_cv_sys_ma
x_cmd_len+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
i=0
teststring="ABCD"
[I've omitted the rest of the script body here]
*)
# 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.
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
= "XX$teststring") >/dev/null 2>&1 &&
new_result=`expr "X$teststring" : ".*" 2>&1` &&
lt_cv_sys_max_cmd_len=$new_result &&
test $i != 17 # 1/2 MB should be enough
do
i=`expr $i + 1`
teststring=$teststring$teststring
done
teststring=
# Add a significant safety factor because C++ compilers can tack on
massive
# amounts of additional arguments before passing them to the linker.
# It appears as though 1/2 is a usable value.
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
;;
esac
fi
+ test '' = set
+ i=0
+ teststring=ABCD
+ case $build_os in
+ SHELL=/bin/sh
+ teststring=
expr $lt_cv_sys_max_cmd_len \/ 2
++ expr / 2
expr: syntax error
+ lt_cv_sys_max_cmd_len=
It appears to completely ignore the "while" clause.
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/
- 1.5.22 fails to configure on AIX 5.1,
Howard Chu <=
- Re: 1.5.22 fails to configure on AIX 5.1, Ralf Wildenhues, 2006/01/13
- Re: 1.5.22 fails to configure on AIX 5.1, Howard Chu, 2006/01/13
- Re: 1.5.22 fails to configure on AIX 5.1, Ralf Wildenhues, 2006/01/14
- Re: 1.5.22 fails to configure on AIX 5.1, Bruce Korb, 2006/01/14
- Re: 1.5.22 fails to configure on AIX 5.1, Paul Eggert, 2006/01/15
- Re: 1.5.22 fails to configure on AIX 5.1, Howard Chu, 2006/01/15
- Re: 1.5.22 fails to configure on AIX 5.1, Paul Eggert, 2006/01/15
- Re: 1.5.22 fails to configure on AIX 5.1, Howard Chu, 2006/01/16
- Re: 1.5.22 fails to configure on AIX 5.1, Howard Chu, 2006/01/17