dinit icon indicating copy to clipboard operation
dinit copied to clipboard

configure: add a mechanism to check if a header can be used

Open mobin-2008 opened this issue 5 months ago • 1 comments

We do not usually accept feature requests, please see the README. You may open a feature request if you are a distribution/package maintainer and have a clear need for the feature, or if you are willing to develop the feature yourself and would like to discuss it first.

Your background I'm currently a maintainer and I want to improve user experience with configure script.

The problem Currently configure just disables linux/ioprio.h header usage because it may not be available. I think this is not very nice to be default and can be improved.

The solution I want to add check_header() function to configure to be used in this case, which does:

  1. Create a file with requested header
  2. Compile it to see if it compiles
  3. returns success otherwise failure based on compiler result

Additional context

mobin-2008 avatar Jun 19 '25 15:06 mobin-2008

Sounds ok in principle.

davmac314 avatar Jun 22 '25 11:06 davmac314

"Fixes #issue" in the PR description was supposed to close this issue. Anyway, fixed by https://github.com/davmac314/dinit/commit/1c88395c9ecb343531ff7f01e5394084822f4d2d

mobin-2008 avatar Oct 29 '25 19:10 mobin-2008

"Fixes #issue" in the PR description was supposed to close this issue

I disabled that functionality as it can result in incorrectly closed issues.

davmac314 avatar Oct 29 '25 23:10 davmac314