# HG changeset patch # User mosu # Date 1063403980 0 # Node ID 5e5f230b102dce95a4968ba676899edd24edab50 # Parent 59e3d641c48ca3497579eea85ed2641d33dfeec7 Fix for the faad2 compilation test which needs config.h to be present. Patch by Bernd Ernesti . diff -r 59e3d641c48c -r 5e5f230b102d configure --- a/configure Fri Sep 12 21:56:03 2003 +0000 +++ b/configure Fri Sep 12 21:59:40 2003 +0000 @@ -4309,6 +4309,13 @@ else _inc_faad="-I`pwd`/libfaad2" _faad=yes + # the faad check needs a config.h file + if test -f "config.h" ; then + _rm_config_h=no + else + _rm_config_h=yes + echo "" > config.h + fi # internal faad: check if our dear gcc is able to compile it... echo "$_cc -c -O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $CFLAGS $_inc_faad $_inc_extra `pwd`/libfaad2/cfft.c -o $TMPO" >> "$TMPLOG" if ( $_cc -c -O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $CFLAGS $_inc_faad $_inc_extra "`pwd`/libfaad2/cfft.c" -o "$TMPO" ) >> "$TMPLOG" 2>&1 ; then @@ -4317,6 +4324,10 @@ _faad=no echores "no (broken gcc)" fi + # remove a temporarily config.h, which was needed for the faad compile check + if test "$_rm_config_h" = yes; then + rm config.h + fi fi fi