build: Update with newer autoconf constructs.
* configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE. Use AS_HELP_STRING instead of AC_HELP_STRING. * m4/libtool.m4: Update from libgpg-error. * m4/gpg-error.m4: Update from libgpg-error. * m4/libassuan.m4: Update from libassuan. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
df5a89e692
commit
223779dfde
26
configure.ac
26
configure.ac
@ -19,7 +19,7 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
# (Process this file with autoconf to produce a configure script.)
|
# (Process this file with autoconf to produce a configure script.)
|
||||||
AC_PREREQ(2.59)
|
AC_PREREQ([2.59])
|
||||||
min_automake_version="1.14"
|
min_automake_version="1.14"
|
||||||
|
|
||||||
# To build a release you need to create a tag with the version number
|
# To build a release you need to create a tag with the version number
|
||||||
@ -45,7 +45,7 @@ m4_define([mym4_version], m4_argn(4, mym4_verslist))
|
|||||||
m4_define([mym4_revision], m4_argn(7, mym4_verslist))
|
m4_define([mym4_revision], m4_argn(7, mym4_verslist))
|
||||||
m4_define([mym4_revision_dec], m4_argn(8, mym4_verslist))
|
m4_define([mym4_revision_dec], m4_argn(8, mym4_verslist))
|
||||||
m4_esyscmd([echo ]mym4_version[>VERSION])
|
m4_esyscmd([echo ]mym4_version[>VERSION])
|
||||||
AC_INIT([mym4_package],[mym4_version], [https://bugs.gnupg.org])
|
AC_INIT([mym4_package],[mym4_version],[https://bugs.gnupg.org])
|
||||||
|
|
||||||
# LT Version numbers, remember to change them just *before* a release.
|
# LT Version numbers, remember to change them just *before* a release.
|
||||||
# (Code changed: REVISION++)
|
# (Code changed: REVISION++)
|
||||||
@ -105,7 +105,7 @@ AM_SILENT_RULES
|
|||||||
AC_ARG_VAR(SYSROOT,[locate config scripts also below that directory])
|
AC_ARG_VAR(SYSROOT,[locate config scripts also below that directory])
|
||||||
|
|
||||||
# Enable GNU extensions on systems that have them.
|
# Enable GNU extensions on systems that have them.
|
||||||
AC_GNU_SOURCE
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
|
||||||
# Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
|
# Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
|
||||||
dnl Under Linux, make sure that the old dtags are used if LD_LIBRARY_PATH
|
dnl Under Linux, make sure that the old dtags are used if LD_LIBRARY_PATH
|
||||||
@ -243,7 +243,7 @@ case "${host}" in
|
|||||||
|
|
||||||
AM_PATH_GLIB_2_0
|
AM_PATH_GLIB_2_0
|
||||||
AC_ARG_ENABLE(w32-glib,
|
AC_ARG_ENABLE(w32-glib,
|
||||||
AC_HELP_STRING([--enable-w32-glib], [build GPGME Glib for W32]),
|
AS_HELP_STRING([--enable-w32-glib],[build GPGME Glib for W32]),
|
||||||
build_w32_glib=$enableval)
|
build_w32_glib=$enableval)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -291,7 +291,7 @@ AM_CONDITIONAL(BUILD_W32_GLIB, test "$build_w32_glib" = yes)
|
|||||||
|
|
||||||
|
|
||||||
AC_ARG_ENABLE([fixed-path],
|
AC_ARG_ENABLE([fixed-path],
|
||||||
AC_HELP_STRING([--enable-fixed-path=PATH],
|
AS_HELP_STRING([--enable-fixed-path=PATH],
|
||||||
[locate binaries only via this PATH]),
|
[locate binaries only via this PATH]),
|
||||||
[fixed_search_path="$enableval"],
|
[fixed_search_path="$enableval"],
|
||||||
[fixed_search_path=""])
|
[fixed_search_path=""])
|
||||||
@ -304,7 +304,7 @@ fi
|
|||||||
# Note: You need to declare all possible languages also in
|
# Note: You need to declare all possible languages also in
|
||||||
# lang/Makefile.am's DIST_SUBDIRS.
|
# lang/Makefile.am's DIST_SUBDIRS.
|
||||||
AC_ARG_ENABLE([languages],
|
AC_ARG_ENABLE([languages],
|
||||||
AC_HELP_STRING([--enable-languages=languages],
|
AS_HELP_STRING([--enable-languages=languages],
|
||||||
[enable only specific language bindings]),
|
[enable only specific language bindings]),
|
||||||
[enabled_languages=`echo $enableval | \
|
[enabled_languages=`echo $enableval | \
|
||||||
tr ',:' ' ' | tr '[A-Z]' '[a-z]' | \
|
tr ',:' ' ' | tr '[A-Z]' '[a-z]' | \
|
||||||
@ -494,7 +494,7 @@ AC_SUBST(BUILD_VERSION)
|
|||||||
AC_SUBST(BUILD_FILEVERSION)
|
AC_SUBST(BUILD_FILEVERSION)
|
||||||
|
|
||||||
AC_ARG_ENABLE([build-timestamp],
|
AC_ARG_ENABLE([build-timestamp],
|
||||||
AC_HELP_STRING([--enable-build-timestamp],
|
AS_HELP_STRING([--enable-build-timestamp],
|
||||||
[set an explicit build timestamp for reproducibility.
|
[set an explicit build timestamp for reproducibility.
|
||||||
(default is the current time in ISO-8601 format)]),
|
(default is the current time in ISO-8601 format)]),
|
||||||
[if test "$enableval" = "yes"; then
|
[if test "$enableval" = "yes"; then
|
||||||
@ -513,25 +513,25 @@ AC_DEFINE_UNQUOTED(BUILD_TIMESTAMP, "$BUILD_TIMESTAMP",
|
|||||||
#
|
#
|
||||||
run_gpgconf_test="yes"
|
run_gpgconf_test="yes"
|
||||||
AC_ARG_ENABLE(gpgconf-test,
|
AC_ARG_ENABLE(gpgconf-test,
|
||||||
AC_HELP_STRING([--disable-gpgconf-test], [disable GPGCONF regression test]),
|
AS_HELP_STRING([--disable-gpgconf-test],[disable GPGCONF regression test]),
|
||||||
run_gpgconf_test=$enableval)
|
run_gpgconf_test=$enableval)
|
||||||
AM_CONDITIONAL(RUN_GPGCONF_TESTS, test "$run_gpgconf_test" = "yes")
|
AM_CONDITIONAL(RUN_GPGCONF_TESTS, test "$run_gpgconf_test" = "yes")
|
||||||
|
|
||||||
run_gpg_test="yes"
|
run_gpg_test="yes"
|
||||||
AC_ARG_ENABLE(gpg-test,
|
AC_ARG_ENABLE(gpg-test,
|
||||||
AC_HELP_STRING([--disable-gpg-test], [disable GPG regression test]),
|
AS_HELP_STRING([--disable-gpg-test],[disable GPG regression test]),
|
||||||
run_gpg_test=$enableval)
|
run_gpg_test=$enableval)
|
||||||
AM_CONDITIONAL(RUN_GPG_TESTS, test "$run_gpg_test" = "yes")
|
AM_CONDITIONAL(RUN_GPG_TESTS, test "$run_gpg_test" = "yes")
|
||||||
|
|
||||||
run_gpgsm_test="yes"
|
run_gpgsm_test="yes"
|
||||||
AC_ARG_ENABLE(gpgsm-test,
|
AC_ARG_ENABLE(gpgsm-test,
|
||||||
AC_HELP_STRING([--disable-gpgsm-test], [disable GPGSM regression test]),
|
AS_HELP_STRING([--disable-gpgsm-test],[disable GPGSM regression test]),
|
||||||
run_gpgsm_test=$enableval)
|
run_gpgsm_test=$enableval)
|
||||||
AM_CONDITIONAL(RUN_GPGSM_TESTS, test "$run_gpgsm_test" = "yes")
|
AM_CONDITIONAL(RUN_GPGSM_TESTS, test "$run_gpgsm_test" = "yes")
|
||||||
|
|
||||||
run_g13_test="yes"
|
run_g13_test="yes"
|
||||||
AC_ARG_ENABLE(g13-test,
|
AC_ARG_ENABLE(g13-test,
|
||||||
AC_HELP_STRING([--disable-g13-test], [disable G13 regression test]),
|
AS_HELP_STRING([--disable-g13-test],[disable G13 regression test]),
|
||||||
run_g13_test=$enableval)
|
run_g13_test=$enableval)
|
||||||
AM_CONDITIONAL(RUN_G13_TESTS, test "$run_g13_test" = "yes")
|
AM_CONDITIONAL(RUN_G13_TESTS, test "$run_g13_test" = "yes")
|
||||||
|
|
||||||
@ -750,7 +750,7 @@ AC_CHECK_MEMBER(struct cmsghdr.cmsg_len,
|
|||||||
|
|
||||||
use_descriptor_passing=yes
|
use_descriptor_passing=yes
|
||||||
AC_ARG_ENABLE(fd-passing,
|
AC_ARG_ENABLE(fd-passing,
|
||||||
AC_HELP_STRING([--disable-fd-passing], [do not use FD passing]),
|
AS_HELP_STRING([--disable-fd-passing],[do not use FD passing]),
|
||||||
use_descriptor_passing=$enableval)
|
use_descriptor_passing=$enableval)
|
||||||
|
|
||||||
if test "$supports_descriptor_passing" != "yes"; then
|
if test "$supports_descriptor_passing" != "yes"; then
|
||||||
@ -782,7 +782,7 @@ AM_CONDITIONAL(HAVE_UISERVER, test "$uiserver" != "no")
|
|||||||
# before an exec. This option allows to switch this optimization off.
|
# before an exec. This option allows to switch this optimization off.
|
||||||
use_linux_getdents=yes
|
use_linux_getdents=yes
|
||||||
AC_ARG_ENABLE(linux-getdents,
|
AC_ARG_ENABLE(linux-getdents,
|
||||||
AC_HELP_STRING([--disable-linux-getdents],
|
AS_HELP_STRING([--disable-linux-getdents],
|
||||||
[do not use SYS_getdents on Linux]),
|
[do not use SYS_getdents on Linux]),
|
||||||
use_linux_getdents=$enableval)
|
use_linux_getdents=$enableval)
|
||||||
if test "$use_linux_getdents" = "yes"; then
|
if test "$use_linux_getdents" = "yes"; then
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# gpg-error.m4 - autoconf macro to detect libgpg-error.
|
# gpg-error.m4 - autoconf macro to detect libgpg-error.
|
||||||
# Copyright (C) 2002, 2003, 2004, 2011, 2014, 2018 g10 Code GmbH
|
# Copyright (C) 2002, 2003, 2004, 2011, 2014, 2018, 2020 g10 Code GmbH
|
||||||
#
|
#
|
||||||
# This file is free software; as a special exception the author gives
|
# This file is free software; as a special exception the author gives
|
||||||
# unlimited permission to copy and/or distribute it, with or without
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
@ -9,7 +9,7 @@
|
|||||||
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
#
|
#
|
||||||
# Last-changed: 2018-11-02
|
# Last-changed: 2020-11-17
|
||||||
|
|
||||||
|
|
||||||
dnl AM_PATH_GPG_ERROR([MINIMUM-VERSION,
|
dnl AM_PATH_GPG_ERROR([MINIMUM-VERSION,
|
||||||
@ -31,7 +31,7 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
|
|||||||
dnl since that is consistent with how our three siblings use the directory/
|
dnl since that is consistent with how our three siblings use the directory/
|
||||||
dnl package name in --with-$dir_name-prefix=PFX.
|
dnl package name in --with-$dir_name-prefix=PFX.
|
||||||
AC_ARG_WITH(libgpg-error-prefix,
|
AC_ARG_WITH(libgpg-error-prefix,
|
||||||
AC_HELP_STRING([--with-libgpg-error-prefix=PFX],
|
AS_HELP_STRING([--with-libgpg-error-prefix=PFX],
|
||||||
[prefix where GPG Error is installed (optional)]),
|
[prefix where GPG Error is installed (optional)]),
|
||||||
[gpg_error_config_prefix="$withval"])
|
[gpg_error_config_prefix="$withval"])
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ dnl This file is distributed in the hope that it will be useful, but
|
|||||||
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||||
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
dnl SPDX-License-Identifier: FSFULLR
|
dnl SPDX-License-Identifier: FSFULLR
|
||||||
|
# Last-changed: 2020-11-17
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Common code used for libassuan detection [internal]
|
dnl Common code used for libassuan detection [internal]
|
||||||
@ -17,7 +18,7 @@ dnl
|
|||||||
AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
|
AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
|
||||||
[ AC_REQUIRE([AC_CANONICAL_HOST])
|
[ AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
AC_ARG_WITH(libassuan-prefix,
|
AC_ARG_WITH(libassuan-prefix,
|
||||||
AC_HELP_STRING([--with-libassuan-prefix=PFX],
|
AS_HELP_STRING([--with-libassuan-prefix=PFX],
|
||||||
[prefix where LIBASSUAN is installed (optional)]),
|
[prefix where LIBASSUAN is installed (optional)]),
|
||||||
libassuan_config_prefix="$withval", libassuan_config_prefix="")
|
libassuan_config_prefix="$withval", libassuan_config_prefix="")
|
||||||
if test x$libassuan_config_prefix != x ; then
|
if test x$libassuan_config_prefix != x ; then
|
||||||
|
46
m4/libtool.m4
vendored
46
m4/libtool.m4
vendored
@ -1326,7 +1326,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|||||||
x86_64-*linux*)
|
x86_64-*linux*)
|
||||||
LD="${LD-ld} -m elf_i386"
|
LD="${LD-ld} -m elf_i386"
|
||||||
;;
|
;;
|
||||||
ppc64-*linux*|powerpc64-*linux*)
|
powerpc64le-*)
|
||||||
|
LD="${LD-ld} -m elf32lppclinux"
|
||||||
|
;;
|
||||||
|
powerpc64-*)
|
||||||
LD="${LD-ld} -m elf32ppclinux"
|
LD="${LD-ld} -m elf32ppclinux"
|
||||||
;;
|
;;
|
||||||
s390x-*linux*)
|
s390x-*linux*)
|
||||||
@ -1345,7 +1348,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|||||||
x86_64-*linux*)
|
x86_64-*linux*)
|
||||||
LD="${LD-ld} -m elf_x86_64"
|
LD="${LD-ld} -m elf_x86_64"
|
||||||
;;
|
;;
|
||||||
ppc*-*linux*|powerpc*-*linux*)
|
powerpcle-*)
|
||||||
|
LD="${LD-ld} -m elf64lppc"
|
||||||
|
;;
|
||||||
|
powerpc-*)
|
||||||
LD="${LD-ld} -m elf64ppc"
|
LD="${LD-ld} -m elf64ppc"
|
||||||
;;
|
;;
|
||||||
s390*-*linux*|s390*-*tpf*)
|
s390*-*linux*|s390*-*tpf*)
|
||||||
@ -2638,6 +2644,26 @@ linux*oldld* | linux*aout* | linux*coff*)
|
|||||||
dynamic_linker=no
|
dynamic_linker=no
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
linux*android*)
|
||||||
|
version_type=none # Android doesn't support versioned libraries.
|
||||||
|
need_lib_prefix=no
|
||||||
|
need_version=no
|
||||||
|
library_names_spec='$libname$release$shared_ext'
|
||||||
|
soname_spec='$libname$release$shared_ext'
|
||||||
|
finish_cmds=
|
||||||
|
shlibpath_var=LD_LIBRARY_PATH
|
||||||
|
shlibpath_overrides_runpath=yes
|
||||||
|
|
||||||
|
# This implies no fast_install, which is unacceptable.
|
||||||
|
# Some rework will be needed to allow for fast_install
|
||||||
|
# before this can be enabled.
|
||||||
|
hardcode_into_libs=yes
|
||||||
|
|
||||||
|
dynamic_linker='Android linker'
|
||||||
|
# Don't embed -rpath directories since the linker doesn't support them.
|
||||||
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
||||||
|
;;
|
||||||
|
|
||||||
# This must be glibc/ELF.
|
# This must be glibc/ELF.
|
||||||
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
||||||
version_type=linux # correct to gnu/linux during the next big refactor
|
version_type=linux # correct to gnu/linux during the next big refactor
|
||||||
@ -7448,7 +7474,7 @@ AC_LANG_POP
|
|||||||
# to write the compiler configuration to `libtool'.
|
# to write the compiler configuration to `libtool'.
|
||||||
m4_defun([_LT_LANG_GCJ_CONFIG],
|
m4_defun([_LT_LANG_GCJ_CONFIG],
|
||||||
[AC_REQUIRE([LT_PROG_GCJ])dnl
|
[AC_REQUIRE([LT_PROG_GCJ])dnl
|
||||||
AC_LANG_SAVE
|
AC_LANG_PUSH([Java])
|
||||||
|
|
||||||
# Source file extension for Java test sources.
|
# Source file extension for Java test sources.
|
||||||
ac_ext=java
|
ac_ext=java
|
||||||
@ -7504,7 +7530,7 @@ if test -n "$compiler"; then
|
|||||||
_LT_CONFIG($1)
|
_LT_CONFIG($1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_LANG_RESTORE
|
AC_LANG_POP
|
||||||
|
|
||||||
GCC=$lt_save_GCC
|
GCC=$lt_save_GCC
|
||||||
CC=$lt_save_CC
|
CC=$lt_save_CC
|
||||||
@ -7519,7 +7545,7 @@ CFLAGS=$lt_save_CFLAGS
|
|||||||
# to write the compiler configuration to `libtool'.
|
# to write the compiler configuration to `libtool'.
|
||||||
m4_defun([_LT_LANG_GO_CONFIG],
|
m4_defun([_LT_LANG_GO_CONFIG],
|
||||||
[AC_REQUIRE([LT_PROG_GO])dnl
|
[AC_REQUIRE([LT_PROG_GO])dnl
|
||||||
AC_LANG_SAVE
|
AC_LANG_PUSH([Go])
|
||||||
|
|
||||||
# Source file extension for Go test sources.
|
# Source file extension for Go test sources.
|
||||||
ac_ext=go
|
ac_ext=go
|
||||||
@ -7575,7 +7601,7 @@ if test -n "$compiler"; then
|
|||||||
_LT_CONFIG($1)
|
_LT_CONFIG($1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_LANG_RESTORE
|
AC_LANG_POP
|
||||||
|
|
||||||
GCC=$lt_save_GCC
|
GCC=$lt_save_GCC
|
||||||
CC=$lt_save_CC
|
CC=$lt_save_CC
|
||||||
@ -7590,7 +7616,9 @@ CFLAGS=$lt_save_CFLAGS
|
|||||||
# to write the compiler configuration to `libtool'.
|
# to write the compiler configuration to `libtool'.
|
||||||
m4_defun([_LT_LANG_RC_CONFIG],
|
m4_defun([_LT_LANG_RC_CONFIG],
|
||||||
[AC_REQUIRE([LT_PROG_RC])dnl
|
[AC_REQUIRE([LT_PROG_RC])dnl
|
||||||
AC_LANG_SAVE
|
|
||||||
|
dnl Here, something like AC_LANG_PUSH([RC]) is expected.
|
||||||
|
dnl But Resource Compiler is not supported as a language by autoconf
|
||||||
|
|
||||||
# Source file extension for RC test sources.
|
# Source file extension for RC test sources.
|
||||||
ac_ext=rc
|
ac_ext=rc
|
||||||
@ -7629,8 +7657,10 @@ if test -n "$compiler"; then
|
|||||||
_LT_CONFIG($1)
|
_LT_CONFIG($1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Here, AC_LANG_POP is expected.
|
||||||
GCC=$lt_save_GCC
|
GCC=$lt_save_GCC
|
||||||
AC_LANG_RESTORE
|
dnl Back to C
|
||||||
|
AC_LANG([C])
|
||||||
CC=$lt_save_CC
|
CC=$lt_save_CC
|
||||||
CFLAGS=$lt_save_CFLAGS
|
CFLAGS=$lt_save_CFLAGS
|
||||||
])# _LT_LANG_RC_CONFIG
|
])# _LT_LANG_RC_CONFIG
|
||||||
|
Loading…
Reference in New Issue
Block a user