summaryrefslogtreecommitdiff
path: root/lib/libevent
diff options
context:
space:
mode:
authortls <tls@NetBSD.org>2009-08-19 01:38:39 +0000
committertls <tls@NetBSD.org>2009-08-19 01:38:39 +0000
commitcf13201bd8033521218dd2b4f07720c7fddeaadf (patch)
treeaf8585dcb00e9848793a6559b63987a777f29eb8 /lib/libevent
parent21d93c9335a2650764270a73c18cd60ae4beb119 (diff)
Matthias Drochner pointed out that I lost the _EVENT_ prefix from all
the autoconf defines in the installed event_config.h. Of course, the libevent documentation basically says not to use event_config.h, so it is a little hard to see why the right fix isn't to just not install it... ...in any event, fix this approximately as the stock libevent Makefile does.
Diffstat (limited to 'lib/libevent')
-rw-r--r--lib/libevent/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libevent/Makefile b/lib/libevent/Makefile
index d2d84a1926e..0b964ff6b8a 100644
--- a/lib/libevent/Makefile
+++ b/lib/libevent/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2009/07/26 21:33:46 tls Exp $
+# $NetBSD: Makefile,v 1.7 2009/08/19 01:38:39 tls Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93
NOLINT= # Until someone explains to me how to avoid lint stupidity
@@ -11,12 +11,9 @@ LIB= event
SRCS= buffer.c evbuffer.c evdns.c event.c event_tagging.c evrpc.c evutil.c \
http.c kqueue.c log.c poll.c signal.c
-INCS= evdns.h event.h evhttp.h evrpc.h evutil.h
+INCS= evdns.h event.h evhttp.h evrpc.h evutil.h event_config.h
INCSDIR=/usr/include
-INCS+= config.h
-INCSNAME_config.h= event-config.h
-
MAN= evdns.3 event.3
MLINKS+=event.3 event_init.3
@@ -92,4 +89,7 @@ MLINKS+=evdns.3 evdns_search_add.3
MLINKS+=evdns.3 evdns_search_ndots_set.3
MLINKS+=evdns.3 evdns_set_log_fn.3
+event_config.h: config.h
+ sed -e 's/#define /#define _EVENT_/' ${.ALLSRC} > ${.OBJDIR}/${.TARGET}
+
.include <bsd.lib.mk>