summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-19 18:46:29 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-19 18:46:29 +0000
commit5d8d55574019f203c1e0849ba64d01b99ccc6d19 (patch)
treec2bbe110749bd63d03a83fa6140bd15c4e3d7bc0 /configure
parent03ad8d832350da3b1c2f490dc48b8d01cd825b45 (diff)
downloadmpv-5d8d55574019f203c1e0849ba64d01b99ccc6d19.tar.bz2
mpv-5d8d55574019f203c1e0849ba64d01b99ccc6d19.tar.xz
Remove "sdl-config: not found" error message during configure, when the system
has no SDL installed. Grab nanosleep from libposix4 on solaris (instead of librt), works on old solaris versions, too. Autodetect XDPMS: provide a "#define HAVE_XDPMS", so that C code can leave out DPMS stuff when DPMS is not available on the target platform. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1345 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index 0f62c70344..1a0e87825e 100755
--- a/configure
+++ b/configure
@@ -686,7 +686,7 @@ fi
# Atmosfear: added SDL versioncheck and autodetect; removed warnings.
_sdl=no
-if test ! -z "`$_sdlconfig --version 2>/dev/null`" ; then
+if test ! -z "`($_sdlconfig --version) 2>/dev/null`" ; then
if $_cc `$_sdlconfig --cflags` $TMPC -o $TMPO `$_sdlconfig --libs` > /dev/null 2>&1 ; then
_sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'`
if test "$_sdlversion" -gt 116 ; then
@@ -732,7 +732,7 @@ $_cc $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes
_kstat=no
$_cc $TMPC -o $TMPO -lkstat >/dev/null 2>&1 && _kstat=yes _archlibs="-lkstat $_archlibs"
-$_cc $TMPC -o $TMPO -lrt >/dev/null 2>&1 && _archlibs="-lrt $_archlibs"
+$_cc $TMPC -o $TMPO -lposix4 >/dev/null 2>&1 && _archlibs="-lposix4 $_archlibs"
_binutils=no
$_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes
@@ -1356,8 +1356,10 @@ fi
if [ $_x11 = yes ]; then
if [ $_xdpms = yes ]; then
_x11lib='-lX11 -lXext -lXdpms'
+ _have_xdpms='#define HAVE_XDPMS 1'
else
_x11lib='-lX11 -lXext'
+ _have_xdpms='#undef HAVE_XDPMS'
fi
fi
@@ -1860,6 +1862,7 @@ $_xmga
$_syncfb
$_fbdev
$_svga
+$_have_xdpms
#if defined(HAVE_GL)||defined(HAVE_X11)||defined(HAVE_XV)
#define X11_FULLSCREEN