From f13940654f84b8fd0954408c69d5f64134fa5045 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 17 Jul 2020 10:26:27 +0200 Subject: [PATCH v1 1/4] Rename configure.in to configure.ac --- config/general.m4 | 2 +- configure.in => configure.ac | 4 ++-- src/backend/catalog/Makefile | 4 ++-- src/include/pg_config.h.in | 2 +- src/tools/msvc/Solution.pm | 10 +++++----- src/tools/version_stamp.pl | 12 ++++++------ 6 files changed, 17 insertions(+), 17 deletions(-) rename configure.in => configure.ac (99%) diff --git a/config/general.m4 b/config/general.m4 index 95d65ceb09..140b9737bf 100644 --- a/config/general.m4 +++ b/config/general.m4 @@ -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. diff --git a/configure.in b/configure.ac similarity index 99% rename from configure.in rename to configure.ac index 2e05ce2e4d..3f49467ccd 100644 --- a/configure.in +++ b/configure.ac @@ -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]) diff --git a/src/backend/catalog/Makefile b/src/backend/catalog/Makefile index 9499bb33e5..93cf6d4368 100644 --- a/src/backend/catalog/Makefile +++ b/src/backend/catalog/Makefile @@ -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 $@ diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index c199cd46d2..11567064b3 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -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 diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index a13ca6e02e..4dbfc1f3ec 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -153,9 +153,9 @@ sub GenerateFiles my $package_url; my ($majorver, $minorver); - # 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\(\[([^\]]+)\], \[([^\]]+)\], \[([^\]]+)\], \[([^\]]*)\], \[([^\]]+)\]/ @@ -178,7 +178,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; if (IsNewer("src/include/pg_config_os.h", "src/include/port/win32.h")) @@ -826,7 +826,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 diff --git a/src/tools/version_stamp.pl b/src/tools/version_stamp.pl index 3595587622..36b18d514c 100755 --- a/src/tools/version_stamp.pl +++ b/src/tools/version_stamp.pl @@ -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 @@ # (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 @@ } 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]/'" ); -- 2.27.0