Imported Upstream version 3.2.2
[debian/gnuradio] / config / gr_gcell.m4
1 #
2 # Copyright 2008 Free Software Foundation, Inc.
3
4 # This file is part of GNU Radio
5
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20
21 AC_DEFUN([GR_GCELL],[
22   passed=yes
23   PKG_CHECK_MODULES(GCELL, gcell >= 3.1, [],
24     [passed=no; AC_MSG_RESULT([gcell not found])])
25   PKG_CHECK_MODULES(GCELL_SPU, gcell_spu >= 3.1, [],
26     [passed=no; AC_MSG_RESULT([gcell_spu not found])])
27
28   GCELL_EMBEDSPU_LIBTOOL=
29   if test $passed = yes; then
30     GCELL_EMBEDSPU_LIBTOOL=`$PKG_CONFIG --variable=gcell_embedspu_libtool gcell 2>/dev/null`
31     AC_DEFINE(HAVE_GCELL,[1],[Define if you have gcell installed])
32   fi
33   AC_SUBST([GCELL_EMBEDSPU_LIBTOOL])
34
35   AM_CONDITIONAL([HAVE_GCELL], [test "$passed" = "yes"])
36 ])