AC_PREREQ([2.67])
-AC_INIT([cryptsetup],[1.4.0])
+AC_INIT([cryptsetup],[1.4.1])
dnl library version from <major>.<minor>.<release>[-<suffix>]
LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-)
[CS_DEFINE([$1], [$3], [$2])]
)])
+dnl ==========================================================================
+dnl Python bindings
+AC_ARG_ENABLE([python], AS_HELP_STRING([--enable-python],[enable Python bindings]),
+[with_python=$enableval],
+[with_python=no])
+
+if test "x$with_python" = "xyes"; then
+ AM_PATH_PYTHON([2.4])
+
+ if ! test -x "$PYTHON-config" ; then
+ AC_MSG_ERROR([Cannot find python development packages to build bindings])
+ fi
+
+ PYTHON_INCLUDES=$($PYTHON-config --includes)
+ AC_SUBST(PYTHON_INCLUDES)
+fi
+AM_CONDITIONAL([PYTHON_CRYPTSETUP], [test "x$with_python" = "xyes"])
+
+dnl ==========================================================================
CS_STR_WITH([plain-hash], [password hashing function for plain mode], [ripemd160])
CS_STR_WITH([plain-cipher], [cipher for plain mode], [aes])
CS_STR_WITH([plain-mode], [cipher mode for plain mode], [cbc-essiv:sha256])
po/Makefile.in
man/Makefile
tests/Makefile
+python/Makefile
])
AC_OUTPUT