]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Give explicit diagnostics when an input file (for config headers;
authorAkim Demaille <akim@epita.fr>
Mon, 7 Feb 2000 17:23:07 +0000 (17:23 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 7 Feb 2000 17:23:07 +0000 (17:23 +0000)
config files etc.) does not exist.
From Jim Meyering.

* acgeneral.m4 (AC_OUTPUT_FILES, AC_OUTPUT_HEADERS): Check for the
existence of source files.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index 19969bbc13b2986941a02be4f3321b56d45a236c..6f131f6993118f8e138de4ae467e3b1cbf45d839 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-02-07  Akim Demaille  <akim@epita.fr>
+
+       Give explicit diagnostics when an input file (for config headers;
+       config files etc.) does not exist.
+       From Jim Meyering.
+
+       * acgeneral.m4 (AC_OUTPUT_FILES, AC_OUTPUT_HEADERS): Check for the
+       existence of source files.
+
 2000-02-07  Akim Demaille  <akim@epita.fr>
 
        Torture test config.status, AC_SUBST and AC_DEFINE.
index 73d46a288291310455d52fac8b606cb11859ec77..56a6bc017c0019f254ad0e3275271f014edc4e2c 100644 (file)
@@ -3859,6 +3859,11 @@ changequote([, ])dnl
 # Don't redirect the output to AC_FILE directly: use `mv' so that updating
 # is atomic, and doesn't need trapping.
   ac_file_inputs=`echo $ac_file_in | sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+  for ac_file_input in $ac_file_inputs;
+  do
+    test -f "$ac_file_input" ||
+        AC_MSG_ERROR(cannot find input file `$ac_file_input')
+  done
 EOF
 cat >>$CONFIG_STATUS <<EOF
   sed -e "$ac_comsub
@@ -3944,6 +3949,11 @@ changequote([, ])dnl
 
   rm -f $ac_cs_root.frag $ac_cs_root.in $ac_cs_root.out
   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+    for ac_file_input in $ac_file_inputs;
+  do
+    test -f "$ac_file_input" ||
+        AC_MSG_ERROR(cannot find input file `$ac_file_input')
+  done
   # Remove the trailing spaces.
   sed -e 's/@BKL@      @BKR@*$//' $ac_file_inputs >$ac_cs_root.in
 
index 73d46a288291310455d52fac8b606cb11859ec77..56a6bc017c0019f254ad0e3275271f014edc4e2c 100644 (file)
@@ -3859,6 +3859,11 @@ changequote([, ])dnl
 # Don't redirect the output to AC_FILE directly: use `mv' so that updating
 # is atomic, and doesn't need trapping.
   ac_file_inputs=`echo $ac_file_in | sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+  for ac_file_input in $ac_file_inputs;
+  do
+    test -f "$ac_file_input" ||
+        AC_MSG_ERROR(cannot find input file `$ac_file_input')
+  done
 EOF
 cat >>$CONFIG_STATUS <<EOF
   sed -e "$ac_comsub
@@ -3944,6 +3949,11 @@ changequote([, ])dnl
 
   rm -f $ac_cs_root.frag $ac_cs_root.in $ac_cs_root.out
   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+    for ac_file_input in $ac_file_inputs;
+  do
+    test -f "$ac_file_input" ||
+        AC_MSG_ERROR(cannot find input file `$ac_file_input')
+  done
   # Remove the trailing spaces.
   sed -e 's/@BKL@      @BKR@*$//' $ac_file_inputs >$ac_cs_root.in