Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> You snipped to much... > | I did not snip anything, I just answered to your message. My problem | is that I do not have pch support here, so it is difficult to see what | you are doing. > | Lars> TMPCMD=` echo $(CXXCOMPILE) | sed -e s,\",\',` ; \ > | So CXXCOMPILE contains " that you want to change to ', right?
right > | Lars> PATTERN=`echo $(PCH_FLAGS) | sed -e 's,\/,\\\/,'` ; \ > | I am not sure what you are doing here. escaping slashes? / is changed to \/ | Lars> The thing is that we want to use the most stock compile line we | Lars> can get and therefor want to use the variables generated by | Lars> automake: CXXCOMPILE. The problem is that this command also | Lars> contains the PCH_FLAGS from common.am, and we absolutely do not | Lars> want them when generating/compiling the precompiled header. So | Lars> to fix this we do some sed magic/shell substitution and remove | Lars> the PCH_FLAGS from the compile command. > | Yes, I understand that. What is not clear to me is what kind of magic | you need to apply. the sedding is done to massage the variables to the patter is usable by the variable substitution. -- Lgb