This is the mail archive of the autoconf-patches@gnu.org mailing list for the autoconf project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

02-ac-package



Hm, I don't know why I picked up Mixed_Case_Names, I felt it like
this :)

Index: 0.212/ChangeLog
--- 0.212/ChangeLog Sat, 18 Mar 2000 07:53:50 +0100 akim (ace/34_ChangeLog 1.198 666)
+++ 0.212(w)/ChangeLog Sat, 18 Mar 2000 09:03:57 +0100 akim (ace/34_ChangeLog 1.198 666)
@@ -1,5 +1,17 @@
 2000-03-18  Akim Demaille  <akim@epita.fr>
 
+	Give an identity to `configure' scripts.
+
+	* acgeneral.m4 (AC_PACKAGE): New macro.
+	(_AC_COPYRIGHT_SEPARATOR): Remove.
+	(AC_COPYRIGHT): Adjust.
+	(_AC_INIT_HELP, _AC_INIT_VERSION): Name the package you configure
+	when you want.
+	(_AC_INIT): Adjust.
+	* configure.in (AC_PACKAGE): Add.
+
+2000-03-18  Akim Demaille  <akim@epita.fr>
+
 	* acgeneral.m4: Formatting changes.
 
 2000-03-12  Akim Demaille  <akim@epita.fr>
Index: 0.212/acgeneral.m4
--- 0.212/acgeneral.m4 Sat, 18 Mar 2000 07:53:50 +0100 akim (ace/27_acgeneral. 1.135 664)
+++ 0.212(w)/acgeneral.m4 Sat, 18 Mar 2000 08:13:30 +0100 akim (ace/27_acgeneral. 1.135 664)
@@ -634,10 +634,13 @@
 
 
 
-# _AC_COPYRIGHT_SEPARATOR
-# -----------------------
-# Empty at the first call to AC_COPYRIGHT, then set to two new lines.
-define(_AC_COPYRIGHT_SEPARATOR)
+# AC_PACKAGE(PACKAGE, VERSION, [BUG-REPORT])
+# ------------------------------------------
+AC_DEFUN(AC_PACKAGE,
+[define([AC_Package_Name], [$1])dnl
+define([AC_Package_Version], [$2])dnl
+define([AC_Package_BugReport], [$3])dnl
+])
 
 
 # AC_COPYRIGHT(TEXT)
@@ -655,15 +658,11 @@
 AC_DEFUN(AC_COPYRIGHT,
 [AC_REQUIRE([AC_INIT])dnl
 AC_DIVERT([NOTICE],
-[patsubst([]_AC_COPYRIGHT_SEPARATOR()dnl
-[$1], [^], [@%:@ ])])dnl
+[patsubst([
+$1], [^], [@%:@ ])])dnl
 AC_DIVERT([VERSION_BEGIN],
-[_AC_COPYRIGHT_SEPARATOR()dnl
-$1])dnl
-define([_AC_COPYRIGHT_SEPARATOR],
 [
-
-])dnl
+$1])dnl
 ])# _AC_INIT_COPYRIGHT
 
 
@@ -1114,14 +1113,18 @@
 # Handle the `configure --help' message.
 define([_AC_INIT_HELP],
 [AC_DIVERT_PUSH([HELP_BEGIN])dnl
-[if $ac_init_help; then
+if $ac_init_help; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<\EOF
-`configure' configures software source code packages to adapt to many kinds
+ifset([AC_Package_Name],
+[`configure' configures AC_Package_Name AC_Package_Version to adapt to many kinds
 of systems.
+],
+[`configure' configures software source code packages to adapt to many kinds
+of systems.])
 
-Usage: configure [OPTION]... [VAR=VALUE]... [HOST]
+[Usage: configure [OPTION]... [VAR=VALUE]... [HOST]
 
 To safely assign special values to environment variables (e.g., CC,
 CFLAGS...), give to `configure' the definition as VAR=VALUE.
@@ -1185,6 +1188,9 @@
 [AC_DIVERT([VERSION_BEGIN],
 [if $ac_init_version; then
   cat <<\EOF])dnl
+ifset([AC_Package_Name],
+[AC_DIVERT([VERSION_BEGIN],
+           [configure (AC_Package_Name AC_Package_Version) AC_ACVERSION])])
 AC_DIVERT([VERSION_END],
 [EOF
   exit 0
@@ -1378,12 +1384,11 @@
 dnl AC_COPYRIGHT must be called after _AC_INIT_VERSION, since it dumps
 dnl into a diversion prepared by _AC_INIT_VERSION.
 AC_DIVERT([NOTICE],
-[@%:@ Guess values for system-dependent variables and create Makefiles.])dnl
+[# Guess values for system-dependent variables and create Makefiles.
+# Generated by Autoconf ]AC_ACVERSION[.])dnl
 AC_COPYRIGHT(
-[Generated automatically using Autoconf version ]AC_ACVERSION[.
-Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
+[Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
 Free Software Foundation, Inc.
-
 This configure script is free software; the Free Software Foundation
 gives unlimited permission to copy, distribute and modify it.])dnl
 ])
Index: 0.212/configure.in
--- 0.212/configure.in Sun, 27 Feb 2000 09:11:47 +0100 akim (ace/7_configure. 1.19 666)
+++ 0.212(w)/configure.in Sat, 18 Mar 2000 09:04:23 +0100 akim (ace/7_configure. 1.19 666)
@@ -1,4 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.14a)
+AC_PACKAGE(Autoconf, 2.14a, bug-autoconf@gnu.org)
+
 AC_INIT(acgeneral.m4)
 AM_INIT_AUTOMAKE(autoconf, 2.14a)
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]