aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-07-15 23:01:52 +0000
committerDiego Biurrun <diego@biurrun.de>2006-07-15 23:01:52 +0000
commit84c22efdfb825370875763622e6a6747b956cab0 (patch)
tree8faed9204e364313d7d6d68c729b264701f74e86 /configure
parent2266e085c98bf5cdbff8cb2ae6f18ac9d84d6a0a (diff)
downloadffmpeg-84c22efdfb825370875763622e6a6747b956cab0.tar.gz
Create infrastructure to install shared and static libs into different places.
based on patch by VĂ­ctor Paesa wzrlpy at arsystel com Originally committed as revision 5755 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index eff8b7dc50..a8447cf1e3 100755
--- a/configure
+++ b/configure
@@ -26,6 +26,7 @@ show_help(){
echo " --log[=FILE|yes|no] log tests and output to FILE [config.err]"
echo " --prefix=PREFIX install in PREFIX [$PREFIX]"
echo " --libdir=DIR install libs in DIR [PREFIX/lib]"
+ echo " --shlibdir=DIR install shared libs in DIR [PREFIX/lib]"
echo " --incdir=DIR install includes in DIR [PREFIX/include/ffmpeg]"
echo " --mandir=DIR install man page in DIR [PREFIX/man]"
echo " --enable-mp3lame enable MP3 encoding via libmp3lame [default=no]"
@@ -324,6 +325,7 @@ logging="yes"
logfile="config.err"
PREFIX="/usr/local"
libdir='${PREFIX}/lib'
+shlibdir="$libdir"
incdir='${PREFIX}/include/ffmpeg'
mandir='${PREFIX}/man'
bindir='${PREFIX}/bin'
@@ -686,6 +688,8 @@ for opt do
;;
--libdir=*) libdir="$optval"; force_libdir=yes
;;
+ --shlibdir=*) shlibdir="$optval"
+ ;;
--incdir=*) incdir="$optval"
;;
--mandir=*) mandir="$optval"
@@ -1558,6 +1562,7 @@ echo "#define FFMPEG_CONFIGURATION "'"'"$FFMPEG_CONFIGURATION"'"' >> $TMPH
echo "PREFIX=$PREFIX" >> config.mak
echo "prefix=\$(DESTDIR)\${PREFIX}" >> config.mak
echo "libdir=\$(DESTDIR)$libdir" >> config.mak
+echo "shlibdir=\$(DESTDIR)$shlibdir" >> config.mak
echo "incdir=\$(DESTDIR)$incdir" >> config.mak
echo "bindir=\$(DESTDIR)$bindir" >> config.mak
echo "mandir=\$(DESTDIR)$mandir" >> config.mak