v2.8.4 Patches for mod_php build issues
Full localization of strings thanks to Thorsten Kukuk.
+ Patches for python binding support thanks to Nalin Dahyabhai
v2.8.3 Deal with integer type and header portability issues
v2.8.2 Check for LINE_MAX, cygwin workaround (sf patch #125964, Jürgen)
Fix a buffer overflow in packlib file handling (not a security issue)
AC_HELP_STRING(--without,[Build a python module (default auto)]),
build_python=$withval,build_python=auto)
if test "$build_python" != no ; then
- AM_PATH_PYTHON(,,[
- if test "$build_python" = auto ; then
- AC_MSG_WARN([python was not found, continuing])
- build_python=no
- else
- AC_MSG_ERROR([python was required but not found])
+ AM_PATH_PYTHON(,,
+ [if test "$build_python" != yes ; then
+ AC_MSG_WARN([python was not found, continuing])
+ build_python=no
+ else
+ AC_MSG_ERROR([python was required but not found])
+ fi])
+ if test "$build_python" != no ; then
+ AC_CHECK_HEADERS(python${PYTHON_VERSION}/Python.h,,
+ [if test "$build_python" != yes ; then
+ AC_MSG_WARN([python headers not found, continuing])
+ build_python=no
+ else
+ AC_MSG_ERROR([python headers not found])
+ fi])
fi
- ])
if test "$build_python" != no ; then
build_python=yes
fi
fi
+if test $build_python = yes ; then
+ AC_CHECK_HEADERS(python${PYTHON_VERSION}/Python.h,,
+ [AC_MSG_ERROR([python headers not found])])
+fi
AM_CONDITIONAL(BUILD_PYTHON,[test "$build_python" = "yes"])
AC_OUTPUT(util/Makefile lib/Makefile doc/Makefile python/Makefile Makefile \
if BUILD_PYTHON
pyexec_LTLIBRARIES = cracklibmodule.la
cracklibmodule_la_LDFLAGS = -module -avoid-version
-INCLUDES = -I${PYTHON_PREFIX}/include/python${PYTHON_VERSION} -I/usr/include/python${PYTHON_VERSION}
DEFS += '-DDEFAULT_CRACKLIB_DICT="$(pkgdatadir)/pw_dict"'
+DEFS += '-DPYTHON_H="python@PYTHON_VERSION@/Python.h"'
endif