Fix build with BR2_ENABLE_DEBUG=yes, no need for expert mode anymore
Otherwise configure issues this error message:
configure: error: --enable-debug cannot be used in conjunction with --enable-expert-mode
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
This patch also removes the hard-coded CFLAGS provided by beecrypt in favour
of the CFLAGS provided by buildroot.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
--- beecrypt-4.2.1/configure.ac
+++ beecrypt-4.2.1/configure.ac
# Checks for package options
AC_ARG_ENABLE(expert-mode, [ --enable-expert-mode follow user-defined CFLAGS settings [[default=no]]],[
- ac_enable_expert_mode=yes
+ ac_enable_expert_mode=$enableval
if test "X$CFLAGS" != "X"; then
echo "enabling expert mode"
if test "$ac_enable_expert_mode" = yes; then
AC_MSG_ERROR([--enable-debug cannot be used in conjunction with --enable-expert-mode])
+ ac_enable_debug=$enableval
ac_cv_python_include="-I`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc()'`"
AC_CACHE_CHECK([where to install python libraries], ac_cv_python_libdir, [
- ac_cv_python_libdir=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()'`
+ ac_cv_python_libdir=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1, 0)'`
--- beecrypt-4.2.1/acinclude.m4
+++ beecrypt-4.2.1/acinclude.m4
@@ -498,15 +498,6 @@ AC_DEFUN([BEE_GNU_CC],[
AC_SUBST(OPENMP_LIBS,"-lgomp")
- x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona)
# HP/UX on Itanium needs to be told that a long is 64-bit!
@@ -525,17 +516,8 @@ AC_DEFUN([BEE_GNU_CC],[
# Certain platforms needs special flags for multi-threaded code
if test "$ac_enable_threads" = yes; then
@@ -646,14 +646,6 @@ dnl BEE_GNU_CXX
AC_REQUIRE([AC_PROG_CXX])
- x86_64 | athlon64 | athlon-fx | k8 | opteron | em64t | nocona | core2)