1 dnl Copyright 2001,2002,2003,2004,2005,2006,2008 Free Software Foundation, Inc.
3 dnl This file is part of GNU Radio
5 dnl GNU Radio is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 3, or (at your option)
10 dnl GNU Radio is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with GNU Radio; see the file COPYING. If not, write to
17 dnl the Free Software Foundation, Inc., 51 Franklin Street,
18 dnl Boston, MA 02110-1301, USA.
20 AC_DEFUN([GRC_GCELL],[
24 dnl Don't do gcell if omnithread skipped
25 GRC_CHECK_DEPENDENCY(gcell, omnithread)
27 dnl If execution gets to here, $passed will be:
28 dnl with : if the --with code didn't error out
29 dnl yes : if the --enable code passed muster and all dependencies are met
31 if test $passed = yes; then
32 dnl Don't build gcell if host_cpu isn't powerpc
33 AC_MSG_CHECKING([whether host_cpu is powerpc*])
44 dnl Don't build gcell if we can't find spu-gcc.
45 AC_CHECK_PROG([SPU_GCC_PROG],[spu-gcc],[yes],[no])
46 if test $SPU_GCC_PROG = no; then
51 if test $passed != with; then
52 dnl how and where to find INCLUDES and LA
53 gcell_INCLUDES="-I\${abs_top_srcdir}/gcell/src/include \
54 -I\${abs_top_srcdir}/gcell/src/lib/runtime \
55 -I\${abs_top_srcdir}/gcell/src/lib/general \
56 -I\${abs_top_srcdir}/gcell/src/lib/wrapper"
57 gcell_LA="\${abs_top_builddir}/gcell/src/lib/libgcell.la"
58 gcell_spu_INCLUDES="-I\${abs_top_srcdir}/gcell/src/include/spu \
59 -I\${abs_top_srcdir}/gcell/src/include \
60 -I\${abs_top_srcdir}/gcell/src/lib/runtime/spu \
61 -I\${abs_top_srcdir}/gcell/src/lib/general/spu \
62 -I\${abs_top_srcdir}/gcell/src/lib/wrapper/spu"
63 gcell_spu_LA="\${abs_top_builddir}/gcell/src/lib/spu/libgcell_spu.a"
64 AC_SUBST(gcell_spu_INCLUDES)
65 AC_SUBST(gcell_spu_LA)
67 dnl kludge up initial swig dependency files
68 AC_CONFIG_COMMANDS([swig_gcell_deps], [
69 touch gr-gcell/src/gcell.d
77 gcell/src/include/Makefile \
78 gcell/src/include/spu/Makefile \
79 gcell/src/lib/Makefile \
80 gcell/src/lib/spu/Makefile \
81 gcell/src/lib/general/Makefile \
82 gcell/src/lib/wrapper/Makefile \
83 gcell/src/lib/runtime/Makefile \
84 gcell/src/apps/Makefile \
85 gcell/src/apps/spu/Makefile \
86 gcell/src/ibm/Makefile \
89 GRC_BUILD_CONDITIONAL(gcell)