oops almost missed this one. Laszlo (Laca) Peter wrote: > Ghee, > > There's already a variables for CUPS and one for PAPI, > can you not just nest these conditions in the Makefile > instead of introducing a new one? > It is unfortunately it is not possible in this case, because autoconf does not allow logical condition of if (HAVE_PAPI && HAVE_CUPS) in the Makefile.am. Also the condition is to define a list of module name that must not consist of spaces, that is can't have GTK_PRINT_BACKENDS=papi, cups, lpr but must have GTK_PRINT_BACKENDS=papi,cups,lpr
Trust me, I spent days banging my head on this one. It wasn't pretty :/ > I don't think you need to change acconfig.h for an > AM_CONDITIONAL. > Okay. I will very this one. > Also, any reason you haven't submitted it upstream? > No, just have not got round to it :) Need to upstream the papi one first though. -Ghee > Laca > > On Tue, 2008-03-25 at 00:36 +0000, Ghee Teo wrote: > >> This is a patch to enable just that. >> It defines a new automake variable called HAVE_PAPI_CUPS which is >> defined to true when both >> CUPS and PAPI are on the system. >> >> Thanks, >> -Ghee >> > >
