| | 229 | # cautious creating of symlink to protect the installation from |
| | 230 | # aborting with a fatal runtime error |
| | 231 | eval { |
| | 232 | if (-l $src) { |
| | 233 | # check if the system supports symbolic linking |
| | 234 | use Config; |
| | 235 | if ($Config{d_symlink} && $Config{d_readlink}) { |
| | 236 | # copy as symbolic link |
| | 237 | symlink(readlink($src), $dest); |
| | 238 | print "$dest\n"; |
| | 239 | next; |
| | 240 | } |
| | 241 | } |
| | 242 | }; |
| | 243 | warn $@, |
| | 244 | "\"$dest\" will created as copy, because symlinks\n", |
| | 245 | "are not supported in the destination directory\n" if ($@); |