2 dnl Copyright 2004,2005,2007 Free Software Foundation, Inc.
4 dnl This file is part of GNU Radio
6 dnl GNU Radio is free software; you can redistribute it and/or modify
7 dnl it under the terms of the GNU General Public License as published by
8 dnl the Free Software Foundation; either version 3, or (at your option)
11 dnl GNU Radio is distributed in the hope that it will be useful,
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 dnl GNU General Public License for more details.
16 dnl You should have received a copy of the GNU General Public License
17 dnl along with GNU Radio; see the file COPYING. If not, write to
18 dnl the Free Software Foundation, Inc., 51 Franklin Street,
19 dnl Boston, MA 02110-1301, USA.
24 AC_CONFIG_SRCDIR([src/lib/howto.i])
25 AM_CONFIG_HEADER(config.h)
26 AC_CANONICAL_TARGET([])
27 AM_INIT_AUTOMAKE(gr-howto-write-a-block,3.1.svn)
39 AC_PATH_PROG([RM_PROG], [rm])
42 AC_ENABLE_SHARED dnl do build shared libraries
43 AC_DISABLE_STATIC dnl don't build static libraries
46 dnl Locate python, SWIG, etc
50 dnl Checks for libraries.
52 dnl check for threads (mandatory)
55 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
56 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
58 if test "x$CXX_FOR_BUILD" = x
62 AC_SUBST(CXX_FOR_BUILD)
64 dnl Checks for header files.
67 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/ioctl.h sys/time.h unistd.h)
68 AC_CHECK_HEADERS(sys/mman.h)
70 dnl Checks for typedefs, structures, and compiler characteristics.
76 dnl Checks for library functions.
79 dnl Check for Mingw support
82 PKG_CHECK_MODULES(GNURADIO_CORE, gnuradio-core >= 2)
83 LIBS="$LIBS $GNURADIO_CORE_LIBS"
85 dnl Define where to find boost includes
86 dnl defines BOOST_CFLAGS
87 GR_REQUIRE_BOOST_INCLUDES
89 STD_DEFINES_AND_INCLUDES="$GNURADIO_CORE_CFLAGS $BOOST_CFLAGS"
90 AC_SUBST(STD_DEFINES_AND_INCLUDES)
99 src/python/run_tests \
102 dnl run_tests is created from run_tests.in. Make it executable.
103 AC_CONFIG_COMMANDS([run_tests], [chmod +x src/python/run_tests])