1 Fix build with BR2_ENABLE_DEBUG=yes, no need for expert mode anymore
3 Otherwise configure issues this error message:
4 configure: error: --enable-debug cannot be used in conjunction with --enable-expert-mode
6 Downloaded from Gentoo:
7 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/beecrypt/files/beecrypt-4.2.1-build-system.patch?revision=1.2&view=markup
9 This patch also removes the hard-coded CFLAGS provided by beecrypt in favour
10 of the CFLAGS provided by buildroot.
12 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
14 --- beecrypt-4.2.1/configure.ac
15 +++ beecrypt-4.2.1/configure.ac
18 # Checks for package options
19 AC_ARG_ENABLE(expert-mode, [ --enable-expert-mode follow user-defined CFLAGS settings [[default=no]]],[
20 - ac_enable_expert_mode=yes
21 + ac_enable_expert_mode=$enableval
23 if test "X$CFLAGS" != "X"; then
24 echo "enabling expert mode"
26 if test "$ac_enable_expert_mode" = yes; then
27 AC_MSG_ERROR([--enable-debug cannot be used in conjunction with --enable-expert-mode])
30 + ac_enable_debug=$enableval
35 ac_cv_python_include="-I`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc()'`"
37 AC_CACHE_CHECK([where to install python libraries], ac_cv_python_libdir, [
38 - ac_cv_python_libdir=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()'`
39 + ac_cv_python_libdir=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1, 0)'`
43 --- beecrypt-4.2.1/acinclude.m4
44 +++ beecrypt-4.2.1/acinclude.m4
45 @@ -498,15 +498,6 @@ AC_DEFUN([BEE_GNU_CC],[
46 AC_SUBST(OPENMP_LIBS,"-lgomp")
48 case $bc_target_arch in
49 - x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona)
60 # HP/UX on Itanium needs to be told that a long is 64-bit!
61 @@ -525,17 +516,8 @@ AC_DEFUN([BEE_GNU_CC],[
77 # Certain platforms needs special flags for multi-threaded code
78 if test "$ac_enable_threads" = yes; then
79 @@ -646,14 +646,6 @@ dnl BEE_GNU_CXX
80 AC_DEFUN([BEE_GNU_CXX],[
81 AC_REQUIRE([AC_PROG_CXX])
82 case $bc_target_arch in
83 - x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona | core2)
93 # HP/UX on Itanium needs to be told that a long is 64-bit!
94 @@ -672,17 +664,8 @@ AC_DEFUN([BEE_GNU_CXX],[
106 - sparc64 | sparcv9*)
110 # Certain platforms needs special flags for multi-threaded code
111 if test "$ac_enable_threads" = yes; then
112 --- beecrypt-4.2.1/java/Makefile.am
113 +++ beecrypt-4.2.1/java/Makefile.am
116 INCLUDES = -I$(top_srcdir)/include
118 -libaltdir=$(prefix)/lib@LIBALT@
121 libalt_LTLIBRARIES = libbeecrypt_java.la
123 --- beecrypt-4.2.1/acinclude.m4
124 +++ beecrypt-4.2.1/acinclude.m4
125 @@ -1589,20 +1589,5 @@
126 AC_SUBST(TYPEDEF_BC_THREADID_T,$bc_typedef_bc_threadid_t)
135 -# define _LIBC_REENTRANT
145 dnl BEE_THREAD_LOCAL_STORAGE
146 @@ -1623,7 +1609,5 @@
150 -#if !ENABLE_THREAD_LOCAL_STORAGE
153 +#include "config.threads.h"
155 --- beecrypt-4.2.1/config.threads.h
156 +++ beecrypt-4.2.1/config.threads.h
163 +# define _LIBC_REENTRANT
171 +#if !ENABLE_THREAD_LOCAL_STORAGE