it can be easily removed without trying to remove config.log
on windows (which can't delete a file until it is closed).
2008-01-08 Gary V. Vaughan <gary@gnu.org>
+ * tests/configure-iface.at: Build libltdl in a subdir so that
+ it can be easily removed without trying to remove config.log
+ on windows (which can't delete a file until it is closed).
+
* libltdl/m4/ltdl.m4 (LTDL_INSTALLABLE): Use _LT_BUILD_PREFIX
instead of ${top_builddir} for Autoconf-2.62.
Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
# Install libltdl
prefix=`pwd`/_inst
-LT_AT_LIBTOOLIZE([--copy --ltdl=.])
+LT_AT_LIBTOOLIZE([--copy --ltdl=ltdl])
+
+(cd ltdl
LT_AT_CONFIGURE([--enable-ltdl-install --prefix=$prefix])
LT_AT_MAKE([all install])
+)
# Remove build files
-for x in .* *; do
- test $x == _inst || rm -rf $x
-done
+rm -rf ltdl/
AT_CHECK([test -f $prefix/lib/libltdl.la])
AT_CHECK([test -f $prefix/include/ltdl.h])