0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

fixed DPMS and pthread detection

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3011 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-11-19 17:15:35 +00:00
parent 601e6288fb
commit ca3340782d

10
configure vendored
View File

@ -1092,12 +1092,12 @@ cat > $TMPC << EOF
#include <pthread.h>
int main(void) { (void) pthread_create (0, 0, 0, 0); return 0; }
EOF
if cc_check -lpthread ; then
if cc_check ; then # QNX
_ld_pthread=''
elif cc_check -lpthread ; then
_ld_pthread='-lpthread'
elif cc_check -pthread ; then
_ld_pthread='-pthread'
elif cc_check ; then # QNX
_ld_pthread=''
else
die "Lib pthread not found."
fi
@ -1292,7 +1292,9 @@ if test "$_x11" = yes ; then
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/extensions/dpms.h>
int main(void) { return 0; }
int main(void) {
(void) DPMSQueryExtension(0, 0, 0);
}
EOF
cc_check $_inc_x11 $_ld_x11 -lXdpms && _xdpms3=yes
fi