From: jcorgan Date: Fri, 4 Aug 2006 19:59:27 +0000 (+0000) Subject: Implemented consistent naming scheme for build system component macros X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b949d474c61cc116eaf181e1c9e56a98e01fb74b;p=debian%2Fgnuradio Implemented consistent naming scheme for build system component macros (GRC_*) and filenames (grc_*.m4). Merged r3140:3159 from /gnuradio/branches/developers/jcorgan/m4mfixes into trunk. Fixes ticket #2. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3160 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/config/gr_atsc.m4 b/config/gr_atsc.m4 deleted file mode 100644 index e409667a..00000000 --- a/config/gr_atsc.m4 +++ /dev/null @@ -1,36 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_ATSC],[ - AC_CONFIG_SRCDIR([gr-atsc/src/lib/atsc.i]) - - AC_CONFIG_FILES([\ - gr-atsc/Makefile \ - gr-atsc/doc/Makefile \ - gr-atsc/src/Makefile \ - gr-atsc/src/lib/Makefile \ - gr-atsc/src/python/Makefile \ - gr-atsc/src/python/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_atsc], [chmod +x gr-atsc/src/python/run_tests]) - - subdirs="$subdirs gr-atsc" -]) diff --git a/config/gr_audio_alsa.m4 b/config/gr_audio_alsa.m4 deleted file mode 100644 index 2675ec9c..00000000 --- a/config/gr_audio_alsa.m4 +++ /dev/null @@ -1,41 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_AUDIO_ALSA],[ - AC_CONFIG_SRCDIR([gr-audio-alsa/src/audio_alsa.i]) - - succeeded=yes - PKG_CHECK_MODULES(ALSA, alsa >= 0.9,[],[succeeded=no]) - if test $succeeded = yes; then - LIBS="$LIBS $ALSA_LIBS" - - AC_CONFIG_FILES([\ - gr-audio-alsa/Makefile \ - gr-audio-alsa/src/Makefile \ - gr-audio-alsa/src/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_alsa], [chmod +x gr-audio-alsa/src/run_tests]) - subdirs="$subdirs gr-audio-alsa" - else - AC_MSG_RESULT([failed: $ALSA_PKG_ERRORS]) - failed="$failed gr-audio-alsa" - fi -]) diff --git a/config/gr_audio_jack.m4 b/config/gr_audio_jack.m4 deleted file mode 100644 index 628ce034..00000000 --- a/config/gr_audio_jack.m4 +++ /dev/null @@ -1,41 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_AUDIO_JACK],[ - AC_CONFIG_SRCDIR([gr-audio-jack/src/audio_jack.i]) - - succeeded=yes - PKG_CHECK_MODULES(JACK, jack >= 0.8,[],[succeeded=no]) - if test $succeeded = yes; then - LIBS="$LIBS $JACK_LIBS" - - AC_CONFIG_FILES([\ - gr-audio-jack/Makefile \ - gr-audio-jack/src/Makefile \ - gr-audio-jack/src/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_jack], [chmod +x gr-audio-jack/src/run_tests]) - subdirs="$subdirs gr-audio-jack" - else - AC_MSG_RESULT([failed: $JACK_PKG_ERRORS]) - failed="$failed gr-audio-jack" - fi -]) diff --git a/config/gr_audio_oss.m4 b/config/gr_audio_oss.m4 deleted file mode 100644 index c8dfebeb..00000000 --- a/config/gr_audio_oss.m4 +++ /dev/null @@ -1,45 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_AUDIO_OSS],[ - AC_CONFIG_SRCDIR([gr-audio-oss/src/audio_oss.i]) - - succeeded=yes - - dnl needed for NetBSD - dnl FIXME: conditionalize on NetBSD platform - dnl AC_HAVE_LIBRARY(ossaudio,[],[succeeded=no]) - - AC_CHECK_HEADER(sys/soundcard.h,[],[succeeded=no]) - if test $succeeded = yes; then - - AC_CONFIG_FILES([\ - gr-audio-oss/Makefile \ - gr-audio-oss/src/Makefile \ - gr-audio-oss/src/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_oss], [chmod +x gr-audio-oss/src/run_tests]) - subdirs="$subdirs gr-audio-oss" - else - AC_MSG_RESULT([failed: $OSS_PKG_ERRORS]) - failed="$failed gr-audio-oss" - fi -]) diff --git a/config/gr_audio_osx.m4 b/config/gr_audio_osx.m4 deleted file mode 100644 index 70a8f6b3..00000000 --- a/config/gr_audio_osx.m4 +++ /dev/null @@ -1,37 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_AUDIO_OSX],[ - AC_CONFIG_SRCDIR([gr-audio-osx/src/audio_osx.i]) - - succeeded=yes - MACOSX_AUDIOUNIT([],[succeeded=no]) - AC_CONFIG_FILES([\ - gr-audio-osx/Makefile \ - gr-audio-osx/src/Makefile \ - gr-audio-osx/src/run_tests \ - ]) - if test $succeeded = yes; then - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_osx], [chmod +x gr-audio-osx/src/run_tests]) - subdirs="$subdirs gr-audio-osx" - else - failed="$failed gr-audio-osx" - fi -]) diff --git a/config/gr_audio_portaudio.m4 b/config/gr_audio_portaudio.m4 deleted file mode 100644 index 2ad3719c..00000000 --- a/config/gr_audio_portaudio.m4 +++ /dev/null @@ -1,43 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_AUDIO_PORTAUDIO],[ - AC_CONFIG_SRCDIR([gr-audio-portaudio/src/audio_portaudio.i]) - - succeeded=yes - #PKG_CHECK_MODULES(PORTAUDIO, portaudio-2.0 >= 19,[],[succeeded=no]) - AC_HAVE_LIBRARY([portaudio], [], [succeeded=no]) - AC_CHECK_HEADER([portaudio.h], [], [succeeded=no]) - if test $succeeded = yes; then - LIBS="$LIBS -lportaudio" - - AC_CONFIG_FILES([\ - gr-audio-portaudio/Makefile \ - gr-audio-portaudio/src/Makefile \ - gr-audio-portaudio/src/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_portaudio], [chmod +x gr-audio-portaudio/src/run_tests]) - subdirs="$subdirs gr-audio-portaudio" - else - AC_MSG_RESULT([failed: $PORTAUDIO_PKG_ERRORS]) - failed="$failed gr-audio-portaudio" - fi -]) diff --git a/config/gr_audio_windows.m4 b/config/gr_audio_windows.m4 deleted file mode 100644 index d0a445e9..00000000 --- a/config/gr_audio_windows.m4 +++ /dev/null @@ -1,39 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_AUDIO_WINDOWS],[ - AC_CONFIG_SRCDIR([gr-audio-windows/src/audio_windows.i]) - - succeeded=yes - AC_HAVE_LIBRARY(winmm,[],[succeeded=no]) - - if test $succeeded = yes; then - AC_CONFIG_FILES([\ - gr-audio-windows/Makefile \ - gr-audio-windows/src/Makefile \ - gr-audio-windows/src/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_windows], [chmod +x gr-audio-windows/src/run_tests]) - subdirs="$subdirs gr-audio-windows" - else - failed="$failed gr-audio-windows" - fi -]) diff --git a/config/gr_comedi.m4 b/config/gr_comedi.m4 deleted file mode 100644 index 89ee30fd..00000000 --- a/config/gr_comedi.m4 +++ /dev/null @@ -1,41 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_COMEDI],[ - AC_CONFIG_SRCDIR([gr-comedi/src/comedi.i]) - - succeeded=yes - PKG_CHECK_MODULES(COMEDI, comedilib >= 0.7,[],[succeeded=no]) - if test $succeeded = yes; then - LIBS="$LIBS $COMEDI_LIBS" - - AC_CONFIG_FILES([\ - gr-comedi/Makefile \ - gr-comedi/src/Makefile \ - gr-comedi/src/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_comedi], [chmod +x gr-comedi/src/run_tests]) - subdirs="$subdirs gr-comedi" - else - AC_MSG_WARN([$COMEDI_PKG_ERRORS]) - failed="$failed gr-comedi" - fi -]) diff --git a/config/gr_error_correcting_codes.m4 b/config/gr_error_correcting_codes.m4 deleted file mode 100644 index 84d5560e..00000000 --- a/config/gr_error_correcting_codes.m4 +++ /dev/null @@ -1,38 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_ERROR_CORRECTING_CODES],[ - AC_CONFIG_SRCDIR([gr-error-correcting-codes/src/lib/ecc.i]) - - AC_CONFIG_FILES([\ - gr-error-correcting-codes/Makefile \ - gr-error-correcting-codes/src/Makefile \ - gr-error-correcting-codes/src/lib/Makefile \ - gr-error-correcting-codes/src/lib/libecc/Makefile \ - gr-error-correcting-codes/src/lib/libecc/mld/Makefile \ - gr-error-correcting-codes/src/lib/libecc/tests/Makefile \ - gr-error-correcting-codes/src/python/Makefile \ - gr-error-correcting-codes/src/python/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_error_correcting_codes], [chmod +x gr-error-correcting-codes/src/python/run_tests]) - - subdirs="$subdirs gr-error-correcting-codes" -]) diff --git a/config/gr_gnuradio_core.m4 b/config/gr_gnuradio_core.m4 deleted file mode 100644 index 661555ea..00000000 --- a/config/gr_gnuradio_core.m4 +++ /dev/null @@ -1,63 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_GNURADIO_CORE],[ - AC_CONFIG_SRCDIR([gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc]) - - AC_CONFIG_FILES([ \ - gnuradio-core/Makefile - gnuradio-core/gnuradio-core.pc \ - gnuradio-core/doc/Doxyfile \ - gnuradio-core/doc/Makefile \ - gnuradio-core/doc/other/Makefile \ - gnuradio-core/doc/xml/Makefile \ - gnuradio-core/src/Makefile \ - gnuradio-core/src/gen_interpolator_taps/Makefile \ - gnuradio-core/src/lib/Makefile \ - gnuradio-core/src/lib/filter/Makefile \ - gnuradio-core/src/lib/g72x/Makefile \ - gnuradio-core/src/lib/general/Makefile \ - gnuradio-core/src/lib/general/gr_prefix.cc \ - gnuradio-core/src/lib/io/Makefile \ - gnuradio-core/src/lib/missing/Makefile \ - gnuradio-core/src/lib/omnithread/Makefile \ - gnuradio-core/src/lib/reed-solomon/Makefile \ - gnuradio-core/src/lib/runtime/Makefile \ - gnuradio-core/src/lib/swig/Makefile \ - gnuradio-core/src/python/Makefile \ - gnuradio-core/src/python/bin/Makefile \ - gnuradio-core/src/python/gnuradio/Makefile \ - gnuradio-core/src/python/gnuradio/blks/Makefile \ - gnuradio-core/src/python/gnuradio/blksimpl/Makefile \ - gnuradio-core/src/python/gnuradio/gr/Makefile \ - gnuradio-core/src/python/gnuradio/gr/run_tests \ - gnuradio-core/src/python/gnuradio/gru/Makefile \ - gnuradio-core/src/python/gnuradio/gruimpl/Makefile \ - gnuradio-core/src/tests/Makefile \ - gnuradio-core/src/utils/Makefile \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_core], [chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests]) - - dnl kludge up initial swig dependency file - AC_CONFIG_COMMANDS([swig_deps], [touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d]) - - subdirs="$subdirs gnuradio-core" -]) diff --git a/config/gr_gnuradio_examples.m4 b/config/gr_gnuradio_examples.m4 deleted file mode 100644 index 6ab51a20..00000000 --- a/config/gr_gnuradio_examples.m4 +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -# -# This file is part of GNU Radio -# -# GNU Radio is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# GNU Radio is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Radio; see the file COPYING. If not, write to -# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_GNURADIO_EXAMPLES],[ - AC_CONFIG_SRCDIR([gnuradio-examples/README]) - - AC_CONFIG_FILES([\ - gnuradio-examples/Makefile \ - gnuradio-examples/python/Makefile \ - gnuradio-examples/python/audio/Makefile \ - gnuradio-examples/python/digital_voice/Makefile \ - gnuradio-examples/python/gmsk2/Makefile \ - gnuradio-examples/python/mc4020/Makefile \ - gnuradio-examples/python/usrp/Makefile \ - gnuradio-examples/python/multi_usrp/Makefile \ - ]) - - subdirs="$subdirs gnuradio-examples" -]) diff --git a/config/gr_gsm_fr_vocoder.m4 b/config/gr_gsm_fr_vocoder.m4 deleted file mode 100644 index 97408e9d..00000000 --- a/config/gr_gsm_fr_vocoder.m4 +++ /dev/null @@ -1,36 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_GSM_FR_VOCODER],[ - AC_CONFIG_SRCDIR([gr-gsm-fr-vocoder/src/lib/gsm_full_rate.i]) - - AC_CONFIG_FILES([\ - gr-gsm-fr-vocoder/Makefile \ - gr-gsm-fr-vocoder/src/Makefile \ - gr-gsm-fr-vocoder/src/lib/Makefile \ - gr-gsm-fr-vocoder/src/lib/gsm/Makefile \ - gr-gsm-fr-vocoder/src/python/Makefile \ - gr-gsm-fr-vocoder/src/python/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_gsm], [chmod +x gr-gsm-fr-vocoder/src/python/run_tests]) - - subdirs="$subdirs gr-gsm-fr-vocoder" -]) diff --git a/config/gr_pmt.m4 b/config/gr_pmt.m4 deleted file mode 100644 index 573f07dc..00000000 --- a/config/gr_pmt.m4 +++ /dev/null @@ -1,34 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_PMT],[ - AC_CONFIG_SRCDIR([pmt/src/lib/pmt.h]) - - AC_CONFIG_FILES([\ - pmt/Makefile \ - pmt/doc/Makefile \ - pmt/src/Makefile \ - pmt/src/lib/Makefile - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - dnl AC_CONFIG_COMMANDS([run_tests_pmt], [chmod +x pmt/src/python/run_tests]) - - subdirs="$subdirs pmt" -]) diff --git a/config/gr_radar.m4 b/config/gr_radar.m4 deleted file mode 100644 index b9a42d65..00000000 --- a/config/gr_radar.m4 +++ /dev/null @@ -1,36 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_RADAR],[ - AC_CONFIG_SRCDIR([gr-radar/src/python/usrp_rx_radar.py]) - - AC_CONFIG_FILES([\ - gr-radar/Makefile \ - gr-radar/doc/Makefile \ - gr-radar/src/Makefile \ - gr-radar/src/lib/Makefile \ - gr-radar/src/python/Makefile \ - gr-radar/src/python/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_radar], [chmod +x gr-radar/src/python/run_tests]) - - subdirs="$subdirs gr-radar" -]) diff --git a/config/gr_radio_astronomy.m4 b/config/gr_radio_astronomy.m4 deleted file mode 100644 index db0ca61f..00000000 --- a/config/gr_radio_astronomy.m4 +++ /dev/null @@ -1,35 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_RADIO_ASTRONOMY],[ - AC_CONFIG_SRCDIR([gr-radio-astronomy/src/lib/ra.i]) - - AC_CONFIG_FILES([\ - gr-radio-astronomy/Makefile \ - gr-radio-astronomy/src/Makefile \ - gr-radio-astronomy/src/lib/Makefile \ - gr-radio-astronomy/src/python/Makefile \ - gr-radio-astronomy/src/python/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_astronomy], [chmod +x gr-radio-astronomy/src/python/run_tests]) - - subdirs="$subdirs gr-radio-astronomy" -]) diff --git a/config/gr_usrp.m4 b/config/gr_usrp.m4 deleted file mode 100644 index a51d77ca..00000000 --- a/config/gr_usrp.m4 +++ /dev/null @@ -1,113 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_USRP_HW],[ - AC_CONFIG_SRCDIR([usrp/host/lib/usrp_prims.h]) - - AC_CHECK_PROG([XMLTO],[xmlto],[yes],[]) - AM_CONDITIONAL(HAS_XMLTO, test x$XMLTO = xyes) - - # gnulib. - # FIXME: this needs to fail gracefully and continue, not implemented yet - UTILS_FUNC_MKSTEMP - - succeeded=yes - dnl Checks for library functions. - USRP_LIBUSB([],[succeeded=no]) - USRP_SET_FUSB_TECHNIQUE([],[succeeded=no]) - - dnl check for firmware cross compilation tools - dnl check for SDCC 2.4.0 - USRP_SDCC([2.4.0],[],[succeeded=no]) - - AC_CHECK_FUNCS([getrusage sched_setscheduler],[],[succeeded=no]) - AC_CHECK_FUNCS([sigaction snprintf],[],[succeeded=no]) - - dnl we use these to handle possible byteswapping to and from the USRP. - AC_CHECK_HEADERS([byteswap.h],[],[succeeeded=no]) - AC_C_BIGENDIAN - - if test $succeeded = yes; then - dnl Define where to look for USRP includes - USRP_INCLUDES='-I$(top_srcdir)/host/lib -I$(top_srcdir)/firmware/include' - AC_SUBST(USRP_INCLUDES) - - USRP_DEFINES='' - AC_SUBST(USRP_DEFINES) - - DEFINES="$USRP_DEFINES" - AC_SUBST(DEFINES) - - AC_CONFIG_FILES([ \ - usrp/Makefile \ - usrp/usrp.pc \ - usrp/usrp.iss \ - usrp/doc/Doxyfile \ - usrp/doc/Makefile \ - usrp/doc/other/Makefile \ - usrp/host/Makefile \ - usrp/host/misc/Makefile \ - usrp/host/lib/Makefile \ - usrp/host/lib/std_paths.h \ - usrp/host/swig/Makefile \ - usrp/host/apps/Makefile \ - usrp/firmware/Makefile \ - usrp/firmware/include/Makefile \ - usrp/firmware/lib/Makefile \ - usrp/firmware/src/Makefile \ - usrp/firmware/src/common/Makefile \ - usrp/firmware/src/usrp2/Makefile \ - usrp/fpga/Makefile \ - usrp/fpga/rbf/Makefile \ - ]) - - subdirs="$subdirs usrp" - else - failed="$failed usrp" - fi -]) - -AC_DEFUN([GR_USRP],[ - AC_CONFIG_SRCDIR([gr-usrp/src/usrp1.i]) - - # Don't do gr-usrp if usrp failed - # There *has* to be a better way to check if a value is in a string - succeeded=yes - for dir in $failed - do - if test $dir = usrp; then - succeeded=no - fi - done - - if test $succeeded = yes; then - AC_CONFIG_FILES([\ - gr-usrp/Makefile \ - gr-usrp/src/Makefile \ - gr-usrp/src/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_usrp], [chmod +x gr-usrp/src/run_tests]) - - subdirs="$subdirs gr-usrp" - else - failed="$failed gr-usrp" - fi -]) diff --git a/config/gr_video_sdl.m4 b/config/gr_video_sdl.m4 deleted file mode 100644 index 2f524986..00000000 --- a/config/gr_video_sdl.m4 +++ /dev/null @@ -1,45 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_VIDEO_SDL],[ - AC_CONFIG_SRCDIR([gr-video-sdl/src/video_sdl.i]) - - succeeded=yes - - dnl Check for SDL - SDL_VERSION=1.2.0 - AM_PATH_SDL($SDL_VERSION,[],[succeeded=no]) - - if test $succeeded = yes; then - AM_CFLAGS="$AM_CFLAGS $SDL_CFLAGS" - AM_LDFLAGS="$AM_LDFLAGS $SDL_LIBS" - - AC_CONFIG_FILES([\ - gr-video-sdl/Makefile \ - gr-video-sdl/src/Makefile \ - gr-video-sdl/src/run_tests \ - ]) - - dnl run_tests is created from run_tests.in. Make it executable. - AC_CONFIG_COMMANDS([run_tests_sdl], [chmod +x gr-video-sdl/src/run_tests]) - subdirs="$subdirs gr-video-sdl" - else - failed="$failed gr-video-sdl" - fi -]) diff --git a/config/gr_wxgui.m4 b/config/gr_wxgui.m4 deleted file mode 100644 index 4ff56509..00000000 --- a/config/gr_wxgui.m4 +++ /dev/null @@ -1,33 +0,0 @@ -dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. -dnl -dnl This file is part of GNU Radio -dnl -dnl GNU Radio is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl GNU Radio is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with GNU Radio; see the file COPYING. If not, write to -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -dnl Boston, MA 02111-1307, USA. - -AC_DEFUN([GR_WXGUI],[ - AC_CONFIG_SRCDIR([gr-wxgui/src/python/stdgui.py]) - - # FIXME: Should we actually check for wxPython, even though - # this is a runtime requirement, not a compile/install time one? - - AC_CONFIG_FILES([ \ - gr-wxgui/Makefile \ - gr-wxgui/src/Makefile \ - gr-wxgui/src/python/Makefile \ - ]) - - subdirs="$subdirs gr-wxgui" -]) diff --git a/config/grc_gnuradio_core.m4 b/config/grc_gnuradio_core.m4 new file mode 100644 index 00000000..04d2e29d --- /dev/null +++ b/config/grc_gnuradio_core.m4 @@ -0,0 +1,63 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GNURADIO_CORE],[ + AC_CONFIG_SRCDIR([gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc]) + + AC_CONFIG_FILES([ \ + gnuradio-core/Makefile + gnuradio-core/gnuradio-core.pc \ + gnuradio-core/doc/Doxyfile \ + gnuradio-core/doc/Makefile \ + gnuradio-core/doc/other/Makefile \ + gnuradio-core/doc/xml/Makefile \ + gnuradio-core/src/Makefile \ + gnuradio-core/src/gen_interpolator_taps/Makefile \ + gnuradio-core/src/lib/Makefile \ + gnuradio-core/src/lib/filter/Makefile \ + gnuradio-core/src/lib/g72x/Makefile \ + gnuradio-core/src/lib/general/Makefile \ + gnuradio-core/src/lib/general/gr_prefix.cc \ + gnuradio-core/src/lib/io/Makefile \ + gnuradio-core/src/lib/missing/Makefile \ + gnuradio-core/src/lib/omnithread/Makefile \ + gnuradio-core/src/lib/reed-solomon/Makefile \ + gnuradio-core/src/lib/runtime/Makefile \ + gnuradio-core/src/lib/swig/Makefile \ + gnuradio-core/src/python/Makefile \ + gnuradio-core/src/python/bin/Makefile \ + gnuradio-core/src/python/gnuradio/Makefile \ + gnuradio-core/src/python/gnuradio/blks/Makefile \ + gnuradio-core/src/python/gnuradio/blksimpl/Makefile \ + gnuradio-core/src/python/gnuradio/gr/Makefile \ + gnuradio-core/src/python/gnuradio/gr/run_tests \ + gnuradio-core/src/python/gnuradio/gru/Makefile \ + gnuradio-core/src/python/gnuradio/gruimpl/Makefile \ + gnuradio-core/src/tests/Makefile \ + gnuradio-core/src/utils/Makefile \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_core], [chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests]) + + dnl kludge up initial swig dependency file + AC_CONFIG_COMMANDS([swig_deps], [touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d]) + + subdirs="$subdirs gnuradio-core" +]) diff --git a/config/grc_gnuradio_examples.m4 b/config/grc_gnuradio_examples.m4 new file mode 100644 index 00000000..18afb682 --- /dev/null +++ b/config/grc_gnuradio_examples.m4 @@ -0,0 +1,35 @@ +# Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GNURADIO_EXAMPLES],[ + AC_CONFIG_SRCDIR([gnuradio-examples/README]) + + AC_CONFIG_FILES([\ + gnuradio-examples/Makefile \ + gnuradio-examples/python/Makefile \ + gnuradio-examples/python/audio/Makefile \ + gnuradio-examples/python/digital_voice/Makefile \ + gnuradio-examples/python/gmsk2/Makefile \ + gnuradio-examples/python/mc4020/Makefile \ + gnuradio-examples/python/usrp/Makefile \ + gnuradio-examples/python/multi_usrp/Makefile \ + ]) + + subdirs="$subdirs gnuradio-examples" +]) diff --git a/config/grc_gr_atsc.m4 b/config/grc_gr_atsc.m4 new file mode 100644 index 00000000..2f38ad3c --- /dev/null +++ b/config/grc_gr_atsc.m4 @@ -0,0 +1,36 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_ATSC],[ + AC_CONFIG_SRCDIR([gr-atsc/src/lib/atsc.i]) + + AC_CONFIG_FILES([\ + gr-atsc/Makefile \ + gr-atsc/doc/Makefile \ + gr-atsc/src/Makefile \ + gr-atsc/src/lib/Makefile \ + gr-atsc/src/python/Makefile \ + gr-atsc/src/python/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_atsc], [chmod +x gr-atsc/src/python/run_tests]) + + subdirs="$subdirs gr-atsc" +]) diff --git a/config/grc_gr_audio_alsa.m4 b/config/grc_gr_audio_alsa.m4 new file mode 100644 index 00000000..153f0ff3 --- /dev/null +++ b/config/grc_gr_audio_alsa.m4 @@ -0,0 +1,41 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_AUDIO_ALSA],[ + AC_CONFIG_SRCDIR([gr-audio-alsa/src/audio_alsa.i]) + + succeeded=yes + PKG_CHECK_MODULES(ALSA, alsa >= 0.9,[],[succeeded=no]) + if test $succeeded = yes; then + LIBS="$LIBS $ALSA_LIBS" + + AC_CONFIG_FILES([\ + gr-audio-alsa/Makefile \ + gr-audio-alsa/src/Makefile \ + gr-audio-alsa/src/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_alsa], [chmod +x gr-audio-alsa/src/run_tests]) + subdirs="$subdirs gr-audio-alsa" + else + AC_MSG_RESULT([failed: $ALSA_PKG_ERRORS]) + failed="$failed gr-audio-alsa" + fi +]) diff --git a/config/grc_gr_audio_jack.m4 b/config/grc_gr_audio_jack.m4 new file mode 100644 index 00000000..3d4a00da --- /dev/null +++ b/config/grc_gr_audio_jack.m4 @@ -0,0 +1,41 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_AUDIO_JACK],[ + AC_CONFIG_SRCDIR([gr-audio-jack/src/audio_jack.i]) + + succeeded=yes + PKG_CHECK_MODULES(JACK, jack >= 0.8,[],[succeeded=no]) + if test $succeeded = yes; then + LIBS="$LIBS $JACK_LIBS" + + AC_CONFIG_FILES([\ + gr-audio-jack/Makefile \ + gr-audio-jack/src/Makefile \ + gr-audio-jack/src/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_jack], [chmod +x gr-audio-jack/src/run_tests]) + subdirs="$subdirs gr-audio-jack" + else + AC_MSG_RESULT([failed: $JACK_PKG_ERRORS]) + failed="$failed gr-audio-jack" + fi +]) diff --git a/config/grc_gr_audio_oss.m4 b/config/grc_gr_audio_oss.m4 new file mode 100644 index 00000000..b0190d68 --- /dev/null +++ b/config/grc_gr_audio_oss.m4 @@ -0,0 +1,45 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_AUDIO_OSS],[ + AC_CONFIG_SRCDIR([gr-audio-oss/src/audio_oss.i]) + + succeeded=yes + + dnl needed for NetBSD + dnl FIXME: conditionalize on NetBSD platform + dnl AC_HAVE_LIBRARY(ossaudio,[],[succeeded=no]) + + AC_CHECK_HEADER(sys/soundcard.h,[],[succeeded=no]) + if test $succeeded = yes; then + + AC_CONFIG_FILES([\ + gr-audio-oss/Makefile \ + gr-audio-oss/src/Makefile \ + gr-audio-oss/src/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_oss], [chmod +x gr-audio-oss/src/run_tests]) + subdirs="$subdirs gr-audio-oss" + else + AC_MSG_RESULT([failed: $OSS_PKG_ERRORS]) + failed="$failed gr-audio-oss" + fi +]) diff --git a/config/grc_gr_audio_osx.m4 b/config/grc_gr_audio_osx.m4 new file mode 100644 index 00000000..becc1c48 --- /dev/null +++ b/config/grc_gr_audio_osx.m4 @@ -0,0 +1,37 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_AUDIO_OSX],[ + AC_CONFIG_SRCDIR([gr-audio-osx/src/audio_osx.i]) + + succeeded=yes + MACOSX_AUDIOUNIT([],[succeeded=no]) + AC_CONFIG_FILES([\ + gr-audio-osx/Makefile \ + gr-audio-osx/src/Makefile \ + gr-audio-osx/src/run_tests \ + ]) + if test $succeeded = yes; then + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_osx], [chmod +x gr-audio-osx/src/run_tests]) + subdirs="$subdirs gr-audio-osx" + else + failed="$failed gr-audio-osx" + fi +]) diff --git a/config/grc_gr_audio_portaudio.m4 b/config/grc_gr_audio_portaudio.m4 new file mode 100644 index 00000000..193e2e31 --- /dev/null +++ b/config/grc_gr_audio_portaudio.m4 @@ -0,0 +1,41 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_AUDIO_PORTAUDIO],[ + AC_CONFIG_SRCDIR([gr-audio-portaudio/src/audio_portaudio.i]) + + succeeded=yes + PKG_CHECK_MODULES(PORTAUDIO, portaudio-2.0 >= 19,[],[succeeded=no]) + #AC_HAVE_LIBRARY([portaudio], [], [succeeded=no]) + #AC_CHECK_HEADER([portaudio.h], [], [succeeded=no]) + if test $succeeded = yes; then + AC_CONFIG_FILES([\ + gr-audio-portaudio/Makefile \ + gr-audio-portaudio/src/Makefile \ + gr-audio-portaudio/src/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_portaudio], [chmod +x gr-audio-portaudio/src/run_tests]) + subdirs="$subdirs gr-audio-portaudio" + else + AC_MSG_RESULT([failed: $PORTAUDIO_PKG_ERRORS]) + failed="$failed gr-audio-portaudio" + fi +]) diff --git a/config/grc_gr_audio_windows.m4 b/config/grc_gr_audio_windows.m4 new file mode 100644 index 00000000..6bcdd63b --- /dev/null +++ b/config/grc_gr_audio_windows.m4 @@ -0,0 +1,39 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_AUDIO_WINDOWS],[ + AC_CONFIG_SRCDIR([gr-audio-windows/src/audio_windows.i]) + + succeeded=yes + AC_HAVE_LIBRARY(winmm,[],[succeeded=no]) + + if test $succeeded = yes; then + AC_CONFIG_FILES([\ + gr-audio-windows/Makefile \ + gr-audio-windows/src/Makefile \ + gr-audio-windows/src/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_windows], [chmod +x gr-audio-windows/src/run_tests]) + subdirs="$subdirs gr-audio-windows" + else + failed="$failed gr-audio-windows" + fi +]) diff --git a/config/grc_gr_comedi.m4 b/config/grc_gr_comedi.m4 new file mode 100644 index 00000000..eb996d14 --- /dev/null +++ b/config/grc_gr_comedi.m4 @@ -0,0 +1,41 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_COMEDI],[ + AC_CONFIG_SRCDIR([gr-comedi/src/comedi.i]) + + succeeded=yes + PKG_CHECK_MODULES(COMEDI, comedilib >= 0.7,[],[succeeded=no]) + if test $succeeded = yes; then + LIBS="$LIBS $COMEDI_LIBS" + + AC_CONFIG_FILES([\ + gr-comedi/Makefile \ + gr-comedi/src/Makefile \ + gr-comedi/src/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_comedi], [chmod +x gr-comedi/src/run_tests]) + subdirs="$subdirs gr-comedi" + else + AC_MSG_WARN([$COMEDI_PKG_ERRORS]) + failed="$failed gr-comedi" + fi +]) diff --git a/config/grc_gr_error_correcting_codes.m4 b/config/grc_gr_error_correcting_codes.m4 new file mode 100644 index 00000000..63048005 --- /dev/null +++ b/config/grc_gr_error_correcting_codes.m4 @@ -0,0 +1,38 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_ERROR_CORRECTING_CODES],[ + AC_CONFIG_SRCDIR([gr-error-correcting-codes/src/lib/ecc.i]) + + AC_CONFIG_FILES([\ + gr-error-correcting-codes/Makefile \ + gr-error-correcting-codes/src/Makefile \ + gr-error-correcting-codes/src/lib/Makefile \ + gr-error-correcting-codes/src/lib/libecc/Makefile \ + gr-error-correcting-codes/src/lib/libecc/mld/Makefile \ + gr-error-correcting-codes/src/lib/libecc/tests/Makefile \ + gr-error-correcting-codes/src/python/Makefile \ + gr-error-correcting-codes/src/python/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_error_correcting_codes], [chmod +x gr-error-correcting-codes/src/python/run_tests]) + + subdirs="$subdirs gr-error-correcting-codes" +]) diff --git a/config/grc_gr_gsm_fr_vocoder.m4 b/config/grc_gr_gsm_fr_vocoder.m4 new file mode 100644 index 00000000..3349dcc7 --- /dev/null +++ b/config/grc_gr_gsm_fr_vocoder.m4 @@ -0,0 +1,36 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_GSM_FR_VOCODER],[ + AC_CONFIG_SRCDIR([gr-gsm-fr-vocoder/src/lib/gsm_full_rate.i]) + + AC_CONFIG_FILES([\ + gr-gsm-fr-vocoder/Makefile \ + gr-gsm-fr-vocoder/src/Makefile \ + gr-gsm-fr-vocoder/src/lib/Makefile \ + gr-gsm-fr-vocoder/src/lib/gsm/Makefile \ + gr-gsm-fr-vocoder/src/python/Makefile \ + gr-gsm-fr-vocoder/src/python/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_gsm], [chmod +x gr-gsm-fr-vocoder/src/python/run_tests]) + + subdirs="$subdirs gr-gsm-fr-vocoder" +]) diff --git a/config/grc_gr_pmt.m4 b/config/grc_gr_pmt.m4 new file mode 100644 index 00000000..951d6405 --- /dev/null +++ b/config/grc_gr_pmt.m4 @@ -0,0 +1,34 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_PMT],[ + AC_CONFIG_SRCDIR([pmt/src/lib/pmt.h]) + + AC_CONFIG_FILES([\ + pmt/Makefile \ + pmt/doc/Makefile \ + pmt/src/Makefile \ + pmt/src/lib/Makefile + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + dnl AC_CONFIG_COMMANDS([run_tests_pmt], [chmod +x pmt/src/python/run_tests]) + + subdirs="$subdirs pmt" +]) diff --git a/config/grc_gr_radar.m4 b/config/grc_gr_radar.m4 new file mode 100644 index 00000000..139d9fe2 --- /dev/null +++ b/config/grc_gr_radar.m4 @@ -0,0 +1,36 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_RADAR],[ + AC_CONFIG_SRCDIR([gr-radar/src/python/usrp_rx_radar.py]) + + AC_CONFIG_FILES([\ + gr-radar/Makefile \ + gr-radar/doc/Makefile \ + gr-radar/src/Makefile \ + gr-radar/src/lib/Makefile \ + gr-radar/src/python/Makefile \ + gr-radar/src/python/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_radar], [chmod +x gr-radar/src/python/run_tests]) + + subdirs="$subdirs gr-radar" +]) diff --git a/config/grc_gr_radio_astronomy.m4 b/config/grc_gr_radio_astronomy.m4 new file mode 100644 index 00000000..0b445dbc --- /dev/null +++ b/config/grc_gr_radio_astronomy.m4 @@ -0,0 +1,35 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_RADIO_ASTRONOMY],[ + AC_CONFIG_SRCDIR([gr-radio-astronomy/src/lib/ra.i]) + + AC_CONFIG_FILES([\ + gr-radio-astronomy/Makefile \ + gr-radio-astronomy/src/Makefile \ + gr-radio-astronomy/src/lib/Makefile \ + gr-radio-astronomy/src/python/Makefile \ + gr-radio-astronomy/src/python/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_astronomy], [chmod +x gr-radio-astronomy/src/python/run_tests]) + + subdirs="$subdirs gr-radio-astronomy" +]) diff --git a/config/grc_gr_usrp.m4 b/config/grc_gr_usrp.m4 new file mode 100644 index 00000000..2231905d --- /dev/null +++ b/config/grc_gr_usrp.m4 @@ -0,0 +1,47 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_USRP],[ + AC_CONFIG_SRCDIR([gr-usrp/src/usrp1.i]) + + # Don't do gr-usrp if usrp failed + # There *has* to be a better way to check if a value is in a string + succeeded=yes + for dir in $failed + do + if test $dir = usrp; then + succeeded=no + fi + done + + if test $succeeded = yes; then + AC_CONFIG_FILES([\ + gr-usrp/Makefile \ + gr-usrp/src/Makefile \ + gr-usrp/src/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_usrp], [chmod +x gr-usrp/src/run_tests]) + + subdirs="$subdirs gr-usrp" + else + failed="$failed gr-usrp" + fi +]) diff --git a/config/grc_gr_video_sdl.m4 b/config/grc_gr_video_sdl.m4 new file mode 100644 index 00000000..1432ccd6 --- /dev/null +++ b/config/grc_gr_video_sdl.m4 @@ -0,0 +1,45 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_VIDEO_SDL],[ + AC_CONFIG_SRCDIR([gr-video-sdl/src/video_sdl.i]) + + succeeded=yes + + dnl Check for SDL + SDL_VERSION=1.2.0 + AM_PATH_SDL($SDL_VERSION,[],[succeeded=no]) + + if test $succeeded = yes; then + AM_CFLAGS="$AM_CFLAGS $SDL_CFLAGS" + AM_LDFLAGS="$AM_LDFLAGS $SDL_LIBS" + + AC_CONFIG_FILES([\ + gr-video-sdl/Makefile \ + gr-video-sdl/src/Makefile \ + gr-video-sdl/src/run_tests \ + ]) + + dnl run_tests is created from run_tests.in. Make it executable. + AC_CONFIG_COMMANDS([run_tests_sdl], [chmod +x gr-video-sdl/src/run_tests]) + subdirs="$subdirs gr-video-sdl" + else + failed="$failed gr-video-sdl" + fi +]) diff --git a/config/grc_gr_wxgui.m4 b/config/grc_gr_wxgui.m4 new file mode 100644 index 00000000..8f3c8f8e --- /dev/null +++ b/config/grc_gr_wxgui.m4 @@ -0,0 +1,33 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_GR_WXGUI],[ + AC_CONFIG_SRCDIR([gr-wxgui/src/python/stdgui.py]) + + # FIXME: Should we actually check for wxPython, even though + # this is a runtime requirement, not a compile/install time one? + + AC_CONFIG_FILES([ \ + gr-wxgui/Makefile \ + gr-wxgui/src/Makefile \ + gr-wxgui/src/python/Makefile \ + ]) + + subdirs="$subdirs gr-wxgui" +]) diff --git a/config/grc_usrp.m4 b/config/grc_usrp.m4 new file mode 100644 index 00000000..be75387e --- /dev/null +++ b/config/grc_usrp.m4 @@ -0,0 +1,84 @@ +dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc. +dnl +dnl This file is part of GNU Radio +dnl +dnl GNU Radio is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2, or (at your option) +dnl any later version. +dnl +dnl GNU Radio is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with GNU Radio; see the file COPYING. If not, write to +dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +dnl Boston, MA 02111-1307, USA. + +AC_DEFUN([GRC_USRP],[ + AC_CONFIG_SRCDIR([usrp/host/lib/usrp_prims.h]) + + AC_CHECK_PROG([XMLTO],[xmlto],[yes],[]) + AM_CONDITIONAL(HAS_XMLTO, test x$XMLTO = xyes) + + # gnulib. + # FIXME: this needs to fail gracefully and continue, not implemented yet + UTILS_FUNC_MKSTEMP + + succeeded=yes + dnl Checks for library functions. + USRP_LIBUSB([],[succeeded=no]) + USRP_SET_FUSB_TECHNIQUE([],[succeeded=no]) + + dnl check for firmware cross compilation tools + dnl check for SDCC 2.4.0 + USRP_SDCC([2.4.0],[],[succeeded=no]) + + AC_CHECK_FUNCS([getrusage sched_setscheduler],[],[succeeded=no]) + AC_CHECK_FUNCS([sigaction snprintf],[],[succeeded=no]) + + dnl we use these to handle possible byteswapping to and from the USRP. + AC_CHECK_HEADERS([byteswap.h],[],[succeeeded=no]) + AC_C_BIGENDIAN + + if test $succeeded = yes; then + dnl Define where to look for USRP includes + USRP_INCLUDES='-I$(top_srcdir)/host/lib -I$(top_srcdir)/firmware/include' + AC_SUBST(USRP_INCLUDES) + + USRP_DEFINES='' + AC_SUBST(USRP_DEFINES) + + DEFINES="$USRP_DEFINES" + AC_SUBST(DEFINES) + + AC_CONFIG_FILES([ \ + usrp/Makefile \ + usrp/usrp.pc \ + usrp/usrp.iss \ + usrp/doc/Doxyfile \ + usrp/doc/Makefile \ + usrp/doc/other/Makefile \ + usrp/host/Makefile \ + usrp/host/misc/Makefile \ + usrp/host/lib/Makefile \ + usrp/host/lib/std_paths.h \ + usrp/host/swig/Makefile \ + usrp/host/apps/Makefile \ + usrp/firmware/Makefile \ + usrp/firmware/include/Makefile \ + usrp/firmware/lib/Makefile \ + usrp/firmware/src/Makefile \ + usrp/firmware/src/common/Makefile \ + usrp/firmware/src/usrp2/Makefile \ + usrp/fpga/Makefile \ + usrp/fpga/rbf/Makefile \ + ]) + + subdirs="$subdirs usrp" + else + failed="$failed usrp" + fi +]) diff --git a/configure.ac b/configure.ac index 9486bf51..68e8837c 100644 --- a/configure.ac +++ b/configure.ac @@ -143,25 +143,25 @@ AC_SUBST(STD_DEFINES_AND_INCLUDES) dnl Component specific configuration dnl The order of the GR_ macros determines the order of compilation subdirs="config" -GR_GNURADIO_CORE -GR_GNURADIO_EXAMPLES -GR_USRP_HW -GR_USRP dnl this must come after GR_USRP_HW -GR_AUDIO_ALSA -GR_AUDIO_JACK -GR_AUDIO_OSS -#GR_AUDIO_PORTAUDIO dnl Disabled until portaudio patch figured out -GR_AUDIO_OSX dnl ***NOT TESTED*** -GR_AUDIO_WINDOWS dnl ***NOT TESTED*** -GR_ATSC -GR_COMEDI -GR_ERROR_CORRECTING_CODES -GR_GSM_FR_VOCODER -GR_RADAR -GR_RADIO_ASTRONOMY -GR_PMT -GR_VIDEO_SDL -GR_WXGUI +GRC_GNURADIO_CORE +GRC_GNURADIO_EXAMPLES +GRC_USRP +GRC_GR_USRP dnl this must come after GRC_USRP +GRC_GR_AUDIO_ALSA +GRC_GR_AUDIO_JACK +GRC_GR_AUDIO_OSS +GRC_GR_AUDIO_OSX dnl ***NOT TESTED*** +GRC_GR_AUDIO_PORTAUDIO dnl ***NOT TESTED*** +GRC_GR_AUDIO_WINDOWS dnl ***NOT TESTED*** +GRC_GR_ATSC +GRC_GR_COMEDI +GRC_GR_ERROR_CORRECTING_CODES +GRC_GR_GSM_FR_VOCODER +GRC_GR_RADAR +GRC_GR_RADIO_ASTRONOMY +GRC_GR_PMT +GRC_GR_VIDEO_SDL +GRC_GR_WXGUI dnl Has list of successfully configured components AC_SUBST([subdirs],$subdirs)