diff --git a/ChangeLog b/ChangeLog index 4f2d217f..0eecbab2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2010-08-07 Ralf Wildenhues + Do not call toplevel configure in non-VPATH build. + * tests/deplibs-mingw.at (deplibs without file command): Use + LT_AT_CONFIGURE for consistency, update comment about why it + might fail. + * tests/pic_flag.at (override pic_flag at configure time): Skip + test if we are building in-tree. + Report by Rainer Tammer. + Allow running pic_flag test with different shell. * tests/testsuite.at (LT_AT_CONFIGURE): Accept optional second argument specifying the configure script to run. diff --git a/tests/deplibs-mingw.at b/tests/deplibs-mingw.at index 68e83865..45aa0325 100644 --- a/tests/deplibs-mingw.at +++ b/tests/deplibs-mingw.at @@ -74,8 +74,9 @@ EOF chmod +x bin/file PATH=`pwd`/bin${PATH_SEPARATOR-:}$PATH cd new-libtool - AT_CHECK(["$abs_top_srcdir"/configure $configure_options || exit 77], - [], [ignore], [ignore]) + # configure might fail due to in-tree build of toplevel, or + # missing configure flags and other reasons. + LT_AT_CONFIGURE([|| exit 77], ["$abs_top_srcdir"/configure]) cd .. LIBTOOL=new-libtool/libtool export LIBTOOL diff --git a/tests/pic_flag.at b/tests/pic_flag.at index c045ed41..ffad8427 100644 --- a/tests/pic_flag.at +++ b/tests/pic_flag.at @@ -43,6 +43,7 @@ if $CXX $CPPFLAGS $CXXFLAGS $CXX_pic_flag -c foo.cpp; then :; else CXX_pic_flag= fi +AT_CHECK([test "$at_srcdir" != . || exit 77]) LT_AT_CONFIGURE([lt_cv_prog_compiler_pic="$C_pic_flag" ]dnl [lt_cv_prog_compiler_pic_CXX="$CXX_pic_flag"], ["$abs_top_srcdir"/configure])