From: Kevin Bowling Date: Thu, 23 Dec 2010 05:53:03 +0000 (-0700) Subject: Filter '# define' statements from autoconf and generate event-private.h X-Git-Tag: release-2.1.1-alpha~320^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=321b558793db13ed3e57bb615d7811add6e10d6a;p=libevent Filter '# define' statements from autoconf and generate event-private.h --- diff --git a/Makefile.am b/Makefile.am index ab8df26e..b5c1a139 100644 --- a/Makefile.am +++ b/Makefile.am @@ -125,7 +125,10 @@ if SIGNAL_SUPPORT SYS_SRC += signal.c endif -BUILT_SOURCES = ./include/event2/event-config.h +BUILT_SOURCES = ./include/event2/event-config.h event-private.h + +event-private.h: config.h + cp config.h $@ ./include/event2/event-config.h: config.h @MKDIR_P@ ./include/event2 @@ -143,6 +146,7 @@ BUILT_SOURCES = ./include/event2/event-config.h sed -e 's/#define /#define _EVENT_/' \ -e 's/#undef /#undef _EVENT_/' \ + -e 's/# define /# define _EVENT_/' \ -e 's/#ifndef /#ifndef _EVENT_/' < config.h >> $@ echo "#endif" >> $@ @@ -206,5 +210,5 @@ doxygen: FORCE doxygen $(srcdir)/Doxyfile FORCE: -DISTCLEANFILES = *~ libevent.pc ./include/event2/event-config.h +DISTCLEANFILES = *~ libevent.pc ./include/event2/event-config.h event-private.h