root / config / gr_tcl.m4 @ cb35c3e2
History | View | Annotate | Download (2.1 kB)
| 1 | 16426810 | Rob Savoye | dnl |
|---|---|---|---|
| 2 | 16426810 | Rob Savoye | dnl Copyright 2003,2004,2005 Free Software Foundation, Inc. |
| 3 | 16426810 | Rob Savoye | dnl |
| 4 | 16426810 | Rob Savoye | dnl This file is part of GNU Radio |
| 5 | 16426810 | Rob Savoye | dnl |
| 6 | 16426810 | Rob Savoye | dnl GNU Radio is free software; you can redistribute it and/or modify |
| 7 | 16426810 | Rob Savoye | dnl it under the terms of the GNU General Public License as published by |
| 8 | 16426810 | Rob Savoye | dnl the Free Software Foundation; either version 3, or (at your option) |
| 9 | 16426810 | Rob Savoye | dnl any later version. |
| 10 | 16426810 | Rob Savoye | dnl |
| 11 | 16426810 | Rob Savoye | dnl GNU Radio is distributed in the hope that it will be useful, |
| 12 | 16426810 | Rob Savoye | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | 16426810 | Rob Savoye | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | 16426810 | Rob Savoye | dnl GNU General Public License for more details. |
| 15 | 16426810 | Rob Savoye | dnl |
| 16 | 16426810 | Rob Savoye | dnl You should have received a copy of the GNU General Public License |
| 17 | 16426810 | Rob Savoye | dnl along with GNU Radio; see the file COPYING. If not, write to |
| 18 | 16426810 | Rob Savoye | dnl the Free Software Foundation, Inc., 51 Franklin Street, |
| 19 | 16426810 | Rob Savoye | dnl Boston, MA 02110-1301, USA. |
| 20 | 16426810 | Rob Savoye | dnl |
| 21 | 16426810 | Rob Savoye | |
| 22 | 16426810 | Rob Savoye | # TCL_DEVEL() |
| 23 | 16426810 | Rob Savoye | # |
| 24 | 16426810 | Rob Savoye | # Checks for Tcl and tries to get the include path to 'Tcl.h'. |
| 25 | 16426810 | Rob Savoye | # It sets the $(TCL_CPPFLAGS), $(TCL_LDFLAGS) and $(tcldir) output variables, |
| 26 | 16426810 | Rob Savoye | # |
| 27 | 16426810 | Rob Savoye | AC_DEFUN([TCL_DEVEL],[ |
| 28 | 16426810 | Rob Savoye | dnl see if tclsh is installed |
| 29 | 16426810 | Rob Savoye | if test x${enable_tcl} = xyes; then
|
| 30 | 16426810 | Rob Savoye | AC_PATH_PROG(TCLSH,tclsh) |
| 31 | 16426810 | Rob Savoye | |
| 32 | 16426810 | Rob Savoye | AC_REQUIRE([AC_CANONICAL_HOST]) |
| 33 | 16426810 | Rob Savoye | |
| 34 | 16426810 | Rob Savoye | AC_ARG_WITH(tcldir, |
| 35 | 16426810 | Rob Savoye | AC_HELP_STRING([--with-tcldir=DIR], |
| 36 | 16426810 | Rob Savoye | [tcl installation directory (cross-compiling) [[default=$prefix/lib/tcl2.5/site-packages]]]), |
| 37 | 16426810 | Rob Savoye | [with_tcldir=${withval}],[with_tcldir=${prefix}/lib/tcl2.5/site-packages])
|
| 38 | 16426810 | Rob Savoye | |
| 39 | 16426810 | Rob Savoye | # if we're cross-compiling, asking the host tcl about any of |
| 40 | 16426810 | Rob Savoye | # this is completely useless... |
| 41 | 16426810 | Rob Savoye | |
| 42 | 16426810 | Rob Savoye | dnl if test x$cross_compiling != xno; then |
| 43 | 16426810 | Rob Savoye | dnl tcldir=$with_tcldir |
| 44 | 16426810 | Rob Savoye | dnl pyexecdir=$with_tcldir |
| 45 | 16426810 | Rob Savoye | dnl AC_SUBST(TCL_CPPFLAGS) |
| 46 | 16426810 | Rob Savoye | dnl AC_SUBST(TCL_LDFLAGS) |
| 47 | 16426810 | Rob Savoye | dnl else |
| 48 | 16426810 | Rob Savoye | dnl fi |
| 49 | 16426810 | Rob Savoye | fi |
| 50 | 16426810 | Rob Savoye | ]) |
| 51 | 16426810 | Rob Savoye | |
| 52 | 16426810 | Rob Savoye | # TCL_CHECK_MODULE |
| 53 | 16426810 | Rob Savoye | # |
| 54 | 16426810 | Rob Savoye | # Determines if a particular Tcl module can be imported |
| 55 | 16426810 | Rob Savoye | # |
| 56 | 16426810 | Rob Savoye | # $1 - module name |
| 57 | 16426810 | Rob Savoye | # $2 - module description |
| 58 | 16426810 | Rob Savoye | # $3 - action if found |
| 59 | 16426810 | Rob Savoye | # $4 - action if not found |
| 60 | 16426810 | Rob Savoye | # $5 - test command |
| 61 | 16426810 | Rob Savoye | |
| 62 | 16426810 | Rob Savoye | AC_DEFUN([TCL_CHECK_MODULE],[ |
| 63 | 16426810 | Rob Savoye | AC_MSG_CHECKING([for $2]) |
| 64 | 16426810 | Rob Savoye | dnl ######################################## |
| 65 | 16426810 | Rob Savoye | dnl # import and test checking |
| 66 | 16426810 | Rob Savoye | dnl ######################################## |
| 67 | 16426810 | Rob Savoye | dnl if test x${enable_tcl} = xyes; then
|
| 68 | 16426810 | Rob Savoye | dnl fi |
| 69 | 16426810 | Rob Savoye | ]) |