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