diff options
author | Eugene Sandulenko | 2008-01-31 12:20:47 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2008-01-31 12:20:47 +0000 |
commit | 2f0ddd4ba39029a18ce05462ef8aeb5e67791f9c (patch) | |
tree | cf17016657affbe835e18f9b488a27e226474788 | |
parent | ccc0f6b92d9295e04b4b701a19e8bb125338c6be (diff) | |
download | scummvm-rg350-2f0ddd4ba39029a18ce05462ef8aeb5e67791f9c.tar.gz scummvm-rg350-2f0ddd4ba39029a18ce05462ef8aeb5e67791f9c.tar.bz2 scummvm-rg350-2f0ddd4ba39029a18ce05462ef8aeb5e67791f9c.zip |
Patch #1880781: "BeOS port for scummvm"
svn-id: r30715
-rwxr-xr-x | configure | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -961,9 +961,16 @@ echo "$_have_x86" echo_n "Checking hosttype... " echo $_host_os case $_host_os in - linux* | uclinux* | openbsd* | freebsd* | netbsd* | bsd* | sunos* | hpux* | beos*) + linux* | uclinux* | openbsd* | freebsd* | netbsd* | bsd* | sunos* | hpux*) DEFINES="$DEFINES -DUNIX" ;; + beos*) + DEFINES="$DEFINES -DUNIX -DSYSTEM_NOT_SUPPORTING_D_TYPE" + LIBS="$LIBS -lbind -lsocket" + type_1_byte='char' + type_2_byte='short' + type_4_byte='long' + ;; solaris*) DEFINES="$DEFINES -DUNIX -DSYSTEM_NOT_SUPPORTING_D_TYPE" ;; @@ -1272,6 +1279,11 @@ else fi # +# Check for math lib +cc_check $LDFLAGS $CXXFLAGS -lm && LDFLAGS="$LDFLAGS -lm" +# + +# # Check for Ogg Vorbis # echocheck "Ogg Vorbis" @@ -1282,7 +1294,7 @@ if test "$_vorbis" = auto ; then int main(void) { vorbis_packet_blocksize(0,0); return 0; } EOF cc_check $LDFLAGS $CXXFLAGS $OGG_CFLAGS $OGG_LIBS $VORBIS_CFLAGS $VORBIS_LIBS \ - -lvorbisfile -lvorbis -logg -lm && _vorbis=yes + -lvorbisfile -lvorbis -logg && _vorbis=yes fi if test "$_vorbis" = yes ; then _def_vorbis='#define USE_VORBIS' @@ -1334,7 +1346,7 @@ if test "$_flac" = auto ; then int main(void) { return FLAC__STREAM_SYNC_LEN >> 30; /* guaranteed to be 0 */ } EOF cc_check $LDFLAGS $CXXFLAGS $FLAC_CFLAGS $FLAC_LIBS $OGG_CFLAGS $OGG_LIBS \ - -lFLAC -logg -lm && _flac=yes + -lFLAC -logg && _flac=yes fi if test "$_flac" = yes ; then _def_flac='#define USE_FLAC' |