Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.689 diff -u -r1.689 configure --- configure 26 Mar 2003 11:34:52 -0000 1.689 +++ configure 3 Apr 2003 13:46:05 -0000 @@ -858,6 +858,11 @@ _march='-mcpu=750' _mcpu='-mtune=750' fi +# if darwin ; then + if [[ $(sysctl -n hw.vectorunit) == 1 ]]; then + _altivec=yes +# fi + fi ;; alpha) @@ -2319,25 +2324,20 @@ fi if test "$_macosx" = yes ; then cat > $TMPC < -#include #include -int main(void) { - NSApplicationLoad(); +int main(void) { + EnterMovies(); + ExitMovies(); } EOF - if cc_check -ObjC -framework Carbon -framework Cocoa -framework QuickTime ; then + if cc_check -x objective-c -framework Carbon -framework QuickTime ; then _macosx=yes - _macosx_frameworks="-framework Carbon -framework Cocoa -framework QuickTime " + _macosx_frameworks="-framework Carbon -framework QuickTime" + _def_macosx='#define MACOSX 1' else _macosx=no - echo -n "failed to detect Mac OS X APIs, defaulting to " - fi -fi -if test "$_macosx" = yes ; then - _def_macosx='#define MACOSX 1' -else _def_macosx='#undef MACOSX' + fi fi echores "$_macosx"