From a8bc5bf7cc74f26592d2ce32ce0eaa0ef6d4f0ad Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Wed, 26 Apr 2006 16:58:54 +0000 Subject: Propagate fixes for when AUTOMAKE_OPTIONS doesn't list a minimum version number. This is not currently relevent, but it's best to use our latest version. svn path=/trunk/ogg/; revision=11286 --- autogen.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 5e9ec76..73c8fca 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,7 +2,7 @@ # Run this to set up the build system: configure, makefiles, etc. # (based on the version in enlightenment's cvs) -package="libogg" +package="vorbisdec" olddir=`pwd` srcdir=`dirname $0` @@ -25,16 +25,20 @@ VERSIONMKINT="sed -e s/[^0-9]//" # do we need automake? if test -r Makefile.am; then - AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | $VERSIONGREP` + AM_OPTIONS=`fgrep AUTOMAKE_OPTIONS Makefile.am` + AM_NEEDED=`echo $AM_OPTIONS | $VERSIONGREP` + if test x"$AM_NEEDED" = "x$AM_OPTIONS"; then + AM_NEEDED="" + fi if test -z $AM_NEEDED; then echo -n "checking for automake... " AUTOMAKE=automake ACLOCAL=aclocal if ($AUTOMAKE --version < /dev/null > /dev/null 2>&1); then + echo "yes" + else echo "no" AUTOMAKE= - else - echo "yes" fi else echo -n "checking for automake $AM_NEEDED or later... " -- cgit v1.2.1