Skip to content

Commit

Permalink
build: remove awk and non-standard autoconf output processing
Browse files Browse the repository at this point in the history
Replace with simpler environment solution.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Samuli Seppänen <samuli@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
  • Loading branch information
alonbl authored and David Sommerseth committed Mar 22, 2012
1 parent e02570f commit fcff80a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 86 deletions.
12 changes: 2 additions & 10 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ MAINTAINERCLEANFILES = \
$(srcdir)/depcomp $(srcdir)/aclocal.m4 \
$(srcdir)/config.guess $(srcdir)/config.sub \
$(srcdir)/openvpn.spec
CLEANFILES = openvpn.8.html configure.h
CLEANFILES = openvpn.8.html

EXTRA_DIST = \
sample-config-files \
Expand All @@ -57,8 +57,7 @@ dist_doc_DATA = \

dist_noinst_SCRIPTS = \
$(TESTS) \
t_cltsrv-down.sh \
configure_h.awk configure_log.awk
t_cltsrv-down.sh

dist_doc_DATA = \
COPYRIGHT.GPL \
Expand Down Expand Up @@ -156,13 +155,6 @@ openvpn_SOURCES = \
win32.h win32.c \
cryptoapi.h cryptoapi.c

nodist_openvpn_SOURCES = configure.h
options.$(OBJEXT): configure.h

configure.h: Makefile
awk -f $(srcdir)/configure_h.awk config.h > $@
awk -f $(srcdir)/configure_log.awk config.log >> $@

if WIN32
dist_noinst_DATA += openvpn.8
nodist_html_DATA = openvpn.8.html
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,9 @@ if test "${enable_strict}" = "yes"; then
CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
fi

CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
AC_DEFINE_UNQUOTED([CONFIGURE_DEFINES], ["`echo ${CONFIGURE_DEFINES}`"], [Configuration settings])

TAP_WIN_COMPONENT_ID="PRODUCT_TAP_WIN_COMPONENT_ID"
TAP_WIN_MIN_MAJOR="PRODUCT_TAP_WIN_MIN_MAJOR"
TAP_WIN_MIN_MINOR="PRODUCT_TAP_WIN_MIN_MINOR"
Expand Down
39 changes: 0 additions & 39 deletions configure_h.awk

This file was deleted.

33 changes: 0 additions & 33 deletions configure_log.awk

This file was deleted.

4 changes: 0 additions & 4 deletions options.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#include "helper.h"
#include "manage.h"
#include "forward.h"
#include "configure.h"
#include <ctype.h>

#include "memdbg.h"
Expand Down Expand Up @@ -3403,9 +3402,6 @@ usage_version (void)
msg (M_INFO|M_NOPREFIX, "Originally developed by James Yonan");
msg (M_INFO|M_NOPREFIX, "Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>");
#ifndef ENABLE_SMALL
#ifdef CONFIGURE_CALL
msg (M_INFO|M_NOPREFIX, "\n%s\n", CONFIGURE_CALL);
#endif
#ifdef CONFIGURE_DEFINES
msg (M_INFO|M_NOPREFIX, "Compile time defines: %s", CONFIGURE_DEFINES);
#endif
Expand Down

0 comments on commit fcff80a

Please sign in to comment.