aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-08-24 16:02:39 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-08-24 16:02:39 +0000
commit23a65308e37e9193192cd004a69f787a5f7e2337 (patch)
treedf2719f1107d8bc4770f754c65d7bc521f1d7756 /configure
parentf5fe9d5f8ce09a01f6738f234935b270364b229e (diff)
downloadffmpeg-23a65308e37e9193192cd004a69f787a5f7e2337.tar.gz
man page installation support
Originally committed as revision 2145 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index fe98b91485..61218b2b1f 100755
--- a/configure
+++ b/configure
@@ -19,6 +19,7 @@ TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
# default parameters
prefix="/usr/local"
+mandir=""
cross_prefix=""
cc="gcc"
ar="ar"
@@ -264,6 +265,8 @@ for opt do
case "$opt" in
--prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
;;
+ --mandir=*) mandir=`echo $opt | cut -d '=' -f 2`
+ ;;
--source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
;;
--cross-prefix=*) cross_prefix=`echo $opt | cut -d '=' -f 2`
@@ -722,6 +725,10 @@ if test "$small" = "yes"; then
CFLAGS="$CFLAGS -Os"
fi
+if test x"$mandir" = x""; then
+mandir="${prefix}/man"
+fi
+
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
cat << EOF
@@ -732,6 +739,7 @@ EOF
echo "Standard options:"
echo " --help print this message"
echo " --prefix=PREFIX install in PREFIX [$prefix]"
+echo " --mandir=DIR man documentation in DIR [PREFIX/man]"
echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]"
echo " --enable-vorbis enable vorbis support via libvorbisenc [default=no]"
echo " --enable-faad enable faad support via libfaad [default=no]"
@@ -827,6 +835,7 @@ echo "# Automatically generated by configure - do not modify" > config.mak
echo "/* Automatically generated by configure - do not modify */" > $TMPH
echo "prefix=$prefix" >> config.mak
+echo "mandir=$mandir" >> config.mak
echo "MAKE=$make" >> config.mak
echo "CC=$cc" >> config.mak
echo "AR=$ar" >> config.mak