+2000-09-21 Pavel Roskin <proski@gnu.org>
+
+ * acgeneral.m4 (_AC_OUTPUT_FILES): Ensure that config.status
+ exits if any input file is missing.
+ * tests/semantics.m4 (missing templates): Test it.
+
2000-09-21 Pavel Roskin <proski@gnu.org>
* acgeneral.m4 (_AC_SHELL_TMPDIR): Don't check status of variable
AC_MSG_ERROR([cannot find input file \\`$f'])
fi;;
esac
- done`
+ done` || exit 1
EOF
cat >>$CONFIG_STATUS <<EOF
dnl Neutralize VPATH when `$srcdir' = `.'.
])
AT_CLEANUP(header file link command header.in file.in link.in command.in configure config.status)
+
+
+
+## ------------------------------------------------------ ##
+## Check that config.status detects missing input files. ##
+## ------------------------------------------------------ ##
+
+AT_SETUP(missing templates)
+
+AT_DATA(configure.in,
+[[AC_INIT
+AC_CONFIG_FILES([nonexistent])
+AC_OUTPUT
+]])
+
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
+AT_CHECK([./configure], 1, ignore,
+[[configure: error: cannot find input file `nonexistent.in'
+]])
+# Make sure that the output file doesn't exist
+AT_CHECK([test -f nonexistent], 1)
+
+AT_CLEANUP(configure config.status config.log config.cache config.h defs)