summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2003-03-12 01:42:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-03-12 01:42:16 +0000
commit586bc7553ca90dee507afd950de64bbd2c6a80b5 (patch)
treebef303a1fd8635b35c9b4e52466fbf77adcaf742 /configure
parent2e7973bbe7c8c98acb0bd9cdd828a6f8cba02e98 (diff)
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 2 insertions, 4 deletions
diff --git a/configure b/configure
index 79a9b3e577..f36e92fa06 100755
--- a/configure
+++ b/configure
@@ -234,8 +234,7 @@ TARGET_OS=`( uname -s ) 2>&1`
# find source path
# XXX: we assume an absolute path is given when launching configure,
# except in './configure' case.
-source_path=${0%configure}
-source_path=${source_path%/}
+source_path="`echo $0 | sed -e 's#/configure##'`"
source_path_used="yes"
if test -z "$source_path" -o "$source_path" = "." ; then
source_path=`pwd`
@@ -745,8 +744,7 @@ if test "$lshared" = "yes" ; then
echo "PIC=-fPIC" >> config.mak
fi
echo "EXTRALIBS=$extralibs" >> config.mak
-echo -n "VERSION=" >>config.mak
-head $source_path/VERSION >>config.mak
+echo "VERSION=`head $source_path/VERSION`" >>config.mak
echo "" >>config.mak
# if you do not want to use encoders, disable that.
echo "#define CONFIG_ENCODERS 1" >> $TMPH