|
Revision 3715
(checked in by jcorgan, 2 years ago)
|
Applied changeset r3714 on trunk to release branch.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
AC_DEFUN([GR_SET_MD_CPU],[ |
|---|
| 23 |
AC_REQUIRE([AC_CANONICAL_HOST]) |
|---|
| 24 |
AC_ARG_WITH(md-cpu, |
|---|
| 25 |
[ --with-md-cpu=ARCH set machine dependent speedups (auto)], |
|---|
| 26 |
[cf_with_md_cpu="$withval"], |
|---|
| 27 |
[cf_with_md_cpu="$host_cpu"]) |
|---|
| 28 |
|
|---|
| 29 |
AC_MSG_CHECKING([for machine dependent speedups]) |
|---|
| 30 |
case "$cf_with_md_cpu" in |
|---|
| 31 |
x86 | i[[3-7]]86) MD_CPU=x86 MD_SUBCPU=x86 ;; |
|---|
| 32 |
x86_64) MD_CPU=x86 MD_SUBCPU=x86_64 ;; |
|---|
| 33 |
|
|---|
| 34 |
*) MD_CPU=generic ;; |
|---|
| 35 |
esac |
|---|
| 36 |
AC_MSG_RESULT($MD_CPU) |
|---|
| 37 |
AC_SUBST(MD_CPU) |
|---|
| 38 |
AC_SUBST(MD_SUBCPU) |
|---|
| 39 |
|
|---|
| 40 |
AM_CONDITIONAL(MD_CPU_x86, test "$MD_CPU" = "x86") |
|---|
| 41 |
AM_CONDITIONAL(MD_SUBCPU_x86_64, test "$MD_SUBCPU" = "x86_64") |
|---|
| 42 |
AM_CONDITIONAL(MD_CPU_generic, test "$MD_CPU" = "generic") |
|---|
| 43 |
]) |
|---|