From: Bruno Haible Date: Sat, 6 Jun 2009 10:34:13 +0000 (+0000) Subject: Avoid lang-c++ test failure. X-Git-Tag: v0.18~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11125f89e208cda6214bc5ef49e16c6bdbc66013;p=thirdparty%2Fgettext.git Avoid lang-c++ test failure. --- diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index 7ba8aa1a4..75c202ed5 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -1,3 +1,8 @@ +2009-05-29 Bruno Haible + + Avoid lang-c++ test failure. + * configure.ac: Invoke LT_LANG also for C++. + 2009-05-23 Bruno Haible * configure.ac (AM_INIT_AUTOMAKE): Add 'silent-rules' option. diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 7d8216e42..f454305b6 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -324,6 +324,9 @@ gt_LOCALE_JA dnl Checks for functions for the tests/*.c tests. AC_CHECK_FUNCS_ONCE([getrlimit setrlimit]) +dnl Prepares the libtool configuration for languages used by the tests. +LT_LANG([C++]) + dnl Check whether to execute tests that rely on libasprintf. dnl This test must be consistent with gettext-runtime/configure.ac. if test "${enable_libasprintf+set}" = set; then diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index f427ea1ea..a971fa771 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2009-05-29 Bruno Haible + + Avoid lang-c++ test failure. + * lang-c++: Pass --tag option to libtool. + 2009-05-21 Bruno Haible * Makefile.am (AUTOMAKE_OPTIONS): Add 1.11 and color-tests. diff --git a/gettext-tools/tests/lang-c++ b/gettext-tools/tests/lang-c++ index a959ca7be..e3420cd6e 100755 --- a/gettext-tools/tests/lang-c++ +++ b/gettext-tools/tests/lang-c++ @@ -70,7 +70,7 @@ tmpfiles="$tmpfiles prog.${OBJEXT} prog${EXEEXT}" # ${CXXFLAGS} or ${CPPFLAGS}. ${CXX} -I.. -I../../gettext-runtime/libasprintf -I$top_srcdir/gnulib-lib -I../intl ${CXXFLAGS} ${CPPFLAGS} -c prog.cc \ || exit 1 -${LIBTOOL} --quiet --mode=link ${CXX} ${CXXFLAGS} ${LDFLAGS} -o prog prog.${OBJEXT} ../../gettext-runtime/libasprintf/libasprintf.la ../gnulib-lib/libgettextlib.la ${LTLIBINTL} \ +${LIBTOOL} --quiet --mode=link --tag=CXX ${CXX} ${CXXFLAGS} ${LDFLAGS} -o prog prog.${OBJEXT} ../../gettext-runtime/libasprintf/libasprintf.la ../gnulib-lib/libgettextlib.la ${LTLIBINTL} \ || exit 1 tmpfiles="$tmpfiles prog.tmp prog.pot"