Allow package builds to use configure cache
Describe the feature you would like to see added to OpenZFS
When running configure -C or --cache-file= can be passed to cache configure results to a file so that on subsequent runs of configure those results do not need to be rerun. This can speed up configure significantly. This is already implemented and will cache more results with #19106. However, this does not work for package builds. If the configure cache arguments are passed, I would think they should be applied to all targets, including package builds.
How will this feature improve OpenZFS?
This is useful to anyone who runs configure a lot and whose environment doesn't change much between building. This could be developers or builders. This would also be useful for the CI builders, if they enabled configure caching.
Additional context
I'm annoyed at having to wait a couple minutes to have these checks rerun everytime for the same system.
Source: openzfs/zfs