1 Index: luarocks-2.2.2/configure
2 ===================================================================
3 --- luarocks-2.2.2.orig/configure
4 +++ luarocks-2.2.2/configure
5 @@ -388,18 +388,22 @@ then
8 echo_n "Configuring for system... "
11 - LUAROCKS_UNAME_S=`uname -s`
13 - die "Could not determine operating system. 'uname -s' failed."
14 +if [ -z "$LUAROCKS_UNAME_S" ]; then
17 + LUAROCKS_UNAME_S=`uname -s`
19 + die "Could not determine operating system. 'uname -s' failed."
22 echo_n "Configuring for architecture... "
25 - LUAROCKS_UNAME_M=`uname -m`
27 - die "Could not determine processor architecture. 'uname -m' failed."
28 +if [ -z "$LUAROCKS_UNAME_M" ]; then
31 + LUAROCKS_UNAME_M=`uname -m`
33 + die "Could not determine processor architecture. 'uname -m' failed."
37 for v in 5.1 5.2 5.3; do