Opened 12 years ago

Last modified 12 years ago

#3346 closed Bug report

Check for compiler version only works with gcc

Reported by: rklrkl Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: rklrkl, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

In the configure script shipped with FileZilla 3.0.4, line 19659 reads:

if COMPILER=$CC --version | head -n 1; then


However, most non-gcc compilers don't have a --version flag, so this results in "Unknown version" being displayed in the "About FileZilla" dialogue box if $CC != gcc.

For HP-UX 11.11, the closest I could get for HP's ANSI C compiler was:

if COMPILER=what /usr/bin/cc | grep Compiler; then

But then the same command on HP-UX 11.23 and 11.31 doesn't work (the output from 'what /usr/bin/cc' is completely different - there isn't even a line with a 'Compiler' string in it...).

I don't know what the solution to this is - my gut feeling is that, say, Sun's own C compiler on Solaris might have similar issues. Maybe it's best just to not include the compiler version and do a "uname -a" or something similar and have it as "Build system: " line.

Change History (1)

comment:1 Changed 12 years ago by Tim Kosse

I've added a line for the build system similar to the host system. They are only different if cross-compiling though. Should contain enough information about the platform.

uname -a is a bit too verbose, for example it includes the hostname (as in domainname) of the build system.

And everything else is even less portable than the --version argument.

Note: See TracTickets for help on using tickets.