comparison m4/ax_python_devel.m4 @ 424:9b34c17cb0fb

maint: update m4 macros from autoconf-archive * m4/ax_python_devel.m4: Import updated file from autoconf-archive.
author Mike Miller <mtmiller@octave.org>
date Thu, 04 May 2017 21:33:36 -0700
parents 5cfff4925d14
children
comparison
equal deleted inserted replaced
423:6b9de18b4bdd 424:9b34c17cb0fb
1 # =========================================================================== 1 # ===========================================================================
2 # http://www.gnu.org/software/autoconf-archive/ax_python_devel.html 2 # https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
3 # =========================================================================== 3 # ===========================================================================
4 # 4 #
5 # SYNOPSIS 5 # SYNOPSIS
6 # 6 #
7 # AX_PYTHON_DEVEL([version]) 7 # AX_PYTHON_DEVEL([version])
50 # WITHOUT ANY WARRANTY; without even the implied warranty of 50 # WITHOUT ANY WARRANTY; without even the implied warranty of
51 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 51 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
52 # Public License for more details. 52 # Public License for more details.
53 # 53 #
54 # You should have received a copy of the GNU General Public License along 54 # You should have received a copy of the GNU General Public License along
55 # with this program. If not, see <http://www.gnu.org/licenses/>. 55 # with this program. If not, see <https://www.gnu.org/licenses/>.
56 # 56 #
57 # As a special exception, the respective Autoconf Macro's copyright owner 57 # As a special exception, the respective Autoconf Macro's copyright owner
58 # gives unlimited permission to copy, distribute and modify the configure 58 # gives unlimited permission to copy, distribute and modify the configure
59 # scripts that are the output of Autoconf when processing the Macro. You 59 # scripts that are the output of Autoconf when processing the Macro. You
60 # need not follow the terms of the GNU General Public License when using 60 # need not follow the terms of the GNU General Public License when using
65 # This special exception to the GPL applies to versions of the Autoconf 65 # This special exception to the GPL applies to versions of the Autoconf
66 # Macro released by the Autoconf Archive. When you make and distribute a 66 # Macro released by the Autoconf Archive. When you make and distribute a
67 # modified version of the Autoconf Macro, you may extend this special 67 # modified version of the Autoconf Macro, you may extend this special
68 # exception to the GPL to apply to your modified version as well. 68 # exception to the GPL to apply to your modified version as well.
69 69
70 #serial 18 70 #serial 20
71 71
72 AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL]) 72 AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL])
73 AC_DEFUN([AX_PYTHON_DEVEL],[ 73 AC_DEFUN([AX_PYTHON_DEVEL],[
74 # 74 #
75 # Allow the use of a (user set) custom python version 75 # Allow the use of a (user set) custom python version
135 # 135 #
136 # Check if you have distutils, else fail 136 # Check if you have distutils, else fail
137 # 137 #
138 AC_MSG_CHECKING([for the distutils Python package]) 138 AC_MSG_CHECKING([for the distutils Python package])
139 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 139 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
140 if test -z "$ac_distutils_result"; then 140 if test $? -eq 0; then
141 AC_MSG_RESULT([yes]) 141 AC_MSG_RESULT([yes])
142 else 142 else
143 AC_MSG_RESULT([no]) 143 AC_MSG_RESULT([no])
144 AC_MSG_ERROR([cannot import Python module "distutils". 144 AC_MSG_ERROR([cannot import Python module "distutils".
145 Please check your Python installation. The error was: 145 Please check your Python installation. The error was: