Rename configure.in to configure.ac
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 24 Jul 2020 08:34:16 +0000 (10:34 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 24 Jul 2020 08:42:08 +0000 (10:42 +0200)
The new name has been preferred by Autoconf for a long time.  Future
versions of Autoconf will warn about the old name.

Discussion: https://www.postgresql.org/message-id/flat/e796c185-5ece-8569-248f-dd3799701be1%402ndquadrant.com

config/general.m4
configure.ac [moved from configure.in with 99% similarity]
src/backend/catalog/Makefile
src/include/pg_config.h.in
src/tools/msvc/Solution.pm
src/tools/version_stamp.pl

index 95d65ceb093d1ac06c3eede583be761c02e11be2..140b9737bfbc79fd5928026653d1ed7dacbcc060 100644 (file)
@@ -8,7 +8,7 @@
 # argument (other than "yes/no"), etc.
 #
 # The point of this implementation is to reduce code size and
-# redundancy in configure.in and to improve robustness and consistency
+# redundancy in configure.ac and to improve robustness and consistency
 # in the option evaluation code.
 
 
similarity index 99%
rename from configure.in
rename to configure.ac
index e91e49a579ee9f84da3894f2dc94b8b6a8881af1..eb2c731b58fb5192c0643b38fa83cd9def4ec290 100644 (file)
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl configure.in
+dnl configure.ac
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -21,7 +21,7 @@ AC_INIT([PostgreSQL], [14devel], [pgsql-bugs@lists.postgresql.org], [], [https:/
 
 m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
 Untested combinations of 'autoconf' and PostgreSQL versions are not
-recommended.  You can remove the check from 'configure.in' but it is then
+recommended.  You can remove the check from 'configure.ac' but it is then
 your responsibility whether the result works or not.])])
 AC_COPYRIGHT([Copyright (c) 1996-2020, PostgreSQL Global Development Group])
 AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
index 9499bb33e566e56a5178458ec4a886c0abefcd2d..93cf6d4368579ed0f253cb37ef0146336ff694ea 100644 (file)
@@ -103,10 +103,10 @@ generated-header-symlinks: $(top_builddir)/src/include/catalog/header-stamp
 # won't update them if they didn't change (to avoid unnecessary recompiles).
 # Technically, this should depend on Makefile.global which supplies
 # $(MAJORVERSION); but then genbki.pl would need to be re-run after every
-# configure run, even in distribution tarballs.  So depending on configure.in
+# configure run, even in distribution tarballs.  So depending on configure.ac
 # instead is cheating a bit, but it will achieve the goal of updating the
 # version number when it changes.
-bki-stamp: genbki.pl Catalog.pm $(POSTGRES_BKI_SRCS) $(POSTGRES_BKI_DATA) $(top_srcdir)/configure.in
+bki-stamp: genbki.pl Catalog.pm $(POSTGRES_BKI_SRCS) $(POSTGRES_BKI_DATA) $(top_srcdir)/configure.ac
    $(PERL) $< --include-path=$(top_srcdir)/src/include/ \
        --set-version=$(MAJORVERSION) $(POSTGRES_BKI_SRCS)
    touch $@
index 73aa61816694286fe405e73c06b4877ddbbd635f..fb270df678a52d641c67bf1a437f2e1c5ffb5851 100644 (file)
@@ -1,4 +1,4 @@
-/* src/include/pg_config.h.in.  Generated from configure.in by autoheader.  */
+/* src/include/pg_config.h.in.  Generated from configure.ac by autoheader.  */
 
 /* Define to the type of arg 1 of 'accept' */
 #undef ACCEPT_TYPE_ARG1
index 023da623826fc4dc5d1848673fe22698a5dc8523..bc8904732f017b335ae15e97d8949ee38897819d 100644 (file)
@@ -155,9 +155,9 @@ sub GenerateFiles
    my $ac_define_openssl_api_compat_found = 0;
    my $openssl_api_compat;
 
-   # Parse configure.in to get version numbers
-   open(my $c, '<', "configure.in")
-     || confess("Could not open configure.in for reading\n");
+   # Parse configure.ac to get version numbers
+   open(my $c, '<', "configure.ac")
+     || confess("Could not open configure.ac for reading\n");
    while (<$c>)
    {
        if (/^AC_INIT\(\[([^\]]+)\], \[([^\]]+)\], \[([^\]]+)\], \[([^\]]*)\], \[([^\]]+)\]/
@@ -185,7 +185,7 @@ sub GenerateFiles
        }
    }
    close($c);
-   confess "Unable to parse configure.in for all variables!"
+   confess "Unable to parse configure.ac for all variables!"
      unless $ac_init_found && $ac_define_openssl_api_compat_found;
 
    if (IsNewer("src/include/pg_config_os.h", "src/include/port/win32.h"))
@@ -834,7 +834,7 @@ EOF
 
 # Read lines from input file and substitute symbols using the same
 # logic that config.status uses.  There should be one call of this for
-# each AC_CONFIG_HEADERS call in configure.in.
+# each AC_CONFIG_HEADERS call in configure.ac.
 #
 # If the "required" argument is true, we also keep track which of our
 # defines have been found and error out if any are left unused at the
index 3595587622253f91707e2ba2b034955d509ac925..36b18d514cf8d174fd5373f9092eab864622f1ba 100755 (executable)
@@ -9,10 +9,10 @@
 #################################################################
 
 #
-# This script updates the version stamp in configure.in, and also in assorted
+# This script updates the version stamp in configure.ac, and also in assorted
 # other files wherein it's not convenient to obtain the version number from
 # configure's output.  Note that you still have to run autoconf afterward
-# to regenerate configure from the updated configure.in.
+# to regenerate configure from the updated configure.ac.
 #
 # Usage: cd to top of source tree and issue
 #  src/tools/version_stamp.pl MINORVERSION
@@ -74,7 +74,7 @@ else
 # (this also ensures we're in the right directory)
 
 my $aconfver = "";
-open(my $fh, '<', "configure.in") || die "could not read configure.in: $!\n";
+open(my $fh, '<', "configure.ac") || die "could not read configure.ac: $!\n";
 while (<$fh>)
 {
    if (m/^m4_if\(m4_defn\(\[m4_PACKAGE_VERSION\]\), \[(.*)\], \[\], \[m4_fatal/
@@ -86,13 +86,13 @@ while (<$fh>)
 }
 close($fh);
 $aconfver ne ""
-  || die "could not find autoconf version number in configure.in\n";
+  || die "could not find autoconf version number in configure.ac\n";
 
-# Update configure.in and other files that contain version numbers
+# Update configure.ac and other files that contain version numbers
 
 my $fixedfiles = "";
 
-sed_file("configure.in",
+sed_file("configure.ac",
    "-e 's/AC_INIT(\\[PostgreSQL\\], \\[[0-9a-z.]*\\]/AC_INIT([PostgreSQL], [$fullversion]/'"
 );