Skip to content

Commit be77071

Browse files
committed
---
yaml --- r: 2419 b: refs/heads/master c: f8514d9 h: refs/heads/master i: 2417: c68b25a 2415: 47f048c v: v3
1 parent 273c50e commit be77071

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 106216d67358f13f4be296ee59f711a1f1566bbe
2+
refs/heads/master: f8514d95d07e48f766ee7a4b8d65d5d5256466f6

trunk/configure

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,17 @@ need_cmd sed
127127
msg "inspecting environment"
128128

129129
CFG_OSTYPE=$(uname -s)
130+
130131
CFG_CPUTYPE=$(uname -m)
132+
if [ $CFG_OSTYPE = Darwin -a $CFG_CPUTYPE = i386 ]
133+
then
134+
# Darwin's `uname -s` lies and always returns i386. We have to use sysctl
135+
# instead.
136+
if sysctl hw.optional.x86_64 | grep ': 1'
137+
then
138+
CFG_CPUTYPE=x86_64
139+
fi
140+
fi
131141

132142
CFG_SELF=$(echo $0 | tr '\\' '/')
133143
CFG_SRC_DIR=${CFG_SELF%${CFG_SELF##*/}}

0 commit comments

Comments
 (0)