Mercurial > mplayer.hg
comparison configure @ 9879:ea743bdf7e4d
Darwin Altivec detection fixes and MacOSX API detection reworked, based on patch by Dan Christiansen <danchr@daimi.au.dk>
author | alex |
---|---|
date | Tue, 08 Apr 2003 16:10:52 +0000 |
parents | 5e5e2d4dcdbe |
children | ca072c661b44 |
comparison
equal
deleted
inserted
replaced
9878:95727467a091 | 9879:ea743bdf7e4d |
---|---|
855 _mcpu='' | 855 _mcpu='' |
856 cpu750=`$_cpuinfo | grep "cpu.*750"` | 856 cpu750=`$_cpuinfo | grep "cpu.*750"` |
857 if test -n "$cpu750"; then | 857 if test -n "$cpu750"; then |
858 _march='-mcpu=750' | 858 _march='-mcpu=750' |
859 _mcpu='-mtune=750' | 859 _mcpu='-mtune=750' |
860 fi | |
861 if darwin ; then | |
862 if [[ $(sysctl -n hw.vectorunit) == 1 ]]; then | |
863 _altivec=yes | |
864 fi | |
860 fi | 865 fi |
861 ;; | 866 ;; |
862 | 867 |
863 alpha) | 868 alpha) |
864 _def_arch='#define ARCH_ALPHA 1' | 869 _def_arch='#define ARCH_ALPHA 1' |
2364 if test "$_macosx" = auto ; then | 2369 if test "$_macosx" = auto ; then |
2365 if darwin && ppc; then | 2370 if darwin && ppc; then |
2366 _macosx=yes | 2371 _macosx=yes |
2367 else | 2372 else |
2368 _macosx=no | 2373 _macosx=no |
2374 _def_macosx='#undef MACOSX' | |
2369 fi | 2375 fi |
2370 fi | 2376 fi |
2371 if test "$_macosx" = yes ; then | 2377 if test "$_macosx" = yes ; then |
2372 cat > $TMPC <<EOF | 2378 cat > $TMPC <<EOF |
2373 #include <Carbon/Carbon.h> | 2379 #include <Carbon/Carbon.h> |
2374 #include <Cocoa/Cocoa.h> | |
2375 #include <QuickTime/QuickTime.h> | 2380 #include <QuickTime/QuickTime.h> |
2376 int main(void) { | 2381 int main(void) { |
2377 NSApplicationLoad(); | 2382 EnterMovies(); |
2383 ExitMovies(); | |
2384 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); | |
2378 } | 2385 } |
2379 EOF | 2386 EOF |
2380 if cc_check -ObjC -framework Carbon -framework Cocoa -framework QuickTime ; then | 2387 if cc_check -framework Carbon -framework QuickTime ; then |
2381 _macosx=yes | 2388 _macosx=yes |
2382 _macosx_frameworks="-framework Carbon -framework Cocoa -framework QuickTime " | 2389 _macosx_frameworks="-framework Carbon -framework QuickTime" |
2390 _def_macosx='#define MACOSX 1' | |
2383 else | 2391 else |
2384 _macosx=no | 2392 _macosx=no |
2385 echo -n "failed to detect Mac OS X APIs, defaulting to " | |
2386 fi | |
2387 fi | |
2388 if test "$_macosx" = yes ; then | |
2389 _def_macosx='#define MACOSX 1' | |
2390 else | |
2391 _def_macosx='#undef MACOSX' | 2393 _def_macosx='#undef MACOSX' |
2394 fi | |
2392 fi | 2395 fi |
2393 echores "$_macosx" | 2396 echores "$_macosx" |
2394 | 2397 |
2395 | 2398 |
2396 echocheck "Samba support (libsmbclient)" | 2399 echocheck "Samba support (libsmbclient)" |