From fb9b835fe3c590ede744c2a7b1508b6b418a0b8e Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 23 Jul 2003 16:38:42 +0000 Subject: Define EVO_MARSHAL_RULE, which creates glib marshaller .c and .h files * configure.in: Define EVO_MARSHAL_RULE, which creates glib marshaller .c and .h files that don't cause gcc warnings * marshal.mk: The Makefile fragment used by EVO_MARSHAL_RULE. (Can't include newlines in an AC_SUBST, so we have to use AC_SUBST_FILE) * Makefile.am (EXTRA_DIST): add marshal.mk svn path=/trunk/; revision=21910 --- ChangeLog | 11 +++++++++++ Makefile.am | 1 + configure.in | 11 +++++++++-- marshal.mk | 7 +++++++ 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 marshal.mk diff --git a/ChangeLog b/ChangeLog index e527958c7d..21348fddb0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2003-07-23 Dan Winship + + * configure.in: Define EVO_MARSHAL_RULE, which creates glib + marshaller .c and .h files that don't cause gcc warnings + + * marshal.mk: The Makefile fragment used by EVO_MARSHAL_RULE. + (Can't include newlines in an AC_SUBST, so we have to use + AC_SUBST_FILE) + + * Makefile.am (EXTRA_DIST): add marshal.mk + 2003-07-20 Hasbullah Bin Pit *configure.in: Added 'ms' (Malay) to ALL_LINGUAS. diff --git a/Makefile.am b/Makefile.am index c484d41355..035b4d3d06 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,7 @@ EXTRA_DIST = \ MAINTAINERS \ NEWS \ NEWS-1.0 \ + marshal.mk \ intltool-merge.in \ intltool-update.in \ intltool-extract.in \ diff --git a/configure.in b/configure.in index 6d42574ac0..393f45a9c4 100644 --- a/configure.in +++ b/configure.in @@ -1016,6 +1016,15 @@ fi AC_SUBST(OPENSSL_CFLAGS) AC_SUBST(OPENSSL_LDFLAGS) +dnl ******************* +dnl GObject marshalling +dnl ******************* +AM_PATH_GLIB_2_0 + +dnl We use AC_SUBST_FILE because AC_SUBST won't deal with newlines +EVO_MARSHAL_RULE=$srcdir/marshal.mk +AC_SUBST_FILE(EVO_MARSHAL_RULE) + dnl ************************* dnl CFLAGS and LIBS and stuff dnl ************************* @@ -1030,8 +1039,6 @@ IDL_INCLUDES="-I "`pkg-config --variable=idldir libbonobo-2.0`" -I "`pkg-config AC_MSG_RESULT($IDL_INCLUDES) AC_SUBST(IDL_INCLUDES) -AM_PATH_GLIB_2_0 - dnl Utility macro to set compiler flags for a specific lib. AC_DEFUN(EVO_SET_COMPILE_FLAGS, [ deps="$2" diff --git a/marshal.mk b/marshal.mk new file mode 100644 index 0000000000..9d4298deae --- /dev/null +++ b/marshal.mk @@ -0,0 +1,7 @@ +%.h: %.list + ( $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $< --header > $@.tmp \ + && mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 ) + +%.c: %.list %.h + ( (echo "#include \"$*.h\""; $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $*.list --body) > $@.tmp \ + && mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 ) -- cgit