diff options
author | Michael | 2009-10-15 09:43:20 -0400 |
---|---|---|
committer | Michael | 2009-10-15 09:43:20 -0400 |
commit | 11cb05e10b5311bbaebfc67a6358d21fcd1b948d (patch) | |
tree | 12baf6d49efc472e46e1fe1e483a7cd089c27fc4 /config/gr_set_md_cpu.m4 | |
parent | cc5253b05a49d87a81f8510188c40196b0965fad (diff) | |
download | gnuradio-11cb05e10b5311bbaebfc67a6358d21fcd1b948d.tar.gz gnuradio-11cb05e10b5311bbaebfc67a6358d21fcd1b948d.tar.bz2 gnuradio-11cb05e10b5311bbaebfc67a6358d21fcd1b948d.zip |
OSX 10.6 x86_64 fixes for configure and libusb; Audio is next
Diffstat (limited to 'config/gr_set_md_cpu.m4')
-rw-r--r-- | config/gr_set_md_cpu.m4 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/config/gr_set_md_cpu.m4 b/config/gr_set_md_cpu.m4 index d8714c4a7..bb2862dee 100644 --- a/config/gr_set_md_cpu.m4 +++ b/config/gr_set_md_cpu.m4 @@ -50,8 +50,19 @@ AC_DEFUN([GR_SET_MD_CPU],[ AC_ARG_WITH(md-cpu, AC_HELP_STRING([--with-md-cpu=ARCH],[set machine dependent speedups (auto)]), [cf_with_md_cpu="$withval"], - [cf_with_md_cpu="$host_cpu"]) - + [ + dnl temporary fix for Darwin 10.6; $host_cpu is always "i386" no matter + dnl if the kernel is in 32-bit or 64-bit mode. + case "$host_os" in + darwin*) + cf_with_md_cpu=`uname -m` + ;; + *) + cf_with_md_cpu="$host_cpu" + ;; + esac + ]) + AC_MSG_RESULT($cf_with_md_cpu) case "$cf_with_md_cpu" in x86 | i[[3-7]]86) MD_CPU=x86 MD_SUBCPU=x86 ;; x86_64) MD_CPU=x86 MD_SUBCPU=x86_64 ;; |