Mercurial > hg > libxtract
comparison m4/swig_python.m4 @ 89:ee7442343cf0
Added m4 macros
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Wed, 05 Sep 2007 14:50:37 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
88:525bfdf936c6 | 89:ee7442343cf0 |
---|---|
1 ##### http://autoconf-archive.cryp.to/swig_python.html | |
2 # | |
3 # SYNOPSIS | |
4 # | |
5 # SWIG_PYTHON([use-shadow-classes = {no, yes}]) | |
6 # | |
7 # DESCRIPTION | |
8 # | |
9 # Checks for Python and provides the $(SWIG_PYTHON_CPPFLAGS), and | |
10 # $(SWIG_PYTHON_OPT) output variables. | |
11 # | |
12 # $(SWIG_PYTHON_OPT) contains all necessary SWIG options to generate | |
13 # code for Python. Shadow classes are enabled unless the value of the | |
14 # optional first argument is exactly 'no'. If you need multi module | |
15 # support (provided by the SWIG_MULTI_MODULE_SUPPORT macro) use | |
16 # $(SWIG_PYTHON_LIBS) to link against the appropriate library. It | |
17 # contains the SWIG Python runtime library that is needed by the type | |
18 # check system for example. | |
19 # | |
20 # LAST MODIFICATION | |
21 # | |
22 # 2006-10-22 | |
23 # | |
24 # COPYLEFT | |
25 # | |
26 # Copyright (c) 2006 Sebastian Huber <sebastian-huber@web.de> | |
27 # Copyright (c) 2006 Alan W. Irwin <irwin@beluga.phys.uvic.ca> | |
28 # Copyright (c) 2006 Rafael Laboissiere <rafael@laboissiere.net> | |
29 # Copyright (c) 2006 Andrew Collier <colliera@ukzn.ac.za> | |
30 # | |
31 # This program is free software; you can redistribute it and/or | |
32 # modify it under the terms of the GNU General Public License as | |
33 # published by the Free Software Foundation; either version 2 of the | |
34 # License, or (at your option) any later version. | |
35 # | |
36 # This program is distributed in the hope that it will be useful, but | |
37 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
38 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
39 # General Public License for more details. | |
40 # | |
41 # You should have received a copy of the GNU General Public License | |
42 # along with this program; if not, write to the Free Software | |
43 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
44 # 02111-1307, USA. | |
45 # | |
46 # As a special exception, the respective Autoconf Macro's copyright | |
47 # owner gives unlimited permission to copy, distribute and modify the | |
48 # configure scripts that are the output of Autoconf when processing | |
49 # the Macro. You need not follow the terms of the GNU General Public | |
50 # License when using or distributing such scripts, even though | |
51 # portions of the text of the Macro appear in them. The GNU General | |
52 # Public License (GPL) does govern all other use of the material that | |
53 # constitutes the Autoconf Macro. | |
54 # | |
55 # This special exception to the GPL applies to versions of the | |
56 # Autoconf Macro released by the Autoconf Macro Archive. When you | |
57 # make and distribute a modified version of the Autoconf Macro, you | |
58 # may extend this special exception to the GPL to apply to your | |
59 # modified version as well. | |
60 | |
61 AC_DEFUN([SWIG_PYTHON],[ | |
62 AC_REQUIRE([AC_PROG_SWIG]) | |
63 AC_REQUIRE([AC_PYTHON_DEVEL]) | |
64 test "x$1" != "xno" || swig_shadow=" -noproxy" | |
65 AC_SUBST([SWIG_PYTHON_OPT],[-python$swig_shadow]) | |
66 AC_SUBST([SWIG_PYTHON_CPPFLAGS],[$PYTHON_CPPFLAGS]) | |
67 ]) |