On 2024-09-16 09:44, Murrell, Brian wrote: > When an AC_ARG_ENABLE() for a given arg is missing, one only seems to > get a WARNING from configure such as: > > configure: WARNING: unrecognized options: --enable-foo > > Is there any way to make this an error so that configure [ideally, > exits immediately] and returns !0?
Yes, this is covered in the Autoconf manual[1]. Use --enable-option-checking=fatal. > It's too easy to miss such a warning for a critical arg and continue > down a path of ultimate failure. I feel like these warnings are very visible since the same warnings get printed both at the start and at the end of a configure run. You could also try using --quiet to suppress normal output (leaving you with just the warnings). [1] https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/autoconf.html#Option-Checking Hope that helps, Nick