Mercurial > mplayer.hg
comparison configure @ 1451:267264560623
Start OpenBSD support and fix detection of older GNU as.
author | atmos4 |
---|---|
date | Mon, 06 Aug 2001 14:03:37 +0000 |
parents | 50280cb168ea |
children | 5cc5d09fc9d4 |
comparison
equal
deleted
inserted
replaced
1450:50280cb168ea | 1451:267264560623 |
---|---|
243 echo "You can get detailed help on configure with: $0 --help" | 243 echo "You can get detailed help on configure with: $0 --help" |
244 echo "Please wait while ./configure discovers your software and hardware environment!" | 244 echo "Please wait while ./configure discovers your software and hardware environment!" |
245 | 245 |
246 # Determine our OS name and CPU architecture | 246 # Determine our OS name and CPU architecture |
247 if [ "$_target" = "" ]; then | 247 if [ "$_target" = "" ]; then |
248 system_name=`uname -s 2>&1` # name of operating system: Linux, FreeBSD, NetBSD, SunOS | 248 system_name=`uname -s 2>&1` # name of operating system: Linux, FreeBSD, NetBSD, OpenBSD, SunOS |
249 host_arch=`uname -p 2>&1` # host's instruction set or processor type | 249 host_arch=`uname -p 2>&1` # host's instruction set or processor type |
250 | 250 |
251 case "$host_arch" in | 251 case "$host_arch" in |
252 i386|sparc|ppc|alpha|arm) | 252 i386|sparc|ppc|alpha|arm) |
253 # fine, uname -p output looks good, it has returned | 253 # fine, uname -p output looks good, it has returned |
283 echo "Detected host architecture: $host_arch" | 283 echo "Detected host architecture: $host_arch" |
284 | 284 |
285 # Determine OS dependent libs | 285 # Determine OS dependent libs |
286 _confcygwin="TARGET_CYGWIN=no" | 286 _confcygwin="TARGET_CYGWIN=no" |
287 _confwin32= | 287 _confwin32= |
288 if [ "$system_name" = "FreeBSD" ]; then | 288 if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then |
289 _archlibs="-rdynamic -pthread" | 289 _archlibs="-rdynamic -pthread" |
290 elif [ `echo $system_name | sed 's/[cC][yY][gG][wW][iI][nN].*/CYGWIN/'` = "CYGWIN" ]; then | 290 elif [ `echo $system_name | sed 's/[cC][yY][gG][wW][iI][nN].*/CYGWIN/'` = "CYGWIN" ]; then |
291 _confcygwin="TARGET_CYGWIN=yes" | 291 _confcygwin="TARGET_CYGWIN=yes" |
292 _confwin32="#define WIN32" | 292 _confwin32="#define WIN32" |
293 _archlibs="-lpthread" | 293 _archlibs="-lpthread" |
718 | 718 |
719 | 719 |
720 | 720 |
721 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lvgagl -lvga > /dev/null 2>&1 && _svga=yes | 721 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lvgagl -lvga > /dev/null 2>&1 && _svga=yes |
722 | 722 |
723 if [ "$system_name" = "FreeBSD" ]; then | 723 if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then |
724 $_cc $TMPC -o $TMPO -pthread > /dev/null 2>&1 || \ | 724 $_cc $TMPC -o $TMPO -pthread > /dev/null 2>&1 || \ |
725 { echo "Lib pthread not found."; rm -f $TMPC $TMPO $TMPS ; exit 1; } | 725 { echo "Lib pthread not found."; rm -f $TMPC $TMPO $TMPS ; exit 1; } |
726 else | 726 else |
727 $_cc $TMPC -o $TMPO -lpthread > /dev/null 2>&1 || \ | 727 $_cc $TMPC -o $TMPO -lpthread > /dev/null 2>&1 || \ |
728 { echo "Lib pthread not found."; rm -f $TMPC $TMPO $TMPS ; exit 1; } | 728 { echo "Lib pthread not found."; rm -f $TMPC $TMPO $TMPS ; exit 1; } |
803 | 803 |
804 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms $_socklib > /dev/null 2>&1 && _xdpms=yes | 804 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms $_socklib > /dev/null 2>&1 && _xdpms=yes |
805 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXv $_socklib > /dev/null 2>&1 && _xv=yes | 805 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXv $_socklib > /dev/null 2>&1 && _xv=yes |
806 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm $_socklib > /dev/null 2>&1 && _vm=yes | 806 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm $_socklib > /dev/null 2>&1 && _vm=yes |
807 | 807 |
808 if [ "$system_name" = "FreeBSD" ]; then | 808 # this is not yet checked with OpenBSD - atmos |
809 if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then | |
809 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 && _gl=yes | 810 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 && _gl=yes |
810 else | 811 else |
811 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 && _gl=yes | 812 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 && _gl=yes |
812 fi | 813 fi |
813 | 814 |
814 cat > $TMPC << EOF | 815 cat > $TMPC << EOF |
815 #include <GL/gl.h> | 816 #include <GL/gl.h> |
816 int main( void ) { return 0; } | 817 int main( void ) { return 0; } |
817 EOF | 818 EOF |
818 if [ "$system_name" = "FreeBSD" ]; then | 819 # this is not yet checked with OpenBSD - atmos |
820 if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then | |
819 $_cc $_x11incdir $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 || \ | 821 $_cc $_x11incdir $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 || \ |
820 { _gl=no; echo "GL includes not found!";} | 822 { _gl=no; echo "GL includes not found!";} |
821 else | 823 else |
822 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 || \ | 824 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 || \ |
823 { _gl=no; echo "GL includes not found!";} | 825 { _gl=no; echo "GL includes not found!";} |
855 int main( void ) { return DEC_OPT_FRAME_311; } | 857 int main( void ) { return DEC_OPT_FRAME_311; } |
856 EOF | 858 EOF |
857 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -ldivxdecore > /dev/null 2>&1 || \ | 859 $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -ldivxdecore > /dev/null 2>&1 || \ |
858 { _divx4linux=no; echo "DivX4Linux includes (decore.h) not found!";} | 860 { _divx4linux=no; echo "DivX4Linux includes (decore.h) not found!";} |
859 | 861 |
860 | |
861 rm -f $TMPC $TMPO | 862 rm -f $TMPC $TMPO |
862 | 863 |
863 | 864 |
864 # --- | 865 # --- |
865 # check availability of some header files | 866 # check availability of some header files |
1221 if test x"$_datadir" = x; then | 1222 if test x"$_datadir" = x; then |
1222 _datadir=$_prefix"/share/mplayer" | 1223 _datadir=$_prefix"/share/mplayer" |
1223 fi | 1224 fi |
1224 | 1225 |
1225 # Checking assembler (_as) compatibility... | 1226 # Checking assembler (_as) compatibility... |
1226 as_version=`$_as --version 2>&1 | sed -n 's/^.*assembler \([0-9.]*\).*$/\1/p'` | 1227 # Added workaround for older as that reads from stdin by default - atmos |
1228 as_version=`echo '' | $_as -version 2>&1 | sed -n 's/^.*assembler \(version \)*\([0-9.]*\).*$/\2/p'` | |
1227 echo $_echo_n "Checking assembler ($_as) ... $as_version, $_echo_c" | 1229 echo $_echo_n "Checking assembler ($_as) ... $as_version, $_echo_c" |
1228 _pref_as_version='2.9.1' | 1230 _pref_as_version='2.9.1' |
1229 ### this test disabled, see _binutils test above! --A'rpi | 1231 ### this test disabled, see _binutils test above! --A'rpi |
1230 # cat > astest.S <<EOF | 1232 # cat > astest.S <<EOF |
1231 # filds -2(%ebp) | 1233 # filds -2(%ebp) |
1400 _streamingsrcs='asf_streaming.c network.c url.c http.c' | 1402 _streamingsrcs='asf_streaming.c network.c url.c http.c' |
1401 _streamingdef='#define STREAMING' | 1403 _streamingdef='#define STREAMING' |
1402 fi | 1404 fi |
1403 | 1405 |
1404 if [ $_gl = yes ]; then | 1406 if [ $_gl = yes ]; then |
1405 if [ "$system_name" = "FreeBSD" ]; then | 1407 # niot yet etsted on OpenBSD - atmos |
1408 if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then | |
1406 # Under XFree86 4.x GL port is poorly designed | 1409 # Under XFree86 4.x GL port is poorly designed |
1407 if [ -r /usr/X11R6/bin/XFree86 ]; then | 1410 if [ -r /usr/X11R6/bin/XFree86 ]; then |
1408 _gllib='-lGL -pthread' | 1411 _gllib='-lGL -pthread' |
1409 else | 1412 else |
1410 _gllib='-lGL' | 1413 _gllib='-lGL' |
2040 Config files successfully generated by ./configure ! | 2043 Config files successfully generated by ./configure ! |
2041 Please check config.h and config.mak files, tune CPU | 2044 Please check config.h and config.mak files, tune CPU |
2042 and optimization flags if you don't like these defaults. | 2045 and optimization flags if you don't like these defaults. |
2043 You can compile the program with 'make' and | 2046 You can compile the program with 'make' and |
2044 install with 'make install'. Good luck! | 2047 install with 'make install'. Good luck! |
2048 Note: On non-Linux systems you might need to use gmake | |
2049 instead of make. | |
2045 | 2050 |
2046 EOF | 2051 EOF |
2047 | 2052 |
2048 if [ $_mtrr = yes ]; then | 2053 if [ $_mtrr = yes ]; then |
2049 echo "Please check mtrr settings at /proc/mtrr (see DOCS/MTRR)" | 2054 echo "Please check mtrr settings at /proc/mtrr (see DOCS/MTRR)" |