helps when not specifying tools
authorThomas Vander Stichele <thomas@apestaart.org>
Mon, 27 May 2002 14:16:22 +0000 (14:16 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Mon, 27 May 2002 14:16:22 +0000 (14:16 +0000)
Original commit message from CVS:
helps when not specifying tools

gst-autogen.sh

index 7062242..b8354e5 100644 (file)
@@ -131,7 +131,7 @@ aclocal_check ()
     then
       CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-aclocal=$aclocal"
     fi
-    if [ ! -x $aclocal ]; then
+    if [ ! -x `which $aclocal` ]; then
       echo "Error: cannot execute $aclocal !"
       return 1
     fi
@@ -152,7 +152,7 @@ autoheader_check ()
     then
       CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-autoheader=$autoheader"
     fi
-    if [ ! -x $autoheader ]; then
+    if [ ! -x `which $autoheader` ]; then
       echo "Error: cannot execute $autoheader !"
       return 1
     fi