Commit 9ee6ed64 9ee6ed64731376565c0f489408a08b6c0f88d97f by Sergey Poznyakoff

(AM_CPPFLAGS): Add -D_GNU_SOURCE=1, needed for compiling lex sources

1 parent c84f5581
......@@ -123,7 +123,7 @@ mailutils-mh.el: mailutils-mh.eli
sed "s,BINDIR,$(bindir),g;s,MHLIBDIR,$(mhlibdir),g" $< > $@
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib -I${top_builddir}/include/mailutils/gnu -I${top_srcdir}/mailbox @INTLINCS@
AM_CPPFLAGS = -DMHLIBDIR=\"$(mhlibdir)\" -DMHBINDIR=\"$(bindir)\"
AM_CPPFLAGS = -D_GNU_SOURCE -DMHLIBDIR=\"$(mhlibdir)\" -DMHBINDIR=\"$(bindir)\"
mh_LIBS = \
./libmh.a\
../lib/libmuaux.la\
......
......@@ -33,6 +33,7 @@ mimeview_SOURCES = \
YLWRAP = $(SHELL) $(top_srcdir)/scripts/ylwrap
AM_YFLAGS=-vt
AM_LEXFLAGS=-d
AM_CPPFLAGS=-D_GNU_SOURCE=1
EXTRA_DIST = mimetypes.y mimetypes.l
mimetypes-gram.c mimetypes-decl.h: $(srcdir)/mimetypes.y
......