Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.1073 diff -u -p -r1.1073 configure --- configure 5 Oct 2005 19:52:13 -0000 1.1073 +++ configure 7 Oct 2005 05:16:35 -0000 @@ -5609,7 +5609,9 @@ if false ; then if test "$_dshow" != no ; then _dshow=no # check if compiler supports C++ and C++-libs are installed correctly - cat > "$TMPCPP" << EOF + _TMPC=$TMPC + TMPC=$TMPCPP + cat > "$TMPC" << EOF #include class myclass { private: int ret; @@ -5618,9 +5620,7 @@ class myclass { int myclass::myreturn(void) { ret = 0; return ret ; } int main(void) { myclass myobject; return myobject.myreturn(); } EOF - echo "------------------------------------------------" >> "$TMPLOG" - cat "$TMPCPP" >> "$TMPLOG" - if ( $_cc "$TMPCPP" -o "$TMPO" && "$TMPO" ) >> "$TMPLOG" 2>&1 ; then + if cc_check && "$TMPO" >> "$TMPLOG" 2>&1 ; then _dshow=yes echores "yes (C++ is ok)" else @@ -5640,6 +5640,8 @@ to disable building the C++ based Direct EOF die "$_cc's C++ is broken" fi + + TMPC=$_TMPC fi fi