diff options
author | Stephen Torri <storri@users.sourceforge.net> | 2002-11-09 22:32:51 +0000 |
---|---|---|
committer | Stephen Torri <storri@users.sourceforge.net> | 2002-11-09 22:32:51 +0000 |
commit | 421af0d7a156cba7c213987dd99f0a629050f90b (patch) | |
tree | e254d4e738cd705389401095e4fc1200131a0e62 | |
parent | 275edf08c6440fc8109b348a33e165f99c0c1a1d (diff) | |
download | xine-lib-421af0d7a156cba7c213987dd99f0a629050f90b.tar.gz xine-lib-421af0d7a156cba7c213987dd99f0a629050f90b.tar.bz2 |
To preserve readability of the code some variables were added to help people
understand the logic.
CVS patchset: 3213
CVS date: 2002/11/09 22:32:51
-rwxr-xr-x | autogen.sh | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh index f5a488981..79c136117 100755 --- a/autogen.sh +++ b/autogen.sh @@ -75,12 +75,18 @@ detect_automake() { # automake is /usr/local/bin/automake # set -- `type automake-1.6 2>/dev/null` - if [ $? -eq 0 -a $# -eq 3 -a -f "$3" ]; then + RETVAL=$? + NUM_RESULT=$# + RESULT_FILE=$3 + if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then automake_1_6x=yes automake=automake-1.6 else set -- `type automake 2>/dev/null` - if [ $? -eq 0 -a $# -eq 3 -a -f "$3" ]; then + RETVAL=$? + NUM_RESULT=$# + RESULT_FILE=$3 + if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then automake=automake AM="`automake --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`" if test $AM -lt 100 ; then @@ -118,12 +124,18 @@ detect_aclocal() { # if no automake, don't bother testing for aclocal set -- `type aclocal-1.6 2>/dev/null` - if [ $? -eq 0 -a $# -eq 3 -a -f "$3" ]; then + RETVAL=$? + NUM_RESULT=$# + RESULT_FILE=$3 + if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then aclocal_1_6x=yes aclocal=aclocal-1.6 else set -- `type aclocal 2>/dev/null` - if [ $? -eq 0 -a $# -eq 3 -a -f "$3" ]; then + RETVAL=$? + NUM_RESULT=$# + RESULT_FILE=$3 + if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then aclocal=aclocal AC="`aclocal --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`" if test $AC -lt 100 ; then |