summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-21 22:28:50 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-21 22:28:50 +0000
commit0a0e645207e4b356f397a4c2ca83eb4e5a1e1f0d (patch)
tree10202ab385bf67e9a1a9d5bfaf37b36e21b778f7 /configure
parentdfdb4ba3e91d9735341a729a3e3350f5e5d7d7b2 (diff)
downloadmpv-0a0e645207e4b356f397a4c2ca83eb4e5a1e1f0d.tar.bz2
mpv-0a0e645207e4b356f397a4c2ca83eb4e5a1e1f0d.tar.xz
freebsd fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1183 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index dca9e69df8..d98a1cb798 100755
--- a/configure
+++ b/configure
@@ -662,7 +662,7 @@ cat > $TMPC << EOF
int main (void) { return 0;}
EOF
-$_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
+$_cc $_x11incdir $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm $_socklib > /dev/null 2>&1 && _dga=yes
# Note: the -lXxf86vm library is the VideoMode extension and though it's
# not needed for DGA, AFAIK every distribution packages together with DGA
# stuffs named 'X extensions' or something similar. This check can be usefull
@@ -1275,6 +1275,12 @@ if test -z "$CFLAGS"; then
CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer"
fi
fi
+# Under FreeBSD (maybe other systems as well?) we have to add to CFLAGS
+# for MT applications:
+if [ "$system_name" = "FreeBSD" ]; then
+CFLAGS="$CFLAGS -D_THREAD_SAFE"
+fi
+
echo
echo "Creating $MCONF"
cat > $MCONF << EOF