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