Re: How to "bake in" configure args

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 23 Mar 2021, Bob Friesenhahn wrote:

On Tue, 23 Mar 2021, Dan Mahoney (Gushi) wrote:

Is there a "standard" way to do this?  Google kind of fails for this.

I see that Gavin Smith already answered the question you asked, but GraphicsMagick took a different tact.

I didn't find that to be an "answer" so much as a request for more clarification.

"Is there a simple autoconf/automake macro that will just stuff the entire text string the user passed to configure, into a text string or a #define or something, which can be compiled into the binary". Something I can inherit in build.h.

I see numerous projects doing this, in various ways. I don't know if there's a "standard" way, but if there is, I'd like to use it, without introducing additional code complexity.

In looking at my project, and searching the generated config files, nothing compileable seems to have those args in it.

I'm nominally not a C coder, I'm just the guy who gets to answer support tickets and triage bug reports and get users to figure out if they installed their OS package, how that was set up and compiled.

-Dan


--

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
FB:  fb.com/DanielMahoneyIV
LI:   linkedin.com/in/gushi
Site:  http://www.gushi.org
---------------------------





[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux