[SCM] GNU Autoconf source repository branch, master, updated. v2.64-48-g44483f0

"Jim Meyering" <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.cvs
Message-ID <[email protected]>
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=44483f024289095945e7430d020121704bc8fb46

The branch, master has been updated
       via  44483f024289095945e7430d020121704bc8fb46 (commit)
      from  e5ddeae43ab4e48ca46c6dda7ede43f65a5d8117 (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 44483f024289095945e7430d020121704bc8fb46
Author: Jim Meyering <[email protected]>
Date:   Tue Sep 15 19:21:21 2009 +0200

    AC_INIT: Use correct value for PACKAGE_TARNAME.
    
    * lib/autoconf/general.m4 (AC_PACKAGE_NAME): Remove what are excess
    quotes around the package name, now that m4_tolower's result is quoted.
    * tests/base.at (AC_INIT): Test for this.
    
    Signed-off-by: Jim Meyering <[email protected]>

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

Summary of changes:
 lib/autoconf/general.m4 |    2 +-
 tests/base.at           |   21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index c119088..bd19e82 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -237,7 +237,7 @@ m4_ifndef([AC_PACKAGE_NAME],
 m4_ifndef([AC_PACKAGE_TARNAME],
 	  [m4_define([AC_PACKAGE_TARNAME],
 		     m4_default([$4],
-				[m4_bpatsubst(m4_tolower(m4_bpatsubst([[[$1]]],
+				[m4_bpatsubst(m4_tolower(m4_bpatsubst([[$1]],
 								     [GNU ])),
 				 [[^_abcdefghijklmnopqrstuvwxyz0123456789]],
 				 [-])]))])
diff --git a/tests/base.at b/tests/base.at
index 5929927..a8f8de7 100644
--- a/tests/base.at
+++ b/tests/base.at
@@ -198,6 +198,27 @@ AT_CHECK_CONFIGURE
 AT_CLEANUP
 
 
+## -------- ##
+## AC_INIT. ##
+## -------- ##
+
+# Make sure AC_INIT sets PACKAGE_TARNAME properly.
+
+AT_SETUP([AC_INIT])
+
+AT_DATA([configure.ac],
+[[AC_INIT([GNU fu], [1.0], [[email protected]])
+]])
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE([-q])
+
+# Ensure we get the expected definition:
+AT_CHECK([grep "^PACKAGE_TARNAME='fu'\$" configure], [], [ignore])
+
+AT_CLEANUP
+
+
 ## ---------------- ##
 ## AC_CACHE_CHECK.  ##
 ## ---------------- ##


hooks/post-receive
-- 
GNU Autoconf source repository
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.