From ed8944c2a3e4c77c5000807205ed9c6bf102a0bb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 7 Jan 1999 11:19:04 +0000 Subject: [PATCH] 1999-01-06 Gary V. Vaughan * automake.in (require_file_internal): qub perl on win32 hangs on a call to unlink for a non-existant file, which in turn causes tests/symlink.test to hang on win32. Check that the file exists before unlinking it! --- ChangeLog | 7 +++++++ automake.in | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index efc8f953..d0a0a4f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-01-06 Gary V. Vaughan + + * automake.in (require_file_internal): qub perl on win32 hangs + on a call to unlink for a non-existant file, which in turn causes + tests/symlink.test to hang on win32. Check that the file exists + before unlinking it! + 1998-12-24 Thomas Tanner * automake.in (handle_ltlibraries): check whether -module was diff --git a/automake.in b/automake.in index d4dc354e..d50e1bc6 100755 --- a/automake.in +++ b/automake.in @@ -6782,7 +6782,9 @@ sub require_file_internal # can, copy if we must. Note: delete the file # first, in case it is a dangling symlink. $message = "installing \`$errfile'"; - unlink ($errfile); + # Windows Perl will hang if we try to delete a + # file that doesn't exist. + unlink ($errfile) if -f $errfile; if ($symlink_exists && ! $copy_missing) { if (! symlink ($am_dir . '/' . $file, $errfile)) -- 2.43.5