From: Ralf Wildenhues Date: Sat, 7 Aug 2010 11:07:42 +0000 (+0200) Subject: Do not call toplevel configure in non-VPATH build. X-Git-Tag: v2.4~94 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3936d01df5d11a861710ecd58a9f9604a49fee08;p=thirdparty%2Flibtool.git 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 4f2d217f9..0eecbab22 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 68e838656..45aa03251 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 c045ed410..ffad84277 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])