From 1e94c7e9d3ef3caa34761c2509c1fef0499db411 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 28 Mar 2007 09:13:33 +0000 Subject: [PATCH] let DBGVER depend on --enable-debug --- Makefile | 2 ++ config.mak.in | 2 ++ configure.ac | 1 + 3 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 6152f45..7a1481a 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,9 @@ DIRS = etc src debian # keep autoconf stuff separate -include config.mak +ifeq ($(enable_debug),yes) CFLAGS += -DDBGVER="\"compiled by <$${USER}@`hostname`> at `date '+%Y-%m-%d %H:%M:%S'`\"" +endif # calculate full-path values OBJS = $(SRCS:.c=.o) diff --git a/config.mak.in b/config.mak.in index 7eb4677..93a587f 100644 --- a/config.mak.in +++ b/config.mak.in @@ -31,3 +31,5 @@ abs_top_builddir = @abs_top_builddir@ INSTALL = @INSTALL@ BININSTALL = @BININSTALL@ +enable_debug = @enable_debug@ + diff --git a/configure.ac b/configure.ac index f422fb7..c74ab49 100644 --- a/configure.ac +++ b/configure.ac @@ -83,6 +83,7 @@ else BININSTALL="$INSTALL -s" AC_MSG_RESULT([no]) fi +AC_SUBST(enable_debug) AC_SUBST(INSTALL) AC_SUBST(BININSTALL) -- 2.40.0