summaryrefslogtreecommitdiff
path: root/gst-autogen.sh
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2002-05-27 13:32:47 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2002-05-27 13:32:47 +0000
commit48e8bb063303c8663b9d95d35242415ad2a5ca19 (patch)
treeef721c45b42c1763a41d604e278b02ddb77cfdc2 /gst-autogen.sh
parent3ce22b87b251e36d30660b72b8020011246b0c64 (diff)
hey, who said only wtay gets to break stuff ?
Original commit message from CVS: hey, who said only wtay gets to break stuff ?
Diffstat (limited to 'gst-autogen.sh')
-rw-r--r--gst-autogen.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/gst-autogen.sh b/gst-autogen.sh
index 6c7c54b..7062242 100644
--- a/gst-autogen.sh
+++ b/gst-autogen.sh
@@ -127,9 +127,38 @@ aclocal_check ()
else
aclocal=`echo $automake | sed s/automake/aclocal/`
debug "aclocal: $aclocal"
+ if [ "$aclocal" != "aclocal" ];
+ then
+ CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-aclocal=$aclocal"
+ fi
+ if [ ! -x $aclocal ]; then
+ echo "Error: cannot execute $aclocal !"
+ return 1
+ fi
fi
}
+autoheader_check ()
+{
+ # same here - autoheader is part of autoconf
+ # use the same voodoo
+ if [ -z "$autoconf" ]; then
+ echo "Error: no autoconf variable set !"
+ return 1
+ else
+ autoheader=`echo $autoconf | sed s/autoconf/autoheader/`
+ debug "autoheader: $autoheader"
+ if [ "$autoheader" != "autoheader" ];
+ then
+ CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-autoheader=$autoheader"
+ fi
+ if [ ! -x $autoheader ]; then
+ echo "Error: cannot execute $autoheader !"
+ return 1
+ fi
+ fi
+
+}
autoconf_2.52d_check ()
{
# autoconf 2.52d has a weird issue involving a yes:no error
@@ -215,11 +244,13 @@ autogen_options ()
--with-automake)
AUTOMAKE=$2
echo "+ using alternate automake in $2"
+ CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-automake=$AUTOMAKE"
shift 2
;;
--with-autoconf)
AUTOCONF=$2
echo "+ using alternate autoconf in $2"
+ CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-autoconf=$AUTOCONF"
shift 2
;;
--) shift ; break ;;