1 --- beecrypt-3.0.0pre/python/Makefile.am.wiget 2003-06-11 01:05:29.000000000 +0200
2 +++ beecrypt-3.0.0pre/python/Makefile.am 2003-06-11 01:07:13.000000000 +0200
6 pythondir = $(pylibdir)/site-packages
7 -python_PROGRAMS = _bc.so
10 -_bc_so_LDFLAGS = $(mylibs) $(LIBS) -shared -Wl,-soname,_bc.so
11 +python_LTLIBRARIES = _bc.la
12 +_bc_la_LDFLAGS = $(mylibs) $(LIBS) -avoid-version -module
13 +_bc_la_SOURCES = _bc-py.c mpw-py.c rng-py.c
15 -noinst_LTLIBRARIES = libbc.la
16 -libbc_la_SOURCES = _bc-py.c mpw-py.c rng-py.c
18 -_bc.so$(EXEEXT): $(libbc_la_OBJECTS)
19 - $(LINK) -o $@ $(libbc_la_OBJECTS) $(_bc_so_LDFLAGS)
21 -splint_srcs = _bc-py.c $(libbc_la_sources)
25 --- beecrypt-3.0.0/python/Makefile.am.orig 2003-06-29 15:10:28.000000000 +0200
26 +++ beecrypt-3.0.0/python/Makefile.am 2003-06-29 15:12:10.000000000 +0200
33 +PYVER= @WITH_PYTHON_VERSION@
37 -pylibdir = $(shell python -c 'import sys; print sys.path[1]')
38 +pylibdir = $(prefix)/lib/python${PYVER}
39 pyincdir = $(prefix)/include/python${PYVER}
41 EXTRA_DIST = debug-py.c
42 --- beecrypt-3.0.0/python/test/Makefile.am.orig 2003-06-29 15:12:33.000000000 +0200
43 +++ beecrypt-3.0.0/python/test/Makefile.am 2003-06-29 15:13:45.000000000 +0200
46 AUTOMAKE_OPTIONS = 1.4 foreign
49 +PYVER= @WITH_PYTHON_VERSION@
51 -pylibdir = $(shell python -c 'import sys; print sys.path[1]')
53 +pylibdir = $(prefix)/lib/python${PYVER}
54 VALGRIND = # valgrind --verbose --leak-check=yes
57 --- beecrypt-3.0.0/configure.ac.orig 2003-06-29 15:32:40.000000000 +0200
58 +++ beecrypt-3.0.0/configure.ac 2003-06-29 15:32:47.000000000 +0200
63 -AC_ARG_WITH(python,[ --with-python creates the python bindings code [default=no]],[
64 - if test "$withval" = no; then
69 - ],[ac_with_python=no])
70 +AC_ARG_WITH(python,[ --with-python creates the python bindings code])
72 # Check for Unix variants
75 AC_DEFINE([JAVAGLUE],1)
79 +if test $withval = yes ; then
80 +AC_MSG_CHECKING(for python 2.2)
82 +#include <python2.2/Python.h>
84 + exit(strncmp("2.2", PY_VERSION, 3));
86 + withval=yes, withval=no, withval=yes)
87 + AC_MSG_RESULT($withval)
88 + if test $withval = yes ; then
89 + WITH_PYTHON_VERSION="2.2"
92 + AC_MSG_CHECKING(for python 1.5.2)
94 +#include <python1.5/Python.h>
96 + exit(strcmp("1.5.2", PY_VERSION));
98 + withval=yes, withval=no, withval=yes)
99 + AC_MSG_RESULT($withval)
100 + if test $withval = yes ; then
101 + WITH_PYTHON_VERSION="1.5"
103 + AC_MSG_CHECKING(for python 2.3)
105 + #include <python2.3/Python.h>
107 + exit(strncmp("2.3", PY_VERSION, 3));
109 + withval=yes, withval=no, withval=yes)
110 + AC_MSG_RESULT($withval)
111 + if test $withval = yes ; then
112 + WITH_PYTHON_VERSION="2.3"
119 +AC_SUBST(WITH_PYTHON_VERSION)
121 # Checks for entropy sources.
122 AS_MESSAGE(checking for specific entropy devices...)