+2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * tests/archive-in-archive.at
+ (static library contains static library): Test also the actual
+ broken link command, and the following install command, as
+ UnixWare ar rightly refuses to put an archive into an archive.
+ Report by Tim Rice.
+
2008-02-06 Peter O'Gorman <peter@pogma.com>
* libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): Only set default
# dmacks.at -- test for dmacks bug -*- Autotest -*-
#
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
# Written by Peter O'Gorman, 2007
#
# This file is part of GNU Libtool.
$LIBTOOL --mode=link --tag=CC --tag=disable-shared $CC $CFLAGS $LDFLAGS \
-o libfoo.la foo.lo -version-info 1:0:0 -rpath $thisdir
$LIBTOOL --mode=install cp libfoo.la $thisdir
-$LIBTOOL --mode=link --tag=CC --tag=disable-shared $CC $CFLAGS $LDFLAGS \
--o libbar.la bar.lo ./libfoo.a -version-info 1:0:0 -rpath $thisdir
-$LIBTOOL --mode=install cp libbar.la $thisdir
+AT_CHECK([$LIBTOOL --mode=link --tag=CC --tag=disable-shared $CC $CFLAGS $LDFLAGS \
+ -o libbar.la bar.lo ./libfoo.a -version-info 1:0:0 -rpath $thisdir],
+ [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=install cp libbar.la $thisdir], [], [ignore], [ignore])
AT_CHECK([ar -t libbar.a | grep libfoo.a],[1],[ignore],[ignore])
archive_contents=`ar -t libbar.a`
AT_XFAIL_IF([case "$archive_contents" in *"libfoo.a"*) : ;; esac])