From 48e8bb063303c8663b9d95d35242415ad2a5ca19 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 27 May 2002 13:32:47 +0000 Subject: [PATCH] hey, who said only wtay gets to break stuff ? Original commit message from CVS: hey, who said only wtay gets to break stuff ? --- gst-autogen.sh | 31 +++++++++++++++++++++++++++++++ m4/as-auto-alt.m4 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 m4/as-auto-alt.m4 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 ;; diff --git a/m4/as-auto-alt.m4 b/m4/as-auto-alt.m4 new file mode 100644 index 0000000..7639ef0 --- /dev/null +++ b/m4/as-auto-alt.m4 @@ -0,0 +1,50 @@ +dnl as-auto-alt.m4 0.0.1 +dnl autostars m4 macro for supplying alternate autotools versions to configure +dnl thomas@apestaart.org +dnl +dnl AS_AUTOTOOLS_ALTERNATE() +dnl +dnl supplies --with arguments for autoconf, autoheader, automake, aclocal + +AC_DEFUN(AS_AUTOTOOLS_ALTERNATE, +[ + dnl allow for different autoconf version + AC_ARG_WITH(autoconf, + AC_HELP_STRING([--with-autoconf], + [use a different autoconf for regeneration of Makefiles]), + [ + unset AUTOCONF + AM_MISSING_PROG(AUTOCONF, ${withval}) + AC_MSG_NOTICE([Using $AUTOCONF as autoconf]) + ]) + + dnl allow for different autoheader version + AC_ARG_WITH(autoheader, + AC_HELP_STRING([--with-autoheader], + [use a different autoheader for regeneration of Makefiles]), + [ + unset AUTOHEADER + AM_MISSING_PROG(AUTOHEADER, ${withval}) + AC_MSG_NOTICE([Using $AUTOHEADER as autoheader]) + ]) + + dnl allow for different automake version + AC_ARG_WITH(automake, + AC_HELP_STRING([--with-automake], + [use a different automake for regeneration of Makefiles]), + [ + unset AUTOMAKE + AM_MISSING_PROG(AUTOMAKE, ${withval}) + AC_MSG_NOTICE([Using $AUTOMAKE as automake]) + ]) + + dnl allow for different aclocal version + AC_ARG_WITH(aclocal, + AC_HELP_STRING([--with-aclocal], + [use a different aclocal for regeneration of Makefiles]), + [ + unset ACLOCAL + AM_MISSING_PROG(ACLOCAL, ${withval}) + AC_MSG_NOTICE([Using $ACLOCAL as aclocal]) + ]) +]) -- 2.7.4