From f205de7847da7ae1c10212d82e7042d0100b4ce0 Mon Sep 17 00:00:00 2001 From: dan miller Date: Fri, 19 Oct 2007 05:24:38 +0000 Subject: from the start... checking in ode-0.9 --- libraries/ode-0.9/autogen.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 libraries/ode-0.9/autogen.sh (limited to 'libraries/ode-0.9/autogen.sh') diff --git a/libraries/ode-0.9/autogen.sh b/libraries/ode-0.9/autogen.sh new file mode 100755 index 0000000..68a9759 --- /dev/null +++ b/libraries/ode-0.9/autogen.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# The version nr detection is not working. +# It fails if there is a '-' char in the version nr e.g. +# We should not use it until fixed. - Bram + +## The reason this uses sed instead of "grep --only-matches" +## is because MinGW's grep is an old version and does not contain that flag. +#automake_version=`automake --version | grep --regexp='[+0-9].[+0-9].[+0-9]' | sed -n 's/[* ()A-Za-z]//g;p'` +#automake_mayor=${automake_version%.*.*} +#automake_minor=${automake_version%.*} +#automake_minor=${automake_minor##*.} +#automake_revision=${automake_version##*.} +#echo "AutoMake Version: $automake_mayor.$automake_minor.$automake_revision" +# +#if [ $automake_mayor -eq 1 ]; then +# if [ $automake_minor -lt 8 ]; then +# echo "Automake must be 1.8.2 or higher, please upgrade" +# exit +# else +# if [ $automake_minor -eq 8 ] && [ $automake_revision -lt 2 ]; then +# echo "Automake must be 1.8.2 or higher, please upgrade" +# exit +# fi +# fi +#fi + +echo "Please make sure that you use automake 1.8.2 or later" +echo "Warnings about underquoted definitions are harmless" + +echo "Running aclocal" +aclocal -I . || exit 1 +echo "Running autoheader" +autoheader || exit 1 +echo "Running automake" +automake --foreign --include-deps --add-missing --copy || exit 1 +echo "Running autoconf" +autoconf || exit 1 + +#./configure $* + +echo "Now you are ready to run ./configure" -- cgit v1.1