Generate an error during make install if old cairo headers are found in includedir, (rather than includedir/cairo where the new ones are going).

This commit is contained in:
Carl Worth 2005-02-04 08:04:36 +00:00
parent 56d84bb856
commit 5707a69bfc
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-02-04 Carl Worth <cworth@cworth.org>
* src/Makefile.am: Generate an error during make install if old
cairo headers are found in includedir, (rather than
includedir/cairo where the new ones are going).
2005-02-03 Owen Taylor <otaylor@redhat.com>
* src/cairo_ft_font.c (_cairo_ft_font_text_to_glyphs,

View file

@ -121,3 +121,13 @@ libcairo_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
INCLUDES = -I$(srcdir) $(CAIRO_CFLAGS)
libcairo_la_LIBADD = $(CAIRO_LIBS)
install-data-local:
@if test -f $(includedir)/cairo.h || test -f $(includedir)/cairo-features.h ; then \
echo "****************************************************************" ; \
echo "*** Error: Old headers found. You should remove the following" ; \
echo "*** files and then type 'make install' again." ; \
ls $(includedir)/cairo*.h ; \
echo "****************************************************************" ; \
false ; \
fi