jamie@126: # =========================================================================== jamie@126: # http://www.gnu.org/software/autoconf-archive/ax_swig_python.html jamie@126: # =========================================================================== jamie@126: # jamie@126: # SYNOPSIS jamie@126: # jamie@126: # AX_SWIG_PYTHON([use-shadow-classes = {no, yes}]) jamie@126: # jamie@126: # DESCRIPTION jamie@126: # jamie@126: # Checks for Python and provides the $(AX_SWIG_PYTHON_CPPFLAGS), and jamie@126: # $(AX_SWIG_PYTHON_OPT) output variables. jamie@126: # jamie@126: # $(AX_SWIG_PYTHON_OPT) contains all necessary SWIG options to generate jamie@126: # code for Python. Shadow classes are enabled unless the value of the jamie@126: # optional first argument is exactly 'no'. If you need multi module jamie@126: # support (provided by the AX_SWIG_MULTI_MODULE_SUPPORT macro) use jamie@126: # $(AX_SWIG_PYTHON_LIBS) to link against the appropriate library. It jamie@126: # contains the SWIG Python runtime library that is needed by the type jamie@126: # check system for example. jamie@126: # jamie@126: # LICENSE jamie@126: # jamie@126: # Copyright (c) 2008 Sebastian Huber jamie@126: # Copyright (c) 2008 Alan W. Irwin jamie@126: # Copyright (c) 2008 Rafael Laboissiere jamie@126: # Copyright (c) 2008 Andrew Collier jamie@126: # jamie@126: # This program is free software; you can redistribute it and/or modify it jamie@126: # under the terms of the GNU General Public License as published by the jamie@126: # Free Software Foundation; either version 2 of the License, or (at your jamie@126: # option) any later version. jamie@126: # jamie@126: # This program is distributed in the hope that it will be useful, but jamie@126: # WITHOUT ANY WARRANTY; without even the implied warranty of jamie@126: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General jamie@126: # Public License for more details. jamie@126: # jamie@126: # You should have received a copy of the GNU General Public License along jamie@126: # with this program. If not, see . jamie@126: # jamie@126: # As a special exception, the respective Autoconf Macro's copyright owner jamie@126: # gives unlimited permission to copy, distribute and modify the configure jamie@126: # scripts that are the output of Autoconf when processing the Macro. You jamie@126: # need not follow the terms of the GNU General Public License when using jamie@126: # or distributing such scripts, even though portions of the text of the jamie@126: # Macro appear in them. The GNU General Public License (GPL) does govern jamie@126: # all other use of the material that constitutes the Autoconf Macro. jamie@126: # jamie@126: # This special exception to the GPL applies to versions of the Autoconf jamie@126: # Macro released by the Autoconf Archive. When you make and distribute a jamie@126: # modified version of the Autoconf Macro, you may extend this special jamie@126: # exception to the GPL to apply to your modified version as well. jamie@126: jamie@126: #serial 7 jamie@126: jamie@126: AU_ALIAS([SWIG_PYTHON], [AX_SWIG_PYTHON]) jamie@126: AC_DEFUN([AX_SWIG_PYTHON],[ jamie@126: AC_REQUIRE([AX_PKG_SWIG]) jamie@126: AC_REQUIRE([AX_PYTHON_DEVEL]) jamie@126: test "x$1" != "xno" || swig_shadow=" -noproxy" jamie@126: AC_SUBST([AX_SWIG_PYTHON_OPT],[-python$swig_shadow]) jamie@126: AC_SUBST([AX_SWIG_PYTHON_CPPFLAGS],[$PYTHON_CPPFLAGS]) jamie@126: ])