1 --- beecrypt-3.0.0/python/Makefile.am.orig 2003-06-29 15:10:28.000000000 +0200
2 +++ beecrypt-3.0.0/python/Makefile.am 2003-06-29 15:12:10.000000000 +0200
9 +PYVER= @WITH_PYTHON_VERSION@
13 -pylibdir = $(shell python -c 'import sys; print sys.path[1]')
14 +pylibdir = $(prefix)/lib/python${PYVER}
15 pyincdir = $(prefix)/include/python${PYVER}
17 EXTRA_DIST = debug-py.c
18 --- beecrypt-3.0.0/python/test/Makefile.am.orig 2003-06-29 15:12:33.000000000 +0200
19 +++ beecrypt-3.0.0/python/test/Makefile.am 2003-06-29 15:13:45.000000000 +0200
22 AUTOMAKE_OPTIONS = 1.4 foreign
25 +PYVER= @WITH_PYTHON_VERSION@
27 -pylibdir = $(shell python -c 'import sys; print sys.path[1]')
29 +pylibdir = $(prefix)/lib/python${PYVER}
30 VALGRIND = # valgrind --verbose --leak-check=yes
33 --- beecrypt-3.0.0/configure.ac.orig 2003-06-29 15:32:40.000000000 +0200
34 +++ beecrypt-3.0.0/configure.ac 2003-06-29 15:32:47.000000000 +0200
39 -AC_ARG_WITH(python,[ --with-python creates the python bindings code [default=no]],[
40 - if test "$withval" = no; then
45 - ],[ac_with_python=no])
46 +AC_ARG_WITH(python,[ --with-python creates the python bindings code])
48 # Check for Unix variants
51 AC_DEFINE([JAVAGLUE],1)
55 +if test $withval = yes ; then
56 +AC_MSG_CHECKING(for python 2.4)
58 +#include <python2.4/Python.h>
60 + exit(strncmp("2.4", PY_VERSION, 3));
62 + withval=yes, withval=no, withval=yes)
63 + AC_MSG_RESULT($withval)
64 + if test $withval = yes ; then
65 + WITH_PYTHON_VERSION="2.4"
67 + AC_MSG_CHECKING(for python 2.2)
69 +#include <python2.2/Python.h>
71 + exit(strncmp("2.2", PY_VERSION, 3));
73 + withval=yes, withval=no, withval=yes)
74 + AC_MSG_RESULT($withval)
75 + if test $withval = yes ; then
76 + WITH_PYTHON_VERSION="2.2"
79 + AC_MSG_CHECKING(for python 1.5.2)
81 +#include <python1.5/Python.h>
83 + exit(strcmp("1.5.2", PY_VERSION));
85 + withval=yes, withval=no, withval=yes)
86 + AC_MSG_RESULT($withval)
87 + if test $withval = yes ; then
88 + WITH_PYTHON_VERSION="1.5"
90 + AC_MSG_CHECKING(for python 2.3)
92 + #include <python2.3/Python.h>
94 + exit(strncmp("2.3", PY_VERSION, 3));
96 + withval=yes, withval=no, withval=yes)
97 + AC_MSG_RESULT($withval)
98 + if test $withval = yes ; then
99 + WITH_PYTHON_VERSION="2.3"
107 +AC_SUBST(WITH_PYTHON_VERSION)
109 # Checks for entropy sources.
110 AS_MESSAGE(checking for specific entropy devices...)