1099.1.1
by Monty Taylor
pandora-build v0.23 |
1 |
dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*- |
2 |
dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab: |
|
3 |
dnl |
|
4 |
dnl pandora-build: A pedantic build system |
|
5 |
dnl Copyright (C) 2009 Sun Microsystems, Inc. |
|
1126.6.8
by Monty Taylor
pandora-build v0.62 - cleaned up some copyright header mistakes. Merged in trond's innodb detection. |
6 |
dnl This file is free software; Sun Microsystems |
1099.1.1
by Monty Taylor
pandora-build v0.23 |
7 |
dnl gives unlimited permission to copy and/or distribute it, |
8 |
dnl with or without modifications, as long as this notice is preserved. |
|
9 |
dnl
|
|
10 |
dnl From Monty Taylor |
|
11 |
||
12 |
AC_DEFUN([PANDORA_WITH_PYTHON3], [ |
|
13 |
||
14 |
AC_REQUIRE([PANDORA_SWIG]) |
|
15 |
||
16 |
AC_ARG_WITH([python3], |
|
17 |
[AS_HELP_STRING([--with-python3], |
|
1093.9.25
by Monty Taylor
pandora-build v0.51 |
18 |
[Build Python3 Bindings @<:@default=yes@:>@])],[ |
19 |
with_python3=$withval
|
|
20 |
python3_requested=yes
|
|
21 |
],[ |
|
22 |
with_python3=yes
|
|
23 |
python3_requested=no
|
|
24 |
]) |
|
1099.1.1
by Monty Taylor
pandora-build v0.23 |
25 |
|
1093.9.25
by Monty Taylor
pandora-build v0.51 |
26 |
AS_IF([test "x$ac_cv_swig_has_python3_" != "xyes"],[ |
27 |
with_python3=no
|
|
28 |
],[ |
|
1099.1.1
by Monty Taylor
pandora-build v0.23 |
29 |
AS_IF([test "x$with_python3" != "xno"],[ |
30 |
AS_IF([test "x$with_python3" != "xyes"], |
|
1093.9.25
by Monty Taylor
pandora-build v0.51 |
31 |
[PYTHON3=$with_python3],[ |
32 |
AC_PATH_PROG([PYTHON3],[python3],[no]) |
|
33 |
PANDORA_PYTHON3_DEVEL() |
|
34 |
AS_IF([test "x$python3exists" = "xno"],[with_python="no"]) |
|
1099.1.1
by Monty Taylor
pandora-build v0.23 |
35 |
]) |
36 |
]) |
|
1093.9.25
by Monty Taylor
pandora-build v0.51 |
37 |
]) |
38 |
AS_IF([test "x$with_python3" = "xno" -a "$python3_requested" = "yes"],[ |
|
39 |
AC_MSG_ERROR([Python3 support was explicity requested, but Python3 support
|
|
40 |
was not found. Please correct your build environment and try
|
|
41 |
again]) |
|
42 |
]) |
|
43 |
AM_CONDITIONAL(BUILD_PYTHON3, [test "$with_python3" = "yes"]) |
|
1099.1.1
by Monty Taylor
pandora-build v0.23 |
44 |
]) |