From 9b5338b67f7eedcb1ae62707960f00b3a18234b3 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Mon, 4 Nov 2002 20:23:58 +0000 Subject: Fix wrong which checks. CVS patchset: 3191 CVS date: 2002/11/04 20:23:58 --- autogen.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/autogen.sh b/autogen.sh index b20c044cd..1e6009816 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,7 @@ #!/bin/sh # run this to generate all the initial makefiles, etc. -PROG=gnome-xine +PROG=xine-lib # Check how echo works in this /bin/sh case `echo -n` in @@ -70,10 +70,10 @@ run_libtoolize() { # AUTOMAKE #-------------------- detect_automake() { - if [ -f `which automake-1.6` ]; then + if [ `which automake-1.6` -a -f `which automake-1.6` ]; then automake_1_6x=yes else - if [ -f `which automake` ]; then + if [ `which automake` -a -f `which automake` ]; then AM="`automake --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`" if test $AM -lt 100 ; then AM=`expr $AM \* 10` @@ -92,14 +92,14 @@ detect_automake() { } run_automake () { - if test x"$automake_1_6x" = x"no"; then + if test x"$automake_1_6x" != x"yes"; then echo "Warning: automake < 1.6. Some warning message might occur from automake" echo fi echo $_echo_n " + Running automake: $_echo_c"; - if test x"$automake_1_6x" = "xyes"; then + if test x"$automake_1_6x" = x"yes"; then automake-1.6 --gnu --add-missing --copy; else automake --gnu --add-missing --copy; @@ -113,10 +113,10 @@ run_automake () { detect_aclocal() { # if no automake, don't bother testing for aclocal - if [ -f `which aclocal-1.6` ]; then + if [ `which aclocal-1.6` -a -f `which aclocal-1.6` ]; then aclocal_1_6x=yes else - if [ -f `which aclocal` ]; then + if [ `which aclocal` -a -f `which aclocal` ]; then AC="`aclocal --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`" if test $AC -lt 100 ; then AC=`expr $AC \* 10` -- cgit v1.2.3