The --enable-option-checking=fatal option prevents ./configure from
proceeding when an unknown option is used in the ./configure step in CI.
This change will avoid adding unsupported ./configure options or options
with typo or typo in pairwise testing "# [pairwise: ...]" marker.
(cherry picked from commit
4295c82e457da715eada06cf0d7f4e2c8a788ae4)
--with-libtool \
--with-geoip2=auto \
--disable-static \
+ --enable-option-checking=fatal \
--with-cmocka \
--with-libxml2 \
--with-libjson \
--prefix="${BIND_INSTALL_PATH}" \
--without-make-clean \
$EXTRA_CONFIGURE \
- || cat config.log
+ || (test -s config.log && cat config.log; exit 1)
.build: &build_job
<<: *default_triggering_rules
mkdir "pairwise-${runid}"
cd "pairwise-${runid}"
echo "${configure_switches[@]}" | tee "../pairwise-output.${runid}.txt"
- ../configure "${configure_switches[@]}" >> "../pairwise-output.${runid}.txt" 2>&1
- grep -F "WARNING: unrecognized options:" "../pairwise-output.${runid}.txt" && exit 1
+ ../configure --enable-option-checking=fatal "${configure_switches[@]}" >> "../pairwise-output.${runid}.txt" 2>&1
make "-j${BUILD_PARALLEL_JOBS:-1}" all >> "../pairwise-output.${runid}.txt" 2>&1
cd ..
rm -rf "pairwise-${runid}" "pairwise-output.${runid}.txt"