News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Build error - Automake version

Started by KirkD, January 07, 2010, 06:13:57 AM

Previous topic - Next topic

KirkD

I just tried to build Code::Blocks on Fedora 12 but ./bootstrap informed that I needed Automake 1.7 or higher.  If I issue:

automake --version

I see that I have version 1.11.1  

Upon interrogation of the ./bootstrap file, I see this:

if test -n "`$AUTOMAKE --version 2>&1|head -n 1|egrep '1\.[0-6](\.[0-9]+)?$'`"; then
   echo "Automake 1.7 or above is required. Aborting build...";
   exit 1;
fi

Which to me reads that it is seeing automake 1.1 and failing but not realizing that 1.11 is actually acceptable.  Unfortunately, I'm not good enough with regex to formulate the fix - I'm still pondering it.

I've commented out the test and it ran fine.  I'm in the process of a build now and I'll post back once I have a working version.  I would appreciate to see the fixed regex, too.

-kirk

UPDATE:: the build and install worked fine.

Jenna

Could you please test whether the following regex works for you ?

if test -n "`$AUTOMAKE --version 2>&1|head -n 1|egrep '\<1\.[0-6](\.[0-9]+)?\>'`"; then
        echo "Automake 1.7 or above is required. Aborting build...";
        exit 1;
fi


And of course anybody else, who is willing and able to test it, should report whether it works or breaks build on his/her system.

KirkD

#2
This does indeed appear to work.  

Out of curiosity, what \< and \>  mean?



Jenna

Quote from: KirkD on January 07, 2010, 08:23:05 PM
This does indeed appear to work.  

Out of curiosity, what \< and \>  mean?




Word start and word end.