2007-05-10 Noah Misch <noah@cs.caltech.edu>
+ * tests/duplicate_deps.at: Make the XFAIL unconditional, but
+ skip the test if the test link would succeed even without
+ --preserve-dup-deps.
+
* libltdl/config/general.m4sh (func_echo): Use $* instead of
${1+"$@"}.
# duplicate_deps.at -- preserve duplicate convenience deps -*- Autotest -*-
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
# Written by Ralf Wildenhues, 2006
$
# This file is part of GNU Libtool.
[0], [ignore], [ignore])
LT_AT_EXEC_CHECK([./main])
-# This currently fails:
-AT_XFAIL_IF([case $host_os in aix*) false;; *) :;; esac])
+# Forgo the workaround and create a true circular dependency.
$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libb.la b1.lo
+# Some systems find all symbols anyway; skip this test on such systems.
+AT_CHECK([$LIBTOOL --mode=link --tag=CC \
+ $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT liba.la libb.la liba.la \
+ && exit 77],
+ [1], [ignore], [ignore])
+# Other systems need special treatment, which currently fails.
+AT_XFAIL_IF([:])
AT_CHECK([$LIBTOOL --mode=link --preserve-dup-deps --tag=CC \
$CC $CFLAGS $LDFLAGS -o main main.$OBJEXT liba.la libb.la liba.la],
[0], [ignore], [ignore])