-for ac_var in ALLOCA_H ERRNO_H FCNTL_H GETOPT_H INTTYPES_H \
- LIBUNISTRING_UNITYPES_H LIBUNISTRING_UNIWIDTH_H \
- STDBOOL_H STDINT_H SYS_WAIT_H WCHAR_H WCTYPE_H
+# Listing the names of the variables to prefix is error-prone.
+# Rather, adjust all the AC_SUBST variables whose name ends in '_H',
+# and whose content ends in '.h'.
+for ac_var in $ac_subst_vars