Commit 9ae08cfe authored by Colomban Wendling's avatar Colomban Wendling

OVCCGtk: properly check for sed and use the found version

parent 4650405e
......@@ -16,6 +16,7 @@ AC_SUBST([ovccgtkdatadir])
# Checks for programs.
AC_PROG_LN_S
AC_PROG_SED
AC_PROG_CC
AM_PROG_VALAC([0.7])
AC_CHECK_PROGS([GLIB_GENMARSHAL], [glib-genmarshal], [NONE])
......
......@@ -59,9 +59,9 @@ ovccgtk-marshal.c: $(srcdir)/ovccgtk-marshal.list ovccgtk-marshal.h
# to prefix=o sub-prefix=vcc_gtk
ovccgtk-enum-types.c: $(srcdir)/ovccgtk-enum-types.c.tpl ovccgtk-enum-types.h $(headers) Makefile
$(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(headers:%=$(srcdir)/%) | \
sed s%o_vcc_gtk_%ovccgtk_%g | \
sed s%O_TYPE_VCC_GTK_%OVCCGTK_TYPE_%g > $@
$(SED) s%o_vcc_gtk_%ovccgtk_%g | \
$(SED) s%O_TYPE_VCC_GTK_%OVCCGTK_TYPE_%g > $@
ovccgtk-enum-types.h: $(srcdir)/ovccgtk-enum-types.h.tpl $(headers) Makefile
$(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(headers:%=$(srcdir)/%) | \
sed s%o_vcc_gtk_%ovccgtk_%g | \
sed s%O_TYPE_VCC_GTK_%OVCCGTK_TYPE_%g > $@
$(SED) s%o_vcc_gtk_%ovccgtk_%g | \
$(SED) s%O_TYPE_VCC_GTK_%OVCCGTK_TYPE_%g > $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment