From f27bf509315a48b0070294c3993a718df0c2626c Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 8 Apr 2010 20:31:01 +0200 Subject: Add comile time information/settings from ./configure to --version This patch will create ./configure.h which will contain two new #define strings. CONFIGURE_DEFINES will contain all USE, ENABLED, DISABLED and DEPRECATED defines from ./config.h. CONFIGURE_CALL will contain the complete ./configure line which was used when configuring the package for building. Signed-off-by: David Sommerseth Acked-by: James Yonan --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 7bccc11..20453d0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,6 +6,7 @@ # packet compression. # # Copyright (C) 2002-2009 OpenVPN Technologies, Inc. +# Copyright (C) 2010 David Sommerseth # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 @@ -140,6 +141,12 @@ openvpn_SOURCES = \ win32.h win32.c \ cryptoapi.h cryptoapi.c +configure.h: Makefile + awk -f configure_h.awk config.h > $@ + awk -f configure_log.awk config.log >> $@ + +clean-local: + -rm -f configure.h dist-hook: cd $(distdir) && for i in $(EXTRA_DIST) $(SUBDIRS) ; do find $$i -name .svn -type d -prune -exec rm -rf '{}' ';' ; rm -f `find $$i -type f | grep -E '(^|\/)\.?\#|\~$$|\.s?o$$'` ; done -- cgit v1.2.3