1 dnl Copyright 2001,2002,2003,2004,2005,2006,2007,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_GNURADIO_CORE],[
21 GRC_ENABLE(gnuradio-core)
23 GRC_WITH(gnuradio-core, [
24 dnl gnuradio-core has some extra defines if --with specified
25 gnuradio_core_SWIGDIRPATH="$gnuradio_core_INCLUDEDIR/swig"
26 gnuradio_core_I="$gnuradio_core_SWIGDIRPATH/gnuradio.i"
27 gnuradio_core_SWIG_INCLUDES="-I$gnuradio_core_SWIGDIRPATH"
28 gnuradio_core_PYDIRPATH=$pythondir
31 dnl Don't do gnuradio-core if gruel or omnithread skipped
32 GRC_CHECK_DEPENDENCY(gnuradio-core, gruel)
33 GRC_CHECK_DEPENDENCY(gnuradio-core, omnithread)
35 dnl If execution gets to here, $passed will be:
36 dnl with : if the --with code didn't error out
37 dnl yes : if the --enable code passed muster and all dependencies are met
39 if test $passed != with; then
40 dnl how and where to find INCLUDES and LA and such
41 gnuradio_core_INCLUDES="\
42 -I\${abs_top_srcdir}/gnuradio-core/src/lib/runtime \
43 -I\${abs_top_srcdir}/gnuradio-core/src/lib/general \
44 -I\${abs_top_builddir}/gnuradio-core/src/lib/general \
45 -I\${abs_top_srcdir}/gnuradio-core/src/lib/gengen \
46 -I\${abs_top_builddir}/gnuradio-core/src/lib/gengen \
47 -I\${abs_top_srcdir}/gnuradio-core/src/lib/filter \
48 -I\${abs_top_builddir}/gnuradio-core/src/lib/filter \
49 -I\${abs_top_srcdir}/gnuradio-core/src/lib/reed-solomon \
50 -I\${abs_top_srcdir}/gnuradio-core/src/lib/viterbi \
51 -I\${abs_top_srcdir}/gnuradio-core/src/lib/io \
52 -I\${abs_top_srcdir}/gnuradio-core/src/lib/g72x \
53 -I\${abs_top_srcdir}/gnuradio-core/src/lib/swig \
54 -I\${abs_top_builddir}/gnuradio-core/src/lib/swig \
56 gnuradio_core_LA="\${abs_top_builddir}/gnuradio-core/src/lib/libgnuradio-core.la"
57 gnuradio_core_I="\${abs_top_srcdir}/gnuradio-core/src/lib/swig/gnuradio.i"
58 gnuradio_core_LIBDIRPATH="\${abs_top_builddir}/gnuradio-core/src/lib:\${abs_top_builddir}/gnuradio-core/src/lib/.libs"
59 gnuradio_core_SWIGDIRPATH="\${abs_top_builddir}/gnuradio-core/src/lib/swig:\${abs_top_builddir}/gnuradio-core/src/lib/swig/.libs:\${abs_top_srcdir}/gnuradio-core/src/lib/swig"
60 gnuradio_core_PYDIRPATH="\${abs_top_srcdir}/gnuradio-core/src/python"
62 dnl kludge up initial swig dependency files
63 AC_CONFIG_COMMANDS([swig_deps], [
64 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_runtime.d
65 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_general.d
66 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_gengen.d
67 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_filter.d
68 touch gnuradio-core/src/lib/swig/gnuradio_swig_py_io.d
72 dnl other externally-required gnuradio-core variables
73 AC_SUBST(gnuradio_core_I)
74 AC_SUBST(gnuradio_core_SWIGDIRPATH)
75 AC_SUBST(gnuradio_core_PYDIRPATH)
78 gnuradio-core/Makefile
79 gnuradio-core/gnuradio-core.pc \
80 gnuradio-core/doc/Doxyfile \
81 gnuradio-core/doc/Makefile \
82 gnuradio-core/doc/other/Makefile \
83 gnuradio-core/doc/xml-swig/Makefile \
84 gnuradio-core/src/Makefile \
85 gnuradio-core/src/gen_interpolator_taps/Makefile \
86 gnuradio-core/src/lib/Makefile \
87 gnuradio-core/src/lib/filter/Makefile \
88 gnuradio-core/src/lib/g72x/Makefile \
89 gnuradio-core/src/lib/general/Makefile \
90 gnuradio-core/src/lib/general/gr_prefix.cc \
91 gnuradio-core/src/lib/gengen/Makefile \
92 gnuradio-core/src/lib/io/Makefile \
93 gnuradio-core/src/lib/missing/Makefile \
94 gnuradio-core/src/lib/reed-solomon/Makefile \
95 gnuradio-core/src/lib/viterbi/Makefile \
96 gnuradio-core/src/lib/runtime/Makefile \
97 gnuradio-core/src/lib/swig/Makefile \
98 gnuradio-core/src/python/Makefile \
99 gnuradio-core/src/python/bin/Makefile \
100 gnuradio-core/src/python/gnuradio/Makefile \
101 gnuradio-core/src/python/gnuradio/blks2/Makefile \
102 gnuradio-core/src/python/gnuradio/blks2impl/Makefile \
103 gnuradio-core/src/python/gnuradio/gr/Makefile \
104 gnuradio-core/src/python/gnuradio/gr/run_tests \
105 gnuradio-core/src/python/gnuradio/gru/Makefile \
106 gnuradio-core/src/python/gnuradio/gruimpl/Makefile \
107 gnuradio-core/src/python/gnuradio/vocoder/Makefile \
108 gnuradio-core/src/tests/Makefile \
109 gnuradio-core/src/utils/Makefile \
112 GRC_BUILD_CONDITIONAL(gnuradio-core, [
113 dnl run_tests is created from run_tests.in. Make it executable.
114 AC_CONFIG_COMMANDS([run_tests_core],[chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests])