From f22a8280e641d3ae1797f52f88a5d94d5d7f0103 Mon Sep 17 00:00:00 2001 From: ph10 Date: Tue, 2 Feb 2021 17:02:55 +0000 Subject: Update configure.ac for latest version of autoconf. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1297 6239d852-aaf2-0410-a92c-79f79f948069 --- ChangeLog | 6 ++++++ configure.ac | 12 +++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2694119..2865f9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,12 @@ now the same as Perl. (b) A sequence such as {65536 that has no terminating } so is not a quantifier was nevertheless complaining that a quantifier number was too big. +5. A run of autoconf suggested that configure.ac was out-of-date with respect +to the lastest autoconf. Running autoupdate made some valid changes, some valid +suggestions, and also some invalid changes, which were fixed by hand. Autoconf +now runs clean and the resulting "configure" seems to work, so I hope nothing +is broken. + Version 10.36 04-December-2020 ------------------------------ diff --git a/configure.ac b/configure.ac index 4013aa3..09356d7 100644 --- a/configure.ac +++ b/configure.ac @@ -22,8 +22,8 @@ m4_define(libpcre2_posix_version, [2:3:0]) # NOTE: The CMakeLists.txt file searches for the above variables in the first # 50 lines of this file. Please update that if the variables above are moved. -AC_PREREQ(2.57) -AC_INIT(PCRE2, pcre2_major.pcre2_minor[]pcre2_prerelease, , pcre2) +AC_PREREQ([2.70]) +AC_INIT([PCRE2],pcre2_major.pcre2_minor[]pcre2_prerelease,[],[pcre2]) AC_CONFIG_SRCDIR([src/pcre2.h.in]) AM_INIT_AUTOMAKE([dist-bzip2 dist-zip]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) @@ -64,8 +64,7 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) AC_TYPE_INT64_T AC_PROG_INSTALL -AC_LIBTOOL_WIN32_DLL -LT_INIT +LT_INIT([win32-dll]) AC_PROG_LN_S # Check for GCC visibility feature @@ -424,7 +423,7 @@ case "$enable_newline" in anycrlf) ac_pcre2_newline_value=5 ;; nul) ac_pcre2_newline_value=6 ;; *) - AC_MSG_ERROR([invalid argument \"$enable_newline\" to --enable-newline option]) + AC_MSG_ERROR([invalid argument "$enable_newline" to --enable-newline option]) ;; esac @@ -453,7 +452,7 @@ fi case "$with_link_size" in 2|3|4) ;; *) - AC_MSG_ERROR([invalid argument \"$with_link_size\" to --with-link-size option]) + AC_MSG_ERROR([invalid argument "$with_link_size" to --with-link-size option]) ;; esac @@ -486,7 +485,6 @@ HAVE_BCOPY is defined. If your system has neither bcopy() nor memmove(), make sure both macros are undefined; an emulation function will then be used. */]) # Checks for header files. -AC_HEADER_STDC AC_CHECK_HEADERS(limits.h sys/types.h sys/stat.h dirent.h) AC_CHECK_HEADERS([windows.h], [HAVE_WINDOWS_H=1]) AC_CHECK_HEADERS([sys/wait.h], [HAVE_SYS_WAIT_H=1]) -- cgit v1.2.1