Mercurial > mplayer.hg
comparison configure @ 1182:40ec53d0f207
freebsd fix
author | arpi_esp |
---|---|
date | Thu, 21 Jun 2001 22:28:50 +0000 |
parents | 8b7c7d9aa20a |
children | 7d30b57b6187 |
comparison
equal
deleted
inserted
replaced
1181:27374756fc40 | 1182:40ec53d0f207 |
---|---|
660 #include <X11/Xlib.h> | 660 #include <X11/Xlib.h> |
661 #include <X11/extensions/xf86dga.h> | 661 #include <X11/extensions/xf86dga.h> |
662 int main (void) { return 0;} | 662 int main (void) { return 0;} |
663 EOF | 663 EOF |
664 | 664 |
665 $_cc -I/usr/X11R6/unclude $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm $_socklib > /dev/null 2>&1 && _dga=yes | 665 $_cc $_x11incdir $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm $_socklib > /dev/null 2>&1 && _dga=yes |
666 # Note: the -lXxf86vm library is the VideoMode extension and though it's | 666 # Note: the -lXxf86vm library is the VideoMode extension and though it's |
667 # not needed for DGA, AFAIK every distribution packages together with DGA | 667 # not needed for DGA, AFAIK every distribution packages together with DGA |
668 # stuffs named 'X extensions' or something similar. This check can be usefull | 668 # stuffs named 'X extensions' or something similar. This check can be usefull |
669 # for further mplayer versions to set resolution by mplayer itself. | 669 # for further mplayer versions to set resolution by mplayer itself. |
670 # If you run into problems, remove '-lXxf86vm'. | 670 # If you run into problems, remove '-lXxf86vm'. |
1273 else | 1273 else |
1274 if test -z "$CFLAGS"; then | 1274 if test -z "$CFLAGS"; then |
1275 CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer" | 1275 CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer" |
1276 fi | 1276 fi |
1277 fi | 1277 fi |
1278 # Under FreeBSD (maybe other systems as well?) we have to add to CFLAGS | |
1279 # for MT applications: | |
1280 if [ "$system_name" = "FreeBSD" ]; then | |
1281 CFLAGS="$CFLAGS -D_THREAD_SAFE" | |
1282 fi | |
1283 | |
1278 echo | 1284 echo |
1279 echo "Creating $MCONF" | 1285 echo "Creating $MCONF" |
1280 cat > $MCONF << EOF | 1286 cat > $MCONF << EOF |
1281 | 1287 |
1282 # -------- Generated by ./configure ----------- | 1288 # -------- Generated by ./configure ----------- |