Skip to content
Snippets Groups Projects
Commit 3c45e595 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Disable Python interface by default

parent 9f08091d
No related branches found
No related tags found
1 merge request!43Update python build
......@@ -72,14 +72,12 @@ AM_CONDITIONAL([ENABLE_FORTRAN_HL], [test x"$enable_fortran_hl" = xyes])
AC_ARG_ENABLE([python],
[AS_HELP_STRING([--enable-python],
[enable the Python interface @<:@default=auto@:>@])], [],
[enable_python=auto])
AS_IF([test "x$enable_shared" = xno || test "x$with_pic" = xno],
[AS_CASE([$enable_python],
[auto], [enable_python=no],
[no], [],
[AC_MSG_ERROR([cannot provide the Python interface when the shared libraries dnl
or PIC objects are disabled])])])
[enable the Python interface @<:@default=no@:>@])], [],
[enable_python=no])
AS_VAR_IF([enable_python], [yes],
[AS_IF([test "x$enable_shared" = xno || test "x$with_pic" = xno],
[AC_MSG_ERROR([cannot provide the Python interface when the shared libraries or dnl
PIC objects are disabled])])])
AC_ARG_ENABLE([check],
[AS_HELP_STRING([--enable-check],
......@@ -112,7 +110,7 @@ AS_VAR_IF([enable_check], [yes],
[CHECK_CLIBS=;CHECK_CFLAGS=])
AM_CONDITIONAL([ENABLE_CHECK], [test x"$enable_check" = xyes])
AS_IF([test x"$enable_python" != xno],
AS_VAR_IF([enable_python], [yes],
[dnl
dnl AM_PATH_PYTHON does not run ACTION-IF-NOT-FOUND when the PYTHON provided by the user
dnl is too old:
......@@ -125,11 +123,8 @@ dnl is too old:
PACKAGE=mtime
AM_PATH_PYTHON([mtime_python_min_version], [mtime_python_found=yes], [:])
PACKAGE=$save_PACKAGE])
AS_VAR_IF([mtime_python_found], [yes],
[enable_python=yes],
[AS_VAR_IF([enable_python], [auto],
[enable_python=no],
[AC_MSG_FAILURE([cannot find suitable Python interpreter])])])])
AS_VAR_IF([mtime_python_found], [no],
[AC_MSG_FAILURE([cannot find suitable Python interpreter])])])
AM_CONDITIONAL([ENABLE_PYTHON], [test x"$enable_python" = xyes])
AM_MISSING_PROG([RAGEL], [ragel])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment