Try to catch the case of a non-writable source directory before
running configure.
diff --git a/tools/wineinstall b/tools/wineinstall
index 9e5444e..c4af41a 100755
--- a/tools/wineinstall
+++ b/tools/wineinstall
@@ -183,6 +183,14 @@
}
fi
+ if [ ! -w . ]
+ then {
+ echo "The source directory is not writable. You probably extracted the sources as root."
+ echo "You should remove the source tree and extract it again as a normal user."
+ exit 1
+ }
+ fi
+
# check whether RPM installed, and if it is, remove any old wine rpm.
hash rpm &>/dev/null
RET=$?