Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:3160] configure.in modified

Date2003-10-16 13:36
Fromstevenyi
Subject[CSOUND-DEV:3160] configure.in modified
Hi all,

I added an extra configure option, --with-gcc3, which is defaulted to no
but can be enabled with --with-gcc3=yes.  What this does is change the
compiler flags to use, either -malign or -falign, depending if you set
this value to on or not.  

If you run configure by itself, it will run as before.  If you run with
--with-gcc3=yes, then you will get -falign flags.  This will get rid of
the:

cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps

that gcc3 series users get for every file they compile. 

Thanks,
steven

Date2003-10-16 17:21
FromJohn ffitch
Subject[CSOUND-DEV:3162] Re: configure.in modified
Can you not check for gcc3 in the configure file?  That would just 
automate another stage.
==JOhn

Date2003-10-16 18:23
Fromsteven
Subject[CSOUND-DEV:3164] Re: configure.in modified
I tried to figure this out and googled around and all I found were crazy 
hacks of doing gcc --version and using sed or awk and some regular 
expressions to find out the version number.  I gave up trying to 
integrate those and didn't find any other solutions, so I just threw 
this in as it was easy to do.  Ideally a check for this would be the way 
to go; if someone else finds one to use, please do replace what I put in. 

steven

John ffitch wrote:

>Can you not check for gcc3 in the configure file?  That would just 
>automate another stage.
>==JOhn
>
>
>
>  
>