aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2004-04-06 20:04:05 +0000
committerMax Horn2004-04-06 20:04:05 +0000
commit36d667b2b599a8c58c7e0d52e47afc2a3f828ea0 (patch)
treeb08fb007938a564e52df0eb17552c23b15f5d848
parent2b9311aa26e3536eb7e22239f8ed5b42f2834065 (diff)
downloadscummvm-rg350-36d667b2b599a8c58c7e0d52e47afc2a3f828ea0.tar.gz
scummvm-rg350-36d667b2b599a8c58c7e0d52e47afc2a3f828ea0.tar.bz2
scummvm-rg350-36d667b2b599a8c58c7e0d52e47afc2a3f828ea0.zip
Fix building from external directory
svn-id: r13487
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index fe08867d90..3863080a1a 100755
--- a/configure
+++ b/configure
@@ -47,6 +47,8 @@ _ranlib=ranlib
_sdlconfig=sdl-config
_sdlpath="$PATH"
+_srcdir=`dirname $0`
+
# For cross compiling
_host=""
_host_cpu=""
@@ -337,7 +339,7 @@ if test "$_host" = "linupy"; then
_host_os=linux
_host_cpu=arm
else
- guessed_host=`./config.guess`
+ guessed_host=`$_srcdir/config.guess`
_host_cpu=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
_host_os=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
_host_vendor=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
@@ -932,7 +934,6 @@ EOF
# TODO: Add a better check than just looking for 'Makefile'
#
if test ! -f Makefile ; then
-_srcdir=`dirname $0`
echo "Creating Makefile"
cat > Makefile << EOF