summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-20 00:01:09 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-20 00:01:09 +0000
commit7882ea9badf366fbb6f06b17ea6321c54c7c8466 (patch)
tree04f4fb162431a7f43a8f29b1a5bc64575fc72436 /configure
parent56c90f534975a3bb9cab5c0b1abda9010f0c50c1 (diff)
downloadmpv-7882ea9badf366fbb6f06b17ea6321c54c7c8466.tar.bz2
mpv-7882ea9badf366fbb6f06b17ea6321c54c7c8466.tar.xz
Applied DATADIR patch by Vladimir Kushnir
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1354 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 850ec83e4d..fc45f95a7e 100755
--- a/configure
+++ b/configure
@@ -116,6 +116,8 @@ usage: $0 [options]
params:
--cc use this C compiler to build MPlayer [gcc]
--prefix=DIR use this prefix for installing mplayer [/usr/local]
+ --datadir=DIR use this prefix for installing machine independent
+ data [/usr/local/share/mplayer]
--enable-debug[=1-3] compile debugging information into mplayer [disable]
--enable-profile compile profiling information into mplayer [disable]
--enable-mmx build with mmx support [autodetect]
@@ -915,6 +917,7 @@ $_cc $_extraincdir $_extralibdir -o $TMPO -lesd $TMPC 2> /dev/null || { _esd=no;
# check for the parameters.
_prefix="/usr/local"
+_datadir=$_prefix"/share/mplayer"
for ac_option
do
@@ -1141,6 +1144,9 @@ do
--prefix=*)
_prefix=`echo $ac_option | cut -d '=' -f 2`
;;
+ --datadir=*)
+ _datadir=`echo $ac_option | cut -d '=' -f 2`
+ ;;
--cc=*)
;;
--as=*)
@@ -1249,6 +1255,7 @@ fi
# to screen.
echo "Install prefix: $_prefix"
+echo "Data directory: $_datadir"
if [ "$host_arch" = i386 ]; then
echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )"
echo "Checking for cpu type ... $pname"
@@ -1722,6 +1729,9 @@ cat > $CCONF << EOF
/* -------- Generated by ./configure ----------- */
+/* Common data directory (for fonts, etc) */
+#define DATADIR "$_datadir"
+
/* Define for using new DivX4Linux library, instead of open-source OpenDivX */
/* You have to change DECORE_LIBS in config.mak too! */
#undef NEW_DECORE