1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/config.{guess,sub}: better guess on darwin 10 .

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-11 12:38:15 +00:00
parent 2620a84070
commit 1ce66c6203
2 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Fri Sep 11 21:38:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/config.{guess,sub}: better guess on darwin 10 .
Fri Sep 11 18:51:57 2009 NARUSE, Yui <naruse@ruby-lang.org> Fri Sep 11 18:51:57 2009 NARUSE, Yui <naruse@ruby-lang.org>
* test/fileutils: use require_relative to require fileasserts. * test/fileutils: use require_relative to require fileasserts.

View file

@ -202,6 +202,29 @@ if test ${target_archs+set}; then
CFLAGS="$CFLAGS ${ARCH_FLAG}" CFLAGS="$CFLAGS ${ARCH_FLAG}"
LDFLAGS="${LDFLAGS+$LDFLAGS }${ARCH_FLAG}" LDFLAGS="${LDFLAGS+$LDFLAGS }${ARCH_FLAG}"
else else
if test x"$target_alias" = x; then
case "$target_os" in
when(darwin*)
AC_MSG_CHECKING([for real target cpu])
target_cpu=`$CC -E - 2>/dev/null <<EOF |
#ifdef __x86_64__
"processor-name=x86_64"
#endif
#ifdef __i386__
"processor-name=i386"
#endif
#ifdef __ppc__
"processor-name=powerpc"
#endif
#ifdef __ppc64__
"processor-name=powerpc64"
#endif
EOF
sed -n 's/^"processor-name=\(.*\)"/\1/p'`
AC_MSG_RESULT([$target_cpu])
;;
esac
fi
target_archs="$target_cpu" target_archs="$target_cpu"
fi fi