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 |
||
13 |
AC_DEFUN([PANDORA_WITH_PYTHON], [ |
|
14 |
||
15 |
AC_ARG_WITH([python], |
|
16 |
[AS_HELP_STRING([--with-python], |
|
17 |
[Build Python Bindings @<:@default=yes@:>@])], |
|
1241.15.4
by Monty Taylor
pandora-build v0.88 |
18 |
[with_python=$withval |
19 |
python_requested=$withval
|
|
20 |
], |
|
21 |
[with_python=yes |
|
22 |
python_requested=no
|
|
23 |
]) |
|
1099.1.1
by Monty Taylor
pandora-build v0.23 |
24 |
|
25 |
AS_IF([test "x$with_python" != "xno"],[ |
|
26 |
AS_IF([test "x$with_python" != "xyes"],[PYTHON=$with_python]) |
|
27 |
AM_PATH_PYTHON([2.4],,[with_python="no"]) |
|
28 |
AC_PYTHON_DEVEL() |
|
29 |
AS_IF([test "x$pythonexists" = "xno"],[with_python="no"]) |
|
30 |
]) |
|
1241.15.4
by Monty Taylor
pandora-build v0.88 |
31 |
AS_IF([test "x$with_python" = "xno" -a "$python_requested" = "yes"],[ |
2221.1.8
by Monty Taylor
Adds ability to just build libdrizzle without needing all of the rest of the |
32 |
PANDORA_MSG_ERROR([Python support was explicity requested, but Python support
|
1241.15.4
by Monty Taylor
pandora-build v0.88 |
33 |
was not found. Please correct your build environment and try
|
34 |
again]) |
|
35 |
]) |
|
1099.1.1
by Monty Taylor
pandora-build v0.23 |
36 |
AM_CONDITIONAL(BUILD_PYTHON, [test "$with_python" = "yes"]) |
37 |
]) |