comparison configure @ 1680:f6d2a4bc9bb5

Enable mediaLib support for Solaris on UltraSPARC CPUs
author jkeil
date Fri, 24 Aug 2001 16:20:04 +0000
parents 9305c0d5216b
children 445ea1ce4180
comparison
equal deleted inserted replaced
1679:73c8f54305b1 1680:f6d2a4bc9bb5
449 _xv=no 449 _xv=no
450 _vm=no 450 _vm=no
451 _xdpms=no 451 _xdpms=no
452 _3dfx=no 452 _3dfx=no
453 _syncfb=no 453 _syncfb=no
454 _mlib=no 454 _mlib=no _mlibdir=/opt/SUNWmlib
455 _xmga=autodetect 455 _xmga=autodetect
456 _dga=no 456 _dga=no
457 _dga2=no 457 _dga2=no
458 _svga=no 458 _svga=no
459 _fbdev=no 459 _fbdev=no
895 int main( void ) { return 0; } 895 int main( void ) { return 0; }
896 EOF 896 EOF
897 $_cc $_extraincdir $_extralibdir -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $TMPC -o $TMPO -ldvdread > /dev/null 2>&1 && \ 897 $_cc $_extraincdir $_extralibdir -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $TMPC -o $TMPO -ldvdread > /dev/null 2>&1 && \
898 { _dvdread=yes;_largefiles=yes; } 898 { _dvdread=yes;_largefiles=yes; }
899 899
900
901 cat > $TMPC << EOF
902 #include <mlib.h>
903 int main( void ) { mlib_VideoColorYUV2ABGR420(0,0,0,0,0,0,0,0,0); return 0; }
904 EOF
905 $_cc $_extraincdir $_extralibdir -I$_mlibdir/include $TMPC -o $TMPO -L$_mlibdir/lib -lmlib 9>/dev/null 2>&1 && _mlib=yes;
906
907
900 rm -f $TMPC $TMPO 908 rm -f $TMPC $TMPO
909
901 910
902 911
903 # --- 912 # ---
904 # check availability of some header files 913 # check availability of some header files
905 914
1250 _css='yes'; 1259 _css='yes';
1251 ;; 1260 ;;
1252 --with-cssincdir=*) 1261 --with-cssincdir=*)
1253 _cssincdir=`echo $ac_option | cut -d '=' -f 2` 1262 _cssincdir=`echo $ac_option | cut -d '=' -f 2`
1254 _css='yes'; 1263 _css='yes';
1264 ;;
1265 --with-mlibdir=*)
1266 _mlibdir=`echo $ac_option | cut -d '=' -f 2`
1267 _mlib=yes
1255 ;; 1268 ;;
1256 --size-x=*) 1269 --size-x=*)
1257 _x=`echo $ac_option | cut -d '=' -f 2` 1270 _x=`echo $ac_option | cut -d '=' -f 2`
1258 ;; 1271 ;;
1259 --size-y=*) 1272 --size-y=*)
1448 echo "Checking for FBDev ... $_fbdev" 1461 echo "Checking for FBDev ... $_fbdev"
1449 echo "Checking for OSS Audio ... $_oss_audio" 1462 echo "Checking for OSS Audio ... $_oss_audio"
1450 echo "Checking for ALSA Audio ... $_alsaver" 1463 echo "Checking for ALSA Audio ... $_alsaver"
1451 echo "Checking for ESD Audio ... $_esd" 1464 echo "Checking for ESD Audio ... $_esd"
1452 echo "Checking for Sun Audio ... $_sun_audio" 1465 echo "Checking for Sun Audio ... $_sun_audio"
1466 echo "Checking for Sun mediaLib ... $_mlib"
1453 echo "Checking for DeCSS support ... $_css" 1467 echo "Checking for DeCSS support ... $_css"
1454 echo "Checking for DVDread support ... $_dvdread" 1468 echo "Checking for DVDread support ... $_dvdread"
1455 echo "Checking for PNG support ... $_png" 1469 echo "Checking for PNG support ... $_png"
1456 echo "Checking for Win32 DLL support ... $_win32dll" 1470 echo "Checking for Win32 DLL support ... $_win32dll"
1457 echo "Checking for DirectShow ... $_dshow" 1471 echo "Checking for DirectShow ... $_dshow"
1763 fi 1777 fi
1764 1778
1765 1779
1766 if [ $_mlib = yes ]; then 1780 if [ $_mlib = yes ]; then
1767 _mlib='#define HAVE_MLIB' 1781 _mlib='#define HAVE_MLIB'
1782 _mlibinc="-I$_mlibdir/include"
1783 _mliblib="-L$_mlibdir/lib -R$_mlibdir/lib -lmlib"
1768 _vosrc=$_vosrc' yuv2rgb_mlib.c' 1784 _vosrc=$_vosrc' yuv2rgb_mlib.c'
1769 else 1785 else
1770 _mlib='#undef HAVE_MLIB' 1786 _mlib='#undef HAVE_MLIB'
1787 _mlibinc= _mliblib=
1771 fi 1788 fi
1772 1789
1773 # --- 1790 # ---
1774 1791
1775 if [ $_gl = yes ]; then 1792 if [ $_gl = yes ]; then
1928 ESD_LIB = $_esdlib 1945 ESD_LIB = $_esdlib
1929 ARCH_LIBS = $_archlibs 1946 ARCH_LIBS = $_archlibs
1930 STREAM_SRCS = $_streamingsrcs 1947 STREAM_SRCS = $_streamingsrcs
1931 DECORE_LIBS = $_decorelibs 1948 DECORE_LIBS = $_decorelibs
1932 DIVX4LINUX=$_divx4linux 1949 DIVX4LINUX=$_divx4linux
1950 MLIB_INC = $_mlibinc
1951 MLIB_LIB = $_mliblib
1933 1952
1934 # --- Some stuff for autoconfigure ---- 1953 # --- Some stuff for autoconfigure ----
1935 $_target_arch 1954 $_target_arch
1936 $_confcygwin 1955 $_confcygwin
1937 TARGET_CPU=$iproc 1956 TARGET_CPU=$iproc
2105 $_mmx2 // only define if you have MMX2 (Athlon/PIII/4/CelII) 2124 $_mmx2 // only define if you have MMX2 (Athlon/PIII/4/CelII)
2106 $_ssem // only define if you have SSE (Intel Pentium III/4 or Celeron II) 2125 $_ssem // only define if you have SSE (Intel Pentium III/4 or Celeron II)
2107 2126
2108 #ifdef HAVE_MMX 2127 #ifdef HAVE_MMX
2109 #define USE_MMX_IDCT 2128 #define USE_MMX_IDCT
2129 #endif
2130
2131 /* libmpeg2 uses a different feature test macro for mediaLib */
2132 #ifdef HAVE_MLIB
2133 #define LIBMPEG2_MLIB
2110 #endif 2134 #endif
2111 2135
2112 /* libvo options */ 2136 /* libvo options */
2113 #define SCREEN_SIZE_X $_x 2137 #define SCREEN_SIZE_X $_x
2114 #define SCREEN_SIZE_Y $_y 2138 #define SCREEN_SIZE_Y $_y