annotate m4/ax_swig_python.m4 @ 126:0d49e1502159

- updated to latest SWIG macros - added __init__.py so generated python module loads
author Jamie Bullock <jamie@postlude.co.uk>
date Thu, 29 Mar 2012 17:24:45 +0000
parents
children
rev   line source
jamie@126 1 # ===========================================================================
jamie@126 2 # http://www.gnu.org/software/autoconf-archive/ax_swig_python.html
jamie@126 3 # ===========================================================================
jamie@126 4 #
jamie@126 5 # SYNOPSIS
jamie@126 6 #
jamie@126 7 # AX_SWIG_PYTHON([use-shadow-classes = {no, yes}])
jamie@126 8 #
jamie@126 9 # DESCRIPTION
jamie@126 10 #
jamie@126 11 # Checks for Python and provides the $(AX_SWIG_PYTHON_CPPFLAGS), and
jamie@126 12 # $(AX_SWIG_PYTHON_OPT) output variables.
jamie@126 13 #
jamie@126 14 # $(AX_SWIG_PYTHON_OPT) contains all necessary SWIG options to generate
jamie@126 15 # code for Python. Shadow classes are enabled unless the value of the
jamie@126 16 # optional first argument is exactly 'no'. If you need multi module
jamie@126 17 # support (provided by the AX_SWIG_MULTI_MODULE_SUPPORT macro) use
jamie@126 18 # $(AX_SWIG_PYTHON_LIBS) to link against the appropriate library. It
jamie@126 19 # contains the SWIG Python runtime library that is needed by the type
jamie@126 20 # check system for example.
jamie@126 21 #
jamie@126 22 # LICENSE
jamie@126 23 #
jamie@126 24 # Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
jamie@126 25 # Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
jamie@126 26 # Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
jamie@126 27 # Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za>
jamie@126 28 #
jamie@126 29 # This program is free software; you can redistribute it and/or modify it
jamie@126 30 # under the terms of the GNU General Public License as published by the
jamie@126 31 # Free Software Foundation; either version 2 of the License, or (at your
jamie@126 32 # option) any later version.
jamie@126 33 #
jamie@126 34 # This program is distributed in the hope that it will be useful, but
jamie@126 35 # WITHOUT ANY WARRANTY; without even the implied warranty of
jamie@126 36 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
jamie@126 37 # Public License for more details.
jamie@126 38 #
jamie@126 39 # You should have received a copy of the GNU General Public License along
jamie@126 40 # with this program. If not, see <http://www.gnu.org/licenses/>.
jamie@126 41 #
jamie@126 42 # As a special exception, the respective Autoconf Macro's copyright owner
jamie@126 43 # gives unlimited permission to copy, distribute and modify the configure
jamie@126 44 # scripts that are the output of Autoconf when processing the Macro. You
jamie@126 45 # need not follow the terms of the GNU General Public License when using
jamie@126 46 # or distributing such scripts, even though portions of the text of the
jamie@126 47 # Macro appear in them. The GNU General Public License (GPL) does govern
jamie@126 48 # all other use of the material that constitutes the Autoconf Macro.
jamie@126 49 #
jamie@126 50 # This special exception to the GPL applies to versions of the Autoconf
jamie@126 51 # Macro released by the Autoconf Archive. When you make and distribute a
jamie@126 52 # modified version of the Autoconf Macro, you may extend this special
jamie@126 53 # exception to the GPL to apply to your modified version as well.
jamie@126 54
jamie@126 55 #serial 7
jamie@126 56
jamie@126 57 AU_ALIAS([SWIG_PYTHON], [AX_SWIG_PYTHON])
jamie@126 58 AC_DEFUN([AX_SWIG_PYTHON],[
jamie@126 59 AC_REQUIRE([AX_PKG_SWIG])
jamie@126 60 AC_REQUIRE([AX_PYTHON_DEVEL])
jamie@126 61 test "x$1" != "xno" || swig_shadow=" -noproxy"
jamie@126 62 AC_SUBST([AX_SWIG_PYTHON_OPT],[-python$swig_shadow])
jamie@126 63 AC_SUBST([AX_SWIG_PYTHON_CPPFLAGS],[$PYTHON_CPPFLAGS])
jamie@126 64 ])