summaryrefslogtreecommitdiff
blob: 7761a3e5e76db20499653f1a5c54886ae3575c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Nathan Phillip Brink <binki@gentoo.org>
Subject: Do not ignore the --host argument passed to the fake ./configure.

--- a/configure
+++ b/configure
@@ -10,6 +10,7 @@
     -version | --version | --versio | --versi | --vers)
       quick_fwd=yes
       break ;;
+    --host=*)
+      rev=$(expr "${arg}" : '[^=]*=\(.*\)')
+      ;;
-    *)
-      break ;;
   esac
@@ -18,8 +21,10 @@
 then
   support/configure $*
 else
-  echo "retrieving the system name, type and OS release..."
-  rev=`support/config.guess`
+  if ! test "${rev}"; then
+    echo "retrieving the system name, type and OS release..."
+    rev=`support/config.guess`
+  fi
   if test "${rev}" 		# test for no output
   then
     echo "  your system seems to be ${rev}."