__VERSION__?

So I built ffmpeg 0.5 with new clang driver.

/Developer/ffmpeg-0.5-> ./ffmpeg
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --cc=clang --enable-pthreads --disable-gprof --disable-debug --disable-vhook --disable-ffserver --enable-shared --disable-static --enable-libfaac --enable-libfaad --enable-gpl --extra-ldflags=-L/usr/local/lib --extra-cflags=-I/usr/local/include
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Mar 23 2009 20:32:42, gcc: 4.2.1 (Apple Computer, Inc. build 5621) (dot 3)
At least one output file must be specified

Notice that ffmpeg shows gcc as the compiler instead of clang…

here is the code that is in ffmpeg-0.5/cmdutils.c

void show_banner(void)
{
fprintf(stderr, "%s version " FFMPEG_VERSION “, Copyright (c) %d-%d Fabrice Bellard, et al.\n”,
program_name, program_birth_year, this_year);
fprintf(stderr, " configuration: " FFMPEG_CONFIGURATION “\n”);
print_all_lib_versions(stderr, 1);
fprintf(stderr, " built on " DATE " " TIME);
#ifdef GNUC
fprintf(stderr, ", gcc: " VERSION “\n”);
#else
fprintf(stderr, “, using a non-gcc compiler\n”);
#endif
}

I changed it to “4.2.1 Compatible Clang Compiler”. I think that some scripts do funny things with the version number at the start, which is why I kept the funny wording.

-Chris

so __VERSION__ is suppose to show gcc compatibility version
but ffmpeg people are using it for actual compiler version.

can't the string contain any clang info may be like Safari browser sniff.