diff options
author | Chris Flerackers <cflerackers@androme.be> | 2004-01-09 18:00:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-01-09 18:00:31 +0000 |
commit | 7f965c1c896e7ea6ec249e042147f3eb905bda7b (patch) | |
tree | 24a844089e3d1522587920d80b9718c0aabfcbfa /configure | |
parent | 84f986c0f42a2553122713575c7256c9babe2854 (diff) | |
download | ffmpeg-7f965c1c896e7ea6ec249e042147f3eb905bda7b.tar.gz |
inttypes emulation cleanup patch by ("Chris Flerackers" <cflerackers at androme dot be>)
Originally committed as revision 2681 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -148,6 +148,7 @@ debug="yes" extralibs="-lm" simpleidct="yes" bigendian="no" +inttypes="yes" emu_fast_int="no" vhook="default" dlfcn="no" @@ -634,6 +635,17 @@ fi fi # --- +# *inttypes.h* test +cat > $TMPC << EOF +#include <inttypes.h> +int main(int argc, char ** argv){ + return 0; +} +EOF + +$cc -o $TMPE $TMPC 2>/dev/null || inttypes="no" + +# --- # *int_fast* test cat > $TMPC << EOF #include <inttypes.h> @@ -870,6 +882,7 @@ echo "C compiler $cc" echo "make $make" echo "CPU $cpu ($tune)" echo "Big Endian $bigendian" +echo "inttypes.h $inttypes" echo "broken inttypes.h $emu_fast_int" if test $cpu = "x86"; then echo "MMX enabled $mmx" @@ -972,6 +985,9 @@ if test "$bigendian" = "yes" ; then echo "WORDS_BIGENDIAN=yes" >> config.mak echo "#define WORDS_BIGENDIAN 1" >> $TMPH fi +if test "$inttypes" = "yes" ; then + echo "#define HAVE_INTTYPES_H 1" >> $TMPH +fi if test "$emu_fast_int" = "yes" ; then echo "#define EMULATE_FAST_INT 1" >> $TMPH fi |