diff --git a/ChangeLog b/ChangeLog index dc9dd49..6ef1a56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ 1.9.1: - - fixed messed up configure flags, backward - compatible again + - fixed messed up configure flags, backward, be compatible again + - fixed berkeley m4 makro, again - removed bashisms in samples - applied patch of freebsd port diff --git a/VERSION b/VERSION index 9ab8337..ee672d8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.9.1 +1.9.1 \ No newline at end of file diff --git a/config/ax_berkeley_db_cxx.m4 b/config/ax_berkeley_db_cxx.m4 index 78a2ce8..1d2ae00 100644 --- a/config/ax_berkeley_db_cxx.m4 +++ b/config/ax_berkeley_db_cxx.m4 @@ -75,11 +75,11 @@ AC_DEFUN([AX_BERKELEY_DB_CXX], AC_MSG_CHECKING([for Berkeley DB (C++)]) else minvermajor=`echo $minversion | cut -d. -f1` - minverminor=`echo $minversion | cut -d. -f2` - minverpatch=`echo $minversion | cut -d. -f3` - minvermajor=${minvermajor:-0} - minverminor=${minverminor:-0} - minverpatch=${minverpatch:-0} + minverminor=`echo $minversion | cut -d. -f2 -s` + minverpatch=`echo $minversion | cut -d. -f3 -s` + if test -z "$minvermajor"; then minvermajor=0; fi + if test -z "$minverminor"; then minverminor=0; fi + if test -z "$minverpatch"; then minverpatch=0; fi AC_MSG_CHECKING([for Berkeley DB (C++) >= $minvermajor.$minverminor.$minverpatch]) fi @@ -95,12 +95,12 @@ AC_DEFUN([AX_BERKELEY_DB_CXX], for version in "${major}.${minor}" "${major}${minor}"; do try_libs="-ldb_cxx-${version}%-ldb-${version} -ldb${version}_cxx%-ldb${version}" - try_headers="db$version/db_cxx.h db`echo $version | sed -e 's,\..*,,g'`/db_cxx.h" - + try_headers="db${major}.${minor}/db_cxx.h db${major}${minor}/db_cxx.h db${major}/db_cxx.h" for db_cxx_hdr in $try_headers ; do for db_cxx_lib in $try_libs; do db_cxx_lib="$libdbdir `echo "$db_cxx_lib" | sed 's/%/ /g'`" LIBS="$old_LIBS $db_cxx_lib" + #echo "Trying <$db_cxx_lib> <$db_cxx_hdr>" if test -z $DB_CXX_HEADER ; then AC_LINK_IFELSE( [AC_LANG_PROGRAM( diff --git a/configure.ac b/configure.ac index 72dec3c..4af3162 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_PREREQ(2.61) -define([dbtoolversion], esyscmd([sh -c "cat VERSION|head -1"])) +define([dbtoolversion], esyscmd([sh -c "cat VERSION"]))dnl # what we are compiling AC_INIT([dbtool], [dbtoolversion], [tlinden@cpan.org]) @@ -211,7 +211,7 @@ if test "$GDBM" = "no"; then export LDFLAGS export LIBS export CXXFLAGS - AX_BERKELEY_DB_CXX([4.0.0],[ + AX_BERKELEY_DB_CXX([4],[ LDFLAGS="$DB_CXX_LIBS $LDFLAGS" BERKELEY="yes" ],[BERKELEY="no"])