summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/config/gr_set_md_cpu.m4
diff options
context:
space:
mode:
authoreb2008-08-21 00:01:21 +0000
committereb2008-08-21 00:01:21 +0000
commit5c02ea03e1226ed706abeede426f0e1727f1ea25 (patch)
tree491f833ec749e2500b4ddc618896c9ae50b6ce09 /gr-howto-write-a-block/config/gr_set_md_cpu.m4
parentbb084b53d9f5d1dcf3c4ac2c5605352a2df6551f (diff)
downloadgnuradio-5c02ea03e1226ed706abeede426f0e1727f1ea25.tar.gz
gnuradio-5c02ea03e1226ed706abeede426f0e1727f1ea25.tar.bz2
gnuradio-5c02ea03e1226ed706abeede426f0e1727f1ea25.zip
Updated gr-howto-write-a-block; mostly the .m4 macros and configure.ac.
Also modified pkg.m4 to restore the FOO_INCLUDEDIR functionality and to add the FOO_CPPFLAGS variable for those times when you want only the -I, -D and -U flags from FOO_CFLAGS. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9362 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-howto-write-a-block/config/gr_set_md_cpu.m4')
-rw-r--r--gr-howto-write-a-block/config/gr_set_md_cpu.m418
1 files changed, 9 insertions, 9 deletions
diff --git a/gr-howto-write-a-block/config/gr_set_md_cpu.m4 b/gr-howto-write-a-block/config/gr_set_md_cpu.m4
index ebc1fad9f..b9c570ede 100644
--- a/gr-howto-write-a-block/config/gr_set_md_cpu.m4
+++ b/gr-howto-write-a-block/config/gr_set_md_cpu.m4
@@ -1,5 +1,5 @@
dnl
-dnl Copyright 2003 Free Software Foundation, Inc.
+dnl Copyright 2003,2008 Free Software Foundation, Inc.
dnl
dnl This file is part of GNU Radio
dnl
@@ -28,17 +28,17 @@ AC_DEFUN([GR_SET_MD_CPU],[
AC_MSG_CHECKING([for machine dependent speedups])
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 ;;
-# sparc) MD_CPU=sparc ;;
- *) MD_CPU=generic ;;
+ x86 | i[[3-7]]86) MD_CPU=x86 MD_SUBCPU=x86 ;;
+ x86_64) MD_CPU=x86 MD_SUBCPU=x86_64 ;;
+ powerpc*) MD_CPU=powerpc ;;
+ *) MD_CPU=generic ;;
esac
AC_MSG_RESULT($MD_CPU)
AC_SUBST(MD_CPU)
AC_SUBST(MD_SUBCPU)
- AM_CONDITIONAL(MD_CPU_x86, test $MD_CPU = x86)
- AM_CONDITIONAL(MD_SUBCPU_x86_64, test $MD_SUBCPU = x86_64)
- AM_CONDITIONAL(MD_CPU_generic, test $MD_CPU = generic)
+ AM_CONDITIONAL(MD_CPU_x86, test "$MD_CPU" = "x86")
+ AM_CONDITIONAL(MD_SUBCPU_x86_64, test "$MD_SUBCPU" = "x86_64")
+ AM_CONDITIONAL(MD_CPU_powerpc, test "$MD_CPU" = "powerpc")
+ AM_CONDITIONAL(MD_CPU_generic, test "$MD_CPU" = "generic")
])
-