autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.63-53-g


From: Paolo Bonzini
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63-53-g2535dcc
Date: Thu, 16 Oct 2008 08:43:02 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=2535dcc192d86c46478463049b2acb39f4856413

The branch, master has been updated
       via  2535dcc192d86c46478463049b2acb39f4856413 (commit)
       via  a38c243f00eb482729fa21fb8e9f1dc9580512e0 (commit)
      from  7eba1c0ae03df9227cbd6ec47893395d72e2ef0f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2535dcc192d86c46478463049b2acb39f4856413
Author: Paolo Bonzini <address@hidden>
Date:   Thu Oct 16 10:41:20 2008 +0200

    Add a testcase using more then one language.
    
    * tests/compile.at (Multiple languages): New test.

commit a38c243f00eb482729fa21fb8e9f1dc9580512e0
Author: Paolo Bonzini <address@hidden>
Date:   Thu Oct 16 08:19:15 2008 +0200

    Fix Libtool's config.lt test.
    
    * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
    expanding it.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |   11 +++++++++++
 lib/m4sugar/m4sh.m4 |    4 +++-
 tests/compile.at    |   38 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 52 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e627d14..8eef61d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2008-10-16  Paolo Bonzini  <address@hidden>
+
+       Add a testcase using more then one language.
+       * tests/compile.at (Multiple languages): New test.
+
+2008-10-16  Paolo Bonzini  <address@hidden>
+
+       Fix Libtool's config.lt test.
+       * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
+       expanding it.
+
 2008-10-15  Eric Blake  <address@hidden>
 
        Break circular require chain in _AS_LINENO_PREPARE.
diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
index 44c8049..5e6245d 100644
--- a/lib/m4sugar/m4sh.m4
+++ b/lib/m4sugar/m4sh.m4
@@ -257,7 +257,8 @@ fi
 # there are so many _AS_PREPARE_* below, and that's also why it is
 # important not to forget some: config.status needs them.
 m4_defun([_AS_PREPARE],
-[as_func_mkdir_p ()
+[m4_pushdef([AS_REQUIRE], [])dnl
+as_func_mkdir_p ()
 {
   _AS_MKDIR_P
 }
@@ -274,6 +275,7 @@ _AS_TEST_PREPARE
 _AS_TR_CPP_PREPARE
 _AS_TR_SH_PREPARE
 _AS_UNSET_PREPARE
+m4_popdef([AS_REQUIRE])dnl
 ])
 
 # AS_PREPARE
diff --git a/tests/compile.at b/tests/compile.at
index 715fde8..6ee22ae 100644
--- a/tests/compile.at
+++ b/tests/compile.at
@@ -150,3 +150,41 @@ AT_CHECK_MACRO([AC_TRY_LINK_FUNC],
                  [AC_MSG_ERROR([cannot find `printf'])])
 AC_TRY_LINK_FUNC(Be_doomed_if_your_libc_has_a_function_named_like_this,
                 [AC_MSG_ERROR([found a nonexistent function])])])
+
+## -------------------- ##
+## Multiple languages.  ##
+## -------------------- ##
+
+AT_SETUP([Multiple languages])
+
+AT_DATA([configure.ac],
+[[AC_INIT
+
+AC_PROG_CC
+AC_PROG_CXX
+
+AC_LANG_PUSH(C)
+AC_MSG_CHECKING([a simple C program that is not valid C++])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([enum a { A, B, C };
+                                   enum a f(enum a in) { return in++; }], [])],
+                 [AC_MSG_RESULT([ok])],
+                 [AC_MSG_RESULT([failed])
+                  AC_MSG_ERROR([could not compile test program])])
+AC_LANG_POP(C)
+
+AC_LANG_PUSH(C++)
+AC_MSG_CHECKING([a simple C++ program that is not valid C])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([class A {};], [])],
+                 [AC_MSG_RESULT([ok])],
+                 [AC_MSG_RESULT([failed])
+                  AC_MSG_ERROR([could not compile test program])])
+
+AC_CHECK_HEADER([cstring])
+AC_LANG_POP(C++)
+]])
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE([-q])
+
+AT_CLEANUP
+


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

[Prev in Thread] Current Thread [Next in Thread]