Skip to contentSkip to conversation

./configure --help and gcc checks

Qemu-devel Sylvain Petreolle 3 participants 7 messages Apr 6, 2006

lore
Share & tools
lore
#0 lore raw

Hi people,
I have gcc 3.2.3 (run as gcc32) and gcc 4.1.0.

./configure --help runs the gcc check, thus displaying the following error :
ERROR: "gcc" looks like gcc 4.x

IMHO this should be changed to avoid running things like this :
./configure --cc=gcc32 --help

Do agree with that ?

Kind regards,
Sylvain Petreolle (aka Usurp)
--- --- --- --- --- --- --- --- --- --- --- --- --- Listen to free Music: www.jamendo.com

Tired of a proprietary Windows on your computer ? Use free ReactOS instead ( http://www.reactos.org )

#1 lore raw

having configure check for gcc3, gcc31, gcc32, gcc33, gcc34, etc before checking for gcc itself might work.

is it really worth the trouble to check every possible combination?

Quoted 26 lines · Sylvain Petreolle

Hi people,
I have gcc 3.2.3 (run as gcc32) and gcc 4.1.0.

./configure --help runs the gcc check, thus displaying the following error :
ERROR: "gcc" looks like gcc 4.x

IMHO this should be changed to avoid running things like this :
./configure --cc=gcc32 --help

Do agree with that ?

Kind regards,
Sylvain Petreolle (aka Usurp)
--- --- --- --- --- --- --- --- --- --- --- --- --- Listen to free Music: www.jamendo.com

Tired of a proprietary Windows on your computer ? Use free ReactOS instead ( http://www.reactos.org )

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
#2 lore raw
Quoted 7 lines · On Thu, 6 Apr 2006 15:40:53 -0400 "Jim C. Brown" <[email protected]> wrote:

having configure check for gcc3, gcc31, gcc32, gcc33, gcc34, etc before checking for gcc itself might work.

is it really worth the trouble to check every possible combination? [...]

Quoted 2 lines

IMHO this should be changed to avoid running things like this :
./configure --cc=gcc32 --help

How about doing:

CC=gcc32 ./configure

Signature · 1 line
Kevin F. Quinn
#3 lore raw

Hehe, qemu's configure doesnt use it :)

Quoted 10 lines · --- "Kevin F. Quinn

How about doing:

CC=gcc32 ./configure

Signature · 1 line
Kevin F. Quinn
Quoted 1 line

_______________________________________________

Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Kind regards,
Sylvain Petreolle (aka Usurp)
--- --- --- --- --- --- --- --- --- --- --- --- ---
Listen to free Music: http://www.jamendo.com
Windows is proprietary, use free ReactOS instead : http://www.reactos.org

#4 lore raw
In reply to Jim C. Brown

why would you need to check gcc's version just for displaying help ?? in fact a bunch of /bin/echo commands...

Quoted 5 lines · --- "Jim C. Brown

having configure check for gcc3, gcc31, gcc32, gcc33, gcc34, etc before checking for gcc itself might work.

is it really worth the trouble to check every possible combination?

Kind regards,
Sylvain Petreolle (aka Usurp)
--- --- --- --- --- --- --- --- --- --- --- --- ---
Listen to free Music: http://www.jamendo.com
Windows is proprietary, use free ReactOS instead : http://www.reactos.org

#5 lore raw
Quoted 4 lines · Sylvain Petreolle

why would you need to check gcc's version just for displaying help ?? in fact a bunch of /bin/echo commands...

--- "Jim C. Brown" <[email protected]> a ?crit :

Not for help. I meant auto-detection, so that if u have gcc 4.0 and gcc 3.0 the script will pick the right version.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
#6 lore raw
In reply to Sylvain Petreolle
Quoted 8 lines · On Thu, 6 Apr 2006 14:33:30 +0200 (CEST) Sylvain Petreolle…

Hi people,
I have gcc 3.2.3 (run as gcc32) and gcc 4.1.0.

./configure --help runs the gcc check, thus displaying the following error : ERROR: "gcc" looks like gcc 4.x

IMHO this should be changed to avoid running things like this :
./configure --cc=gcc32 --help

I see what you mean now :)

It would enough to just move the gcc check in the configure script to after the help processing.

Signature · 1 line
Kevin F. Quinn