diff options
author | Alessio Vanni <vannilla@firemail.cc> | 2021-11-11 00:56:30 +0100 |
---|---|---|
committer | Alessio Vanni <vannilla@firemail.cc> | 2021-11-21 18:42:34 +0100 |
commit | 20ffa0aa543853fb0d395167fb0a090c0e369db0 (patch) | |
tree | 0f6b0ae7414790cf6fc525c8b8e62446e37efc6d /m4/libunistring.m4 | |
parent | d744d49e13fa6175016e8dcfc0f9506b9f170759 (diff) | |
download | gnunet-20ffa0aa543853fb0d395167fb0a090c0e369db0.tar.gz gnunet-20ffa0aa543853fb0d395167fb0a090c0e369db0.zip |
Update configure.ac and a few macros used by it
The changes done to configure.ac are essentially divided in two categories:
the first is made of changes to improve existing checks, even if it's merely
in the message being printed during the check; the second category is made of
updates aimed at bringing this file closer to Autoconf 2.71, which deprecated
or even removed some stuff that was otherwise present either directly in
configure.ac or in one of the macros it includes, which have been updated in
this commit too.
Actually, the generated configure script was created by Autoconf 2.71 during
deveopment, so in a way it's already compatible with the latest version.
Diffstat (limited to 'm4/libunistring.m4')
-rw-r--r-- | m4/libunistring.m4 | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/m4/libunistring.m4 b/m4/libunistring.m4 index c1bf4d553..e3d944793 100644 --- a/m4/libunistring.m4 +++ b/m4/libunistring.m4 | |||
@@ -1,9 +1,11 @@ | |||
1 | # libunistring.m4 serial 11 | 1 | # libunistring.m4 serial 12 |
2 | dnl Copyright (C) 2009-2012 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2009-2021 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
6 | 6 | ||
7 | AC_PREREQ([2.64]) | ||
8 | |||
7 | dnl gl_LIBUNISTRING | 9 | dnl gl_LIBUNISTRING |
8 | dnl Searches for an installed libunistring. | 10 | dnl Searches for an installed libunistring. |
9 | dnl If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING | 11 | dnl If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING |
@@ -12,8 +14,8 @@ dnl augments the CPPFLAGS variable, and #defines HAVE_LIBUNISTRING to 1. | |||
12 | dnl Otherwise, it sets and AC_SUBSTs HAVE_LIBUNISTRING=no and LIBUNISTRING and | 14 | dnl Otherwise, it sets and AC_SUBSTs HAVE_LIBUNISTRING=no and LIBUNISTRING and |
13 | dnl LTLIBUNISTRING to empty. | 15 | dnl LTLIBUNISTRING to empty. |
14 | 16 | ||
15 | dnl Define gl_LIBUNISTRING using AC_DEFUN_ONCE for Autoconf >= 2.64, in order | 17 | dnl Define gl_LIBUNISTRING using AC_DEFUN_ONCE, in order dnl to avoid warnings |
16 | dnl to avoid warnings like | 18 | dnl like |
17 | dnl "warning: AC_REQUIRE: `gl_LIBUNISTRING' was expanded before it was required". | 19 | dnl "warning: AC_REQUIRE: `gl_LIBUNISTRING' was expanded before it was required". |
18 | dnl This is tricky because of the way 'aclocal' is implemented: | 20 | dnl This is tricky because of the way 'aclocal' is implemented: |
19 | dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. | 21 | dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. |
@@ -21,16 +23,7 @@ dnl Otherwise aclocal's initial scan pass would miss the macro definition. | |||
21 | dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. | 23 | dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. |
22 | dnl Otherwise aclocal would emit many "Use of uninitialized value $1" | 24 | dnl Otherwise aclocal would emit many "Use of uninitialized value $1" |
23 | dnl warnings. | 25 | dnl warnings. |
24 | m4_define([gl_libunistring_AC_DEFUN], | 26 | AC_DEFUN_ONCE([gl_LIBUNISTRING], |
25 | m4_version_prereq([2.64], | ||
26 | [[AC_DEFUN_ONCE( | ||
27 | [$1], [$2])]], | ||
28 | [m4_ifdef([gl_00GNULIB], | ||
29 | [[AC_DEFUN_ONCE( | ||
30 | [$1], [$2])]], | ||
31 | [[AC_DEFUN( | ||
32 | [$1], [$2])]])])) | ||
33 | gl_libunistring_AC_DEFUN([gl_LIBUNISTRING], | ||
34 | [ | 27 | [ |
35 | AC_BEFORE([$0], [gl_LIBUNISTRING_MODULE]) | 28 | AC_BEFORE([$0], [gl_LIBUNISTRING_MODULE]) |
36 | AC_BEFORE([$0], [gl_LIBUNISTRING_LIBHEADER]) | 29 | AC_BEFORE([$0], [gl_LIBUNISTRING_LIBHEADER]) |