diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-09-03 13:09:09 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-09-03 13:09:57 +0300 |
commit | f8c9564a5473d10954ca5cf914064947ca53780c (patch) | |
tree | 02b88306b010d696f776c8f7810e3ef0ce085662 | |
parent | 1bc9aaf9195fb0526693c4222056be78d52758fc (diff) | |
download | dico-f8c9564a5473d10954ca5cf914064947ca53780c.tar.gz dico-f8c9564a5473d10954ca5cf914064947ca53780c.tar.bz2 |
Fix misplaced AM_CONDITIONAL
* modules/python/module.ac: Move PYTHON3_COND out of the
conditional context
-rw-r--r-- | modules/python/module.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/python/module.ac b/modules/python/module.ac index 876b6b6..0e4abee 100644 --- a/modules/python/module.ac +++ b/modules/python/module.ac @@ -24,6 +24,7 @@ case "${withval}" in *) AC_MSG_ERROR(bad value ${withval} for --without-python) ;; esac],[status_python=yes]) +PYTHON3_COND=0 if test "$status_python" = yes; then AC_ARG_VAR([PYTHON], [The name of python binary]) AC_PATH_PROG([PYTHON], python) @@ -37,9 +38,10 @@ if test "$status_python" = yes; then import sys exit(1 if sys.version_info[[0]] == 3 else 0) EOT - AM_CONDITIONAL([PYTHON3_COND],[test $? -eq 1]) + PYTHON3_COND=$? else status_python=no fi fi AM_CONDITIONAL([PYTHON_COND],[test $status_python = yes]) +AM_CONDITIONAL([PYTHON3_COND],[test $PYTHON3_COND -eq 1]) |