+2004-01-08 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * automake.in (handle_configure): Skip AC_CONFIG_LINKS items which
+ do not look like DEST:SRC.
+ * tests/conflnk3.test: Check for AC_CONFIG_LINKS($computed).
+
2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
Fix for PR automake/289:
foreach my $spec (@config_links)
{
my ($link, $file) = split /:/, $spec;
+ # Some people do AC_CONFIG_LINKS($computed). We only handle
+ # the DEST:SRC form.
+ next unless $file;
my $where = $ac_config_files_location{$link};
# Skip destinations that contain shell variables.
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
AC_CONFIG_LINKS($my_dest:src)
# the following is a link whose source is itself a link
AC_CONFIG_LINKS(dest4:sdir/dest2)
+# Some package prefer to compute links.
+cmplink='dest5:src';
+AC_CONFIG_LINKS($cmplink)
AC_OUTPUT
EOF
test -e sdir/dest3
test -e dest
test -e dest4
+test -e dest5
$MAKE test
$MAKE distclean
test ! -e sdir/dest2
test ! -e sdir/dest3
test -e dest # Should still exist, Automake knows nothing about it.
-rm -f dest
+test -e dest5 # ditto
+rm -f dest dest5
test ! -e dest4
## Cannot do the following, because at the time of writing Autoconf