mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 12:30:11 +01:00
making configure a shell script not a bash one patch by (Roman Shaposhnick <rvs at sun dot com>)
Originally committed as revision 1665 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
committed by
Michael Niedermayer
parent
2e7973bbe7
commit
586bc7553c
6
configure
vendored
6
configure
vendored
@@ -234,8 +234,7 @@ TARGET_OS=`( uname -s ) 2>&1`
|
|||||||
# find source path
|
# find source path
|
||||||
# XXX: we assume an absolute path is given when launching configure,
|
# XXX: we assume an absolute path is given when launching configure,
|
||||||
# except in './configure' case.
|
# except in './configure' case.
|
||||||
source_path=${0%configure}
|
source_path="`echo $0 | sed -e 's#/configure##'`"
|
||||||
source_path=${source_path%/}
|
|
||||||
source_path_used="yes"
|
source_path_used="yes"
|
||||||
if test -z "$source_path" -o "$source_path" = "." ; then
|
if test -z "$source_path" -o "$source_path" = "." ; then
|
||||||
source_path=`pwd`
|
source_path=`pwd`
|
||||||
@@ -745,8 +744,7 @@ if test "$lshared" = "yes" ; then
|
|||||||
echo "PIC=-fPIC" >> config.mak
|
echo "PIC=-fPIC" >> config.mak
|
||||||
fi
|
fi
|
||||||
echo "EXTRALIBS=$extralibs" >> config.mak
|
echo "EXTRALIBS=$extralibs" >> config.mak
|
||||||
echo -n "VERSION=" >>config.mak
|
echo "VERSION=`head $source_path/VERSION`" >>config.mak
|
||||||
head $source_path/VERSION >>config.mak
|
|
||||||
echo "" >>config.mak
|
echo "" >>config.mak
|
||||||
# if you do not want to use encoders, disable that.
|
# if you do not want to use encoders, disable that.
|
||||||
echo "#define CONFIG_ENCODERS 1" >> $TMPH
|
echo "#define CONFIG_ENCODERS 1" >> $TMPH
|
||||||
|
|||||||
Reference in New Issue
Block a user