projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in additional language plus some of the configure language for
[awesomized/libmemcached]
/
m4
/
pandora_with_python.m4
diff --git
a/m4/pandora_with_python.m4
b/m4/pandora_with_python.m4
index 348e7edd82b424d1e57c1755ccbcee4700091159..5b28c8ed0e233e28652bcdc0cb3d150a9ea9ddf2 100644
(file)
--- a/
m4/pandora_with_python.m4
+++ b/
m4/pandora_with_python.m4
@@
-15,8
+15,12
@@
AC_DEFUN([PANDORA_WITH_PYTHON], [
AC_ARG_WITH([python],
[AS_HELP_STRING([--with-python],
[Build Python Bindings @<:@default=yes@:>@])],
AC_ARG_WITH([python],
[AS_HELP_STRING([--with-python],
[Build Python Bindings @<:@default=yes@:>@])],
- [with_python=$withval],
- [with_python=yes])
+ [with_python=$withval
+ python_requested=$withval
+ ],
+ [with_python=yes
+ python_requested=no
+ ])
AS_IF([test "x$with_python" != "xno"],[
AS_IF([test "x$with_python" != "xyes"],[PYTHON=$with_python])
AS_IF([test "x$with_python" != "xno"],[
AS_IF([test "x$with_python" != "xyes"],[PYTHON=$with_python])
@@
-24,5
+28,10
@@
AC_DEFUN([PANDORA_WITH_PYTHON], [
AC_PYTHON_DEVEL()
AS_IF([test "x$pythonexists" = "xno"],[with_python="no"])
])
AC_PYTHON_DEVEL()
AS_IF([test "x$pythonexists" = "xno"],[with_python="no"])
])
+ AS_IF([test "x$with_python" = "xno" -a "$python_requested" = "yes"],[
+ AC_MSG_ERROR([Python support was explicity requested, but Python support
+ was not found. Please correct your build environment and try
+ again])
+ ])
AM_CONDITIONAL(BUILD_PYTHON, [test "$with_python" = "yes"])
])
AM_CONDITIONAL(BUILD_PYTHON, [test "$with_python" = "yes"])
])