Hi, John Darrington wrote on 2018-12-22: > I'm trying to use gnulib in the same project as ax_prog_cc_for_build.m4 > from the autoconf archive[1]. But it seems that they do not play nicely > together. > > Specifically, gnulibs std-gnu11.m4 seems to negate the effect of the former, > resulting in CC_FOR_BUILD always getting defined as the empty string. > > Is there a way to fix this?
The way to fix this is to - look at the generated shell code in the configure file, - ask yourself why this code does not have the desired effect, - then modify the .m4 files so that the generated shell code is as expected. I can see that - ax_prog_cc_for_build.m4 makes brutal use of pushdef. - std-gnu11.m4 probably underquotes some uses of CC. Maybe the fix is that ax_prog_cc_for_build.m4 uses shell assignments instead of pushdef? Or that std-gnu11.m4 quotes CC more systematically? Bruno