From 8d2f483b28f8418703982658b3e7dda7a96ad335 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 24 May 2018 17:46:07 +0300 Subject: Various fixes * src/input-std.c: Bugfix * doc/gdbm.texi: Document changes. * README: Update. * configure.ac: New option --enable-gdbmtool-debug. * src/Makefile.am: Conditionally augment AM_YFLAGS and AM_LFLAGS with options that enable debugging. * src/gdbmtool.c: Conditionally enable --lex-trace and --gram-trace options. * src/gram.y: Likewise. * src/lex.l: Likewise. * tests/Makefile.am: Remove architecure-dependent tests. * tests/testsuite.at: Likewise. --- configure.ac | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 25c4ff4..eff0083 100644 --- a/configure.ac +++ b/configure.ac @@ -39,20 +39,36 @@ AC_SUBST([GDBM_VERSION_PATCH], m4_ifdef([_GDBM_VERSION_PATCH],_GDBM_VERSION_PATC AC_ARG_ENABLE([memory-mapped-io], AC_HELP_STRING( - [--enable-memory-mapped-io] + [--enable-memory-mapped-io], [Use mmap(2) for disk I/O. (Default is YES.)]), - [mapped_io=$enableval], - [mapped_io=yes]) + [mapped_io=$enableval], + [mapped_io=yes]) AC_ARG_ENABLE([libgdbm-compat], AC_HELP_STRING( - [--enable-libgdbm-compat] + [--enable-libgdbm-compat], [Build and install libgdbm_compat. (Default is NO.)]), - [want_compat=$enableval], - [want_compat=no]) + [want_compat=$enableval], + [want_compat=no]) AC_ARG_VAR([COMPATINCLUDEDIR],[installation directory for dbm.h and ndbm.h]) test -z "$COMPATINCLUDEDIR" && COMPATINCLUDEDIR='$(includedir)' +AC_ARG_ENABLE([gdbmtool-debug], + AC_HELP_STRING( + [--enable-gdbmtool-debug], + [instrument gdbmtool for additional debugging]), + [want_gdbmtool_debug=$enableval], + [want_gdbmtool_debug=no]) + +AC_SUBST(YFLAGS_DEBUG) +AC_SUBST(LFLAGS_DEBUG) +if test "$want_gdbmtool_debug" = yes; then + YFLAGS_DEBUG=-t + LFLAGS_DEBUG=-d +fi + +AM_CONDITIONAL([COND_GDBMTOOL_DEBUG], [test "$want_gdbmtool_debug" = yes]) + dnl Check for programs AC_PROG_CC AC_PROG_CPP -- cgit v1.2.1