diff --git a/configure.in b/configure.in index cbe6a7f..782b51c 100644 --- a/configure.in +++ b/configure.in @@ -129,7 +129,7 @@ AC_DEFUN([CAIRO_BACKEND_ENABLE], esac if test "x$use_$1" = xyes; then AC_MSG_NOTICE([creating src/cairo-$4.pc]) - mkdir src + mkdir -p src AS_IF([sed \ -e "s/@backend_name@/$4/g" \ -e "s/@Backend_Name@/$2/g" \ @@ -732,7 +732,6 @@ Makefile pixman/Makefile pixman/src/Makefile src/Makefile -src/cairo-features.h test/Makefile doc/Makefile doc/public/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 4bada6b..4c4ac69 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -156,6 +156,7 @@ libcairo_la_SOURCES = \ cairo-arc.c \ cairo-arc-private.h \ cairo-array.c \ + cairo-output-stream-private.h \ cairo-base85-stream.c \ cairo-cache.c \ cairo-cache-private.h \ @@ -232,8 +233,20 @@ libcairo_la_DEPENDENCIES = $(cairo_def_d pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = cairo.pc $(backend_pkgconfigs) DISTCLEANFILES = $(backend_pkgconfigs) -EXTRA_DIST = cairo-backend.pc.in +EXTRA_DIST = cairo-backend.pc.in cairo-features.h.in +cairo-features.h: stamp-cairo-features.h + @if test -f stamp-cairo-features.h; then :; \ + else $(MAKE) stamp-cairo-features.h; fi +stamp-cairo-features.h: $(top_builddir)/config.status $(srcdir)/cairo-features.h.in + cp $(srcdir)/cairo-features.h.in stamp-cairo-features.h.in && \ + cd $(top_builddir) && $(SHELL) ./config.status --file=src/stamp-cairo-features.h + rm -f stamp-cairo-features.h.in + if cmp -s stamp-cairo-features.h cairo-features.h; then : ; \ + else echo "Creating cairo-features.h" ; \ + cp stamp-cairo-features.h cairo-features.h; fi +DISTCLEANFILES += stamp-cairo-features.h stamp-cairo-features.h.in cairo-features.h +BUILT_SOURCES = cairo-features.h cairo.def: $(cairo_win32_api_headers) (echo EXPORTS; \