summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorlgb <lgb@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-30 20:23:20 +0000
committerlgb <lgb@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-30 20:23:20 +0000
commitd50afe4dd6c3181c568d5982e628040a39df9bfe (patch)
tree88a3d0bcfb547c0292c93bd5599c4b49eb1bc24a /configure
parent23331fac18bc8f258c6d76e3c3e21fd75cb93aef (diff)
downloadmpv-d50afe4dd6c3181c568d5982e628040a39df9bfe.tar.bz2
mpv-d50afe4dd6c3181c568d5982e628040a39df9bfe.tar.xz
Support for --prefix option
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@913 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 0ef102a171..4cc8c2f963 100755
--- a/configure
+++ b/configure
@@ -6,6 +6,9 @@
#
# Changes in reversed order:
#
+# 2001/05/40 by LGB
+# - added --prefix support
+#
# 2001/05/22 by Nick Kurshev
# - added definition of CPU clone
#
@@ -79,6 +82,7 @@ usage: $0 [options]
params:
--cc use this C compiler to build MPlayer [gcc]
+ --prefix=DIR use this prefix for installing mplayer [/usr/local]
--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]
@@ -531,6 +535,8 @@ rm -f $TMPC $TMPO
# check for the parameters.
+_prefix="/usr/local"
+
for ac_option
do
case "$ac_option" in
@@ -715,6 +721,9 @@ do
_y=`echo $ac_option | cut -d '=' -f 2`
;;
--with-x11libdir=*)
+ ;;
+ --prefix=*)
+ _prefix=`echo $ac_option | cut -d '=' -f 2`
;;
--cc=*)
;;
@@ -731,6 +740,7 @@ fi
echo -n "Kernel: "
uname -a
echo "Using C compiler: $_cc"
+echo "Install prefix: $_prefix"
$_cc -v
as --version | head -n 1
echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )"
@@ -883,6 +893,7 @@ CSS_INC = $_cssinc
WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\"
DS_DEP = $_dshowdep
DS_LIB = $_dshowlib
+prefix = $_prefix
EOF
# echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak