source: tol/tolbase/tclconfig/tolbase.m4 @ 1027aba

1941-docker-image-to-testdevel
Last change on this file since 1027aba was 6d7779d, checked in by Jorge Pérez <josp.jorge@…>, 18 years ago

initial import

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# tolbase.m4 --
2#
3#       This file provides a set of autoconf macros to help Tolbase
4#       auto configuration. It is based on tcl.m4 file developed by
5#       Ajuba Solutions (Copyright (c) 1999-2000) and
6#       ActiveState Corporation (Copyright (c) 2002-2003).
7#
8# Copyright (c) 2004, Bayes Decision, SL (Madrid [EU])
9#
10# See the file "COPYING" for information on usage and redistribution
11# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
12#
13
14AC_PREREQ(2.50)
15
16#------------------------------------------------------------------------
17# TB_CHECK_TCLPKG --
18#       Locate the pkgIndex.tcl file of a package given as argument
19#
20# Arguments:
21#       Name of Tcl packages searched
22#
23# Results:
24#       no  - the specified package not exist
25#       yes - the package is reacheable by Tcl interpreter
26#------------------------------------------------------------------------
27
28AC_DEFUN([TB_CHECK_TCLPKG], [
29    #
30    # This macro try to load the package given as argument.
31    # tclsh conf.tcl test package_name has to return
32    # "1" if package_name exist in the target system or "0"
33    # if not exist or can not be loaded
34    #
35    AC_REQUIRE([TEA_INIT])
36    AC_REQUIRE([TEA_PROG_TCLSH])
37    AC_MSG_CHECKING($1 Tcl package)
38
39    #tb_chk_tclpkg=`${TCLSH_PROG} \`${CYGPATH}\` ${srcdir}/conf.tcl test $1`
40    tb_chk_tclpkg=`tclsh ${srcdir}/conf.tcl test $1`
41
42    if test "$tb_chk_tclpkg" == "yes" ; then
43      AC_MSG_RESULT(yes)
44    else
45      AC_MSG_RESULT(no)
46      $2
47    fi
48])
Note: See TracBrowser for help on using the repository browser.