Hi,
I rewrote those several lines of code - does it look OK now?
It appears to execute fine.
Regards,
Lace
diff -u -ru autoconf-2.57-orig/lib/autoconf/status.m4
autoconf-2.57/lib/autoconf/status.m4
--- autoconf-2.57-orig/lib/autoconf/status.m4 Tue Nov 12 11:54:46 2002
+++ autoconf-2.57/lib/autoconf/status.m4 Wed Dec 10 21:30:50 2003
@@ -1026,11 +1026,17 @@
dnl mv $tmp/out $ac_file
dnl fi
if test x"$ac_file" != x-; then
- mv $tmp/out $ac_file
+ rm -f $ac_file
+dnl Keep 'executable' attribute.
+ for f in $ac_file_inputs; do
+ cp $f $ac_file
+ chmod u+w $ac_file
+ done
+ cat $tmp/out >$ac_file
else
cat $tmp/out
- rm -f $tmp/out
fi
+ rm -f $tmp/out
m4_ifset([AC_LIST_FILES_COMMANDS],
[ # Run the commands associated with the file.