On Fri, 9 Sep 2011, Michael Stahl wrote: > On 09.09.2011 21:28, Peter Foley wrote: > > On Fri, 9 Sep 2011, Norbert Thiebaud wrote: > > > >> On Fri, Sep 9, 2011 at 11:20 AM, Peter Foley <pefol...@verizon.net> wrote: > >>>> > >>> > >>> Without the ifeq and with SYSTEM_MESA_HEADERS=YES I got this error. > >>> > >>> /root/libreoffice/slideshow/Library_OGLTrans.mk:66: *** > >>> gb_LinkTarget_use_external: unknown external: Mesa. Stop. > >> > >> what happen if you change the RepositoryExternal.mk part to > >> > >> +ifeq ($(SYSTEM_MESA_HEADERS),YES) > >> + > >> +define gb_LinkTarget__use_Mesa > >> +endef > >> + > >> +else > >> + > >> +define gb_LinkTarget__use_Mesa > >> +$(eval $(call gb_LinkTarget_add_external_headers,$(1),Mesa_inc)) > >> + > >> +endef > >> + > >> +endif > >> + > >> > >> Norbert > >> > > > > > > I got the same error when SYSTEM_MESA_HEADERS=YES. But it worked when > > SYSTEM_MESA_HEADERS=NO. > > the problem is this: > > define gb_LinkTarget_use_external > $(if $(value gb_LinkTarget__use_$(2)),\ > $(call gb_LinkTarget__use_$(2),$(1)),\ > $(error gb_LinkTarget_use_external: unknown external: $(2))) > endef > > the "if" is just intended to check that there actually is a variable > defined, but what it actually checks is whether there is a variable > defined that has a non-empty value. > > until this Mesa case nobody noticed :) > > can you try the following patch: > >
Thanks, that worked. I'll send out a new patch shortly. Peter _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice